Path Traversal in Rails Https://github.com/rails/rails
CVE-2019-5418
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.
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
EPSS exploit prediction
EPSS: 0.985 (99.9th percentile), scored .
Very high probability of exploitation in the next 30 days — among the top 0.1% most-likely-to-be-exploited CVEs. 100th percentile — 99.9% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.985 · newest: 0.985 · change: 0.000
Affected products
- Rails Https://github.com/rails/rails — versions 5.2.2.1, 5.1.6.2, 5.0.7.2
- Rubyonrails Rails
- Debian Linux — versions 8.0
- Fedoraproject Fedora — versions 30
- openSUSE Leap — versions 15.0
- Red Hat Cloudforms — versions 4.7, 4.6
- Red Hat Software Collections — versions 1.0
Weakness classification (CWE)
CISA KEV (Known Exploited Vulnerabilities)
This CVE is on the CISA KEV catalog, added on . CISA KEV inclusion means CISA has confirmed in-the-wild exploitation; US federal agencies are required to remediate within a published due date.
BOD 22-01 due date: .
Required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Public proof-of-concept exploits
References
- www.exploit-db.com/exploits/46585/ (Exploit, VDB Entry, Third Party Advisory, exploit)
- packetstormsecurity.com/files/152178/Rails-5.2.1-Arbitrary-File-Content-Disclos… (Exploit, VDB Entry, Third Party Advisory)
- www.openwall.com/lists/oss-security/2019/03/22/1 (mailing-list, Patch, Mailing List, Third Party Advisory, Mitigation)
- weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6-2-have-been-released/ (Patch, Broken Link, Vendor Advisory)
- groups.google.com/forum/ (Permissions Required)
- lists.debian.org/debian-lts-announce/2019/03/msg00042.html (mailing-list, Mailing List, Third Party Advisory)
- access.redhat.com/errata/RHSA-2019:0796 (vendor-advisory, Third Party Advisory)
- lists.opensuse.org/opensuse-security-announce/2019-05/msg00011.html (vendor-advisory, Mailing List, Third Party Advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (vendor-advisory, Third Party Advisory)
- access.redhat.com/errata/RHSA-2019:1149 (vendor-advisory, Third Party Advisory)
Frequently asked questions
- What is CVE-2019-5418?
- CVE-2019-5418 is a high-severity vulnerability in Rails Https://github.com/rails/rails, classified under Path Traversal. CVSS score: 7.5/10. Published 2019-03-27.
- How severe is CVE-2019-5418?
- High severity. CVSS v3 base score is 7.5 out of 10.
- Is CVE-2019-5418 known to be exploited?
- Yes. CVE-2019-5418 is listed in the CISA Known Exploited Vulnerabilities catalog (added 2025-07-07), indicating it is being actively exploited. 73 public proof-of-concept repositories are indexed.