patchminder
Exploited in the wild · CISA KEV CVE-2019-5418

Path traversalin Rails https://github.com/rails/rails.

Published 27 Mar 2019 · Updated 21 Oct 2025 · Every fact sourced

JSONCite
Is it exploited?
Yes

On CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks.'s exploited list since 7 Jul 2025.

On CISA's listAttack code is public
Severity
High 7.5
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment · no login needed
Attack likelihood
Very high
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 98.5% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed versions listed below
In plain words

There is a File Content Disclosure vulnerability in Action View <5.2.2.1, <5.1.6.2, <5.0.7.2, <4.2.11.1 and v3 where specially crafted accept headers can cause contents of arbitrary files on the target system's filesystem to be exposed.

CISA: Rails Ruby on Rails contains a path traversal vulnerability in Action View. Specially crafted accept headers in combination with calls to `render file:` can cause arbitrary files on the target server to be rendered, disclosing the file contents.

What to do now
  • Upgrade actionview (RubyGems) to 4.2.11.1, 5.0.7.2, 5.1.6.2, 5.2.2.1 or later, whichever matches your release line.
  • CISA requires US federal agencies to fix it by 28 Jul 2025.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
https://github.com/rails/rails
5.2.2.1
Not confirmed
CVE record
https://github.com/rails/rails
5.1.6.2
Not confirmed
CVE record
https://github.com/rails/rails
5.0.7.2
Not confirmed
CVE record
https://github.com/rails/rails
4.2.11.1
Not confirmed
CVE record
actionview (RubyGems)
5.2.0 to before 5.2.2.1
5.2.2.1
GitHub advisory
actionview (RubyGems)
4.0.0 to before 4.2.11.1
4.2.11.1
GitHub advisory
actionview (RubyGems)
5.1.0 to before 5.1.6.2
5.1.6.2
GitHub advisory
actionview (RubyGems)
5.0.0 to before 5.0.7.2
5.0.7.2
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 4 Jan 2019
    CVE ID reserved by hackerone.
  2. 16 Mar 2019
    First public proof of concept on GitHub.
  3. 27 Mar 2019
    Published in the CVE List.
  4. 7 Jul 2025
    Added to CISA's Known Exploited Vulnerabilities list.
  5. 21 Oct 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Exploited in the wild (CISA KEV). CISA assessment (SSVC): exploitation active.

Metasploit module
1 module
Nuclei scan template
Available
Exploit-DB
1 entry
GitHub proof of concepts
12 repositories
NucleiRails File Content Disclosuredetection template
Exploit-DBEDB-ID 46585web application exploit for multiple, published 21 Mar 2019
GitHubno warning signs foundmpgn/CVE-2019-5418201 stars · created 16 Mar 2019CVE-2019-5418 · File Content Disclosure on Ruby on Rails
GitHubno warning signs foundmpgn/Rails-doubletap-RCE132 stars · created 23 Mar 2019RCE on Rails 5.2.2 using a path traversal (CVE-2019-5418) and a deserialization of Ruby objects (CVE-2019-5420)
GitHubno warning signs foundbrompwnie/CVE-2019-5418-Scanner36 stars · created 19 Mar 2019A multi-threaded Golang scanner to identify Ruby endpoints vulnerable to CVE-2019-5418
GitHubno warning signs foundomarkurt/CVE-2019-54185 stars · created 18 Mar 2019File Content Disclosure on Rails Test Case · CVE-2019-5418
GitHubno warning signs foundrandom-robbie/CVE-2019-54185 stars · created 19 Nov 2019
GitHubno warning signs foundBad3r/RailroadBandit3 stars · created 1 Apr 2019a demo for Ruby on Rails CVE-2019-5418
GitHubno warning signs foundkailing0220/CVE-2019-54182 stars · created 17 Oct 2022Ruby on Rails是一个 Web 应用程序框架,是一个相对较新的 Web 应用程序框架,构建在 Ruby 语言之上。这个漏洞主要是由于Ruby on Rails使用了指定参数的render fil
GitHubno warning signs foundztgrace/CVE-2019-5418-Rails30 stars · created 4 Oct 2019Rails 3 PoC of CVE-2019-5418
GitHubno warning signs foundmelardev/CVE-2019-54180 stars · created 24 Oct 2019
GitHubno warning signs founddaehyeok0618/CVE-2019-54180 stars · created 7 Apr 2025WHS 3기 장대혁 취약한(CVE) Docker 환경 구성 과제입니다.
Referencewww.exploit-db.comnamed as exploit in the CVE record

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other https://github.com/rails/rails vulnerabilities

Same weakness: Path traversal

All CWE-22 vulnerabilities

References
Cite this page

Patchminder. CVE-2019-5418: Path traversal in Rails https://github.com/rails/rails. https://patchminder.com/cve/cve-2019-5418/ (accessed 5 December 2026).