CVEs / CVE-2019-5418
CVE-2019-5418: Rails Ruby on Rails Path Traversal Vulnerability
- Known exploited in the CISA KEV catalog since 7 Jul 2025
- high 7.5 CVSS 3.1 (NVD)
- EPSS 98.5% chance of exploitation in the next 30 days, higher than 99% of CVEs (30 Oct 2026)
- Last changed at its sources
Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.
Check your servers with Stackurity Already using Stackurity? Search for CVE-2019-5418
Summary
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.
Description
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.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| Rails https://github.com/rails/rails | 5.2.2.1 | — |
| Rails https://github.com/rails/rails | 5.1.6.2 | — |
| Rails https://github.com/rails/rails | 5.0.7.2 | — |
| Rails https://github.com/rails/rails | 4.2.11.1 | — |
| Product | Affected | Fixed in |
|---|---|---|
| actionview (RubyGems) | from 5.2.0, before 5.2.2.1 | 5.2.2.1 |
| actionview (RubyGems) | from 4.0.0, before 4.2.11.1 | 4.2.11.1 |
| actionview (RubyGems) | from 5.1.0, before 5.1.6.2 | 5.1.6.2 |
| actionview (RubyGems) | from 5.0.0, before 5.0.7.2 | 5.0.7.2 |
Package versions from GHSA-86g5-2wh3-gc9j.
Exploitation
| In CISA KEV since | 7 Jul 2025 |
|---|---|
| Due date for US federal agencies | 28 Jul 2025 |
| Used in ransomware campaigns | Unknown |
| 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. |
Severity
| CVSS 3.1 | 7.5 highCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NScored by NVD |
|---|---|
| Weakness | CWE-22 |
References
- CVE-2019-5418 on NVD
- CVE-2019-5418 in the CISA KEV catalog
- https://web.archive.org/web/20190313201629/https://weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6-2-have-been-released/ (cited by CISA)
- CVE-2019-5418 on OSV
- http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00011.html Mailing List, Third Party Advisory
- http://packetstormsecurity.com/files/152178/Rails-5.2.1-Arbitrary-File-Content-Disclosure.html Exploit, Third Party Advisory, VDB Entry
- http://www.openwall.com/lists/oss-security/2019/03/22/1 Mailing List, Mitigation, Patch, Third Party Advisory
- https://access.redhat.com/errata/RHSA-2019:0796 Third Party Advisory
- https://access.redhat.com/errata/RHSA-2019:1147 Third Party Advisory
- https://access.redhat.com/errata/RHSA-2019:1149 Third Party Advisory
- https://access.redhat.com/errata/RHSA-2019:1289 Third Party Advisory
- https://groups.google.com/forum/#%21topic/rubyonrails-security/pFRKI96Sm8Q Permissions Required
- https://lists.debian.org/debian-lts-announce/2019/03/msg00042.html Mailing List, Third Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Y43636TH4D6T46IC6N2RQVJTRFJAAYGA/ Third Party Advisory
- https://weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6-2-have-been-released/ Broken Link, Patch, Vendor Advisory
- https://www.exploit-db.com/exploits/46585/ Exploit, Third Party Advisory, VDB Entry
- https://web.archive.org/web/20190313201629/https://weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6-2-have-been-released/ Patch, Vendor Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-5418 US Government Resource
Sources
Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.
This product uses data from the NVD API but is not endorsed or certified by the NVD.