Actively exploited · Published Mar 27, 2019 · Assigned by hackerone
CVE-2019-5418
High 7.5 Exploited
In plain English
A high-severity path traversal in https://github.com/rails/rails from Rails. Attackers are actively exploiting it in the wild (listed by CISA on July 7, 2025). The chance it is exploited in the next 30 days is estimated at 98.5% (higher than 99.9% of all known vulnerabilities). Ready-made attack tooling exists: Metasploit, Nuclei, public proof-of-concept code. Fixed versions are available - upgrade the affected package.
CISA guidance
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Federal agencies must remediate by Jul 28, 2025.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | rails | 2:5.2.2.1+dfsg-1 | DEBIAN-CVE-2019-5418 |
| Debian:13 | rails | 2:5.2.2.1+dfsg-1 | DEBIAN-CVE-2019-5418 |
| Debian:14 | rails | 2:5.2.2.1+dfsg-1 | DEBIAN-CVE-2019-5418 |
| RubyGems | actionview | 5.2.2.1 | GHSA-86g5-2wh3-gc9j |
| RubyGems | actionview | 4.2.11.1 | GHSA-86g5-2wh3-gc9j |
| RubyGems | actionview | 5.1.6.2 | GHSA-86g5-2wh3-gc9j |
| RubyGems | actionview | 5.0.7.2 | GHSA-86g5-2wh3-gc9j |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Rails | https://github.com/rails/rails | 5.2.2.15.1.6.25.0.7.24.2.11.1 |
Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
References
- 46585 exploit, x_refsource_EXPLOIT-DB
- http://packetstormsecurity.com/files/152178/Rails-5.2.1-Arbitrary-File-Content-Disclosure.html x_refsource_MISC
- [oss-security] 20190322 [CVE-2019-5418] Amendment: Possible Remote Code Execution Exploit in Action View mailing-list, x_refsource_MLIST
- https://weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6-2-have-been-released/ x_refsource_CONFIRM
- https://groups.google.com/forum/#%21topic/rubyonrails-security/pFRKI96Sm8Q x_refsource_CONFIRM
- [debian-lts-announce] 20190331 [SECURITY] [DLA 1739-1] rails security update mailing-list, x_refsource_MLIST
- RHSA-2019:0796 vendor-advisory, x_refsource_REDHAT
- openSUSE-SU-2019:1344 vendor-advisory, x_refsource_SUSE
- FEDORA-2019-1cfe24db5c vendor-advisory, x_refsource_FEDORA
- RHSA-2019:1149 vendor-advisory, x_refsource_REDHAT
- RHSA-2019:1147 vendor-advisory, x_refsource_REDHAT
- RHSA-2019:1289 vendor-advisory, x_refsource_REDHAT
- 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://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-5418 government-resource