What’s Vulnerable › Vulnerabilities
CVE-2019-5418: Rails Ruby on Rails Path Traversal Vulnerability
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: yes — in CISA KEV since 2025-07-07
- EPSS: 98.5% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2019-03-27 · updated 2026-06-17
- Weakness: 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 products
- Debian Linux: 8.0
- Fedoraproject Fedora: 30
- openSUSE Leap: 15.0
- CloudForms: 4.7, 4.6
- RedHat Software Collections: 1.0
- Ruby on Rails: from 3.0.0 before 4.2.11.1; from 5.0.0 before 5.0.7.2; from 5.1.0 before 5.1.6.2; from 5.2.0 before 5.2.2.1 — fixed in 4.2.11.1, 5.0.7.2, 5.1.6.2, 5.2.2.1
How to fix
Upgrade to a fixed version: Ruby on Rails 4.2.11.1, 5.0.7.2, 5.1.6.2, 5.2.2.1. Check the vendor advisory for mitigations.
References
- http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00011.html
- http://packetstormsecurity.com/files/152178/Rails-5.2.1-Arbitrary-File-Content-Disclosure.html
- http://www.openwall.com/lists/oss-security/2019/03/22/1
- https://access.redhat.com/errata/RHSA-2019:0796
- https://access.redhat.com/errata/RHSA-2019:1147
- https://access.redhat.com/errata/RHSA-2019:1149
- https://access.redhat.com/errata/RHSA-2019:1289
- https://groups.google.com/forum/#%21topic/rubyonrails-security/pFRKI96Sm8Q
- https://lists.debian.org/debian-lts-announce/2019/03/msg00042.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Y43636TH4D6T46IC6N2RQVJTRFJAAYGA/
- https://weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6-2-have-been-released/
- https://www.exploit-db.com/exploits/46585/
Get alerted when CVE-2019-5418 or the next vulnerability affects your stack