CVEvulnerability
CVE-2019-5418
CISA Known Exploited Vulnerability
Rails Ruby on Rails Path Traversal Vulnerability — Rails Ruby on Rails
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.
- Added to KEV
- 2025-07-07
- Remediation due
- 2025-07-28
- Ransomware use
- 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.
- Notes
- 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/ ; https://nvd.nist.gov/vuln/detail/CVE-2019-5418
- Status
- Analyzed
- Published
- 2019-03-27
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 7.5 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CVSS 3.1 (134c704f-9b21-4f2e-91b3-4a467353bcc0)
- 7.5 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CVSS 2.0 ([email protected])
- 5.0 MEDIUM — AV:N/AC:L/Au:N/C:P/I:N/A:N
- Weaknesses
- CWE-22
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 configurations
• rubyonrails rails (>= 3.0.0 < 4.2.11.1)
• rubyonrails rails (>= 5.0.0 < 5.0.7.2)
• rubyonrails rails (>= 5.1.0 < 5.1.6.2)
• rubyonrails rails (>= 5.2.0 < 5.2.2.1)
• debian debian linux 8.0
• redhat cloudforms 4.7
• opensuse leap 15.0
• fedoraproject fedora 30
• redhat cloudforms 4.6
• redhat software collections 1.0
Related
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- 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
- 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