CVE-2019-5418
Rails Ruby on Rails Path Traversal Vulnerability
- Actively exploited
- High · 7.5 of 10
- Exploited since
- 7 Jul 2025 added to the CISA list
- Chance of attacks
- 99% in the next 30 days (FIRST EPSS)
- Fix deadline
- 28 Jul 2025 for US federal agencies
- Published
- 27 Mar 2019 in the NVD
What this means
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.
CISA
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.
NIST National Vulnerability Database
What to do
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
CISA's required action. If you use the product, install the vendor's update as soon as possible.
Affected
- Rails https://github.com/rails/rails
Official sources
- nvd.nist.gov/vuln/detail/CVE-2019-5418
- weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6-2-have-been-released/ vendor advisory
- lists.opensuse.org/opensuse-security-announce/2019-05/msg00011.html
- packetstormsecurity.com/files/152178/Rails-5.2.1-Arbitrary-File-Content-Disclosure.html
- openwall.com/lists/oss-security/2019/03/22/1
- access.redhat.com/errata/RHSA-2019:0796
- access.redhat.com/errata/RHSA-2019:1147
- access.redhat.com/errata/RHSA-2019:1149
- access.redhat.com/errata/RHSA-2019:1289
Data from the NIST National Vulnerability Database, the CISA Known Exploited Vulnerabilities list, FIRST EPSS and ENISA, checked 18 Nov 2026. CVSS vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.