CVE-2019-5418
CONFIRMED EXPLOITEDRails Ruby on Rails Path Traversal Vulnerability
Is Rails Ruby on Rails affected by CVE-2019-5418?
Rails Ruby on Rails is listed in the CISA Known Exploited Vulnerabilities catalog for CVE-2019-5418, added on 2025-07-07. CISA only adds a CVE once it has evidence of exploitation in the wild, so the patching question is not whether it can be attacked but how soon your instances must be updated.
Affected products published by NIST NVD (10 vulnerable CPE entries): debian debian_linux, fedoraproject fedora, opensuse leap, redhat cloudforms, redhat software_collections and rubyonrails rails.
Published CPE version bounds mark releases below 5.2.2.1 as vulnerable. Those bounds describe what is affected, not what patches it: upgrade to the fixed release named in the vendor advisory below, then confirm the installed version with your package manager or scanner.
The CISA remediation deadline for this entry is 2025-07-28.
RELATED VULNERABILITY DOSSIERS
Other catalog entries that share this product, vendor, or weakness, or that sit next to this advisory in the CISA KEV timeline.
- CVE-2016-0752Same productRails Ruby on Rails
Ruby on Rails Directory Traversal Vulnerability
- CVE-2014-0130Same productRails Ruby on Rails
Ruby on Rails Directory Traversal Vulnerability
- CVE-2023-25914Shared weaknessDanfoss AK-SM 800A Series
Danfoss AK-SM 800A Series Path Traversal Vulnerability
- CVE-2025-61624Shared weaknessFortinet Multiple Products
Fortinet Multiple Products Path Traversal Vulnerability
- CVE-2016-10033Neighboring entryPHP PHPMailer
PHPMailer Command Injection Vulnerability
- CVE-2019-9621Neighboring entrySynacor Zimbra Collaboration Suite (ZCS)
Synacor Zimbra Collaboration Suite (ZCS) Server-Side Request Forgery (SSRF) Vulnerability
1. VULNERABILITY OVERVIEW & TECHNICAL MECHANISM
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.
Get Stack Watch email when a KEV hits your stack ($99/year or $12/month)
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.
2. AFFECTED VERSIONS, PRODUCTS & VERIFIED CPE CONFIGURATIONS
3. EXPLOITATION EVIDENCE, IMPACT & HOW TO DETECT IT
This vulnerability was added to the CISA Known Exploited Vulnerabilities (KEV) catalog on 2025-07-07. Inclusion in KEV requires verified evidence of active exploitation in the wild. Known ransomware campaign use is recorded by CISA as: "Unknown".
Note: KEV inclusion confirms that threat actors have exploited this flaw in real-world incidents; it does not imply every deployment of Ruby on Rails has been compromised.
- High Confidentiality impact (C:H): unauthorized disclosure of sensitive memory, credentials, or files.
- Network service surface (Rails Ruby on Rails): inspect perimeter and internal flow telemetry (`Zeek conn.log`, `Suricata eve.json`) and host service logs for anomalous connection bursts, protocol errors, or unexpected child processes.
- Path Traversal (CWE-22): inspect service access logs and filesystem audit trails (`auditd`, Wazuh FIM) for directory traversal sequences (`../`, `%2e%2e%2f`) or unexpected file writes.
- Inventory all hosts running Rails Ruby on Rails and compare installed package/build versions against the NVD CPE configurations and vendor advisory below.
4. FIXED VERSION, MITIGATIONS & OFFICIAL ADVISORY CITATIONS
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
- http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00011.htmlMailing ListThird Party Advisory
- http://packetstormsecurity.com/files/152178/Rails-5.2.1-Arbitrary-File-Content-Disclosure.htmlExploitThird Party AdvisoryVDB Entry
- http://www.openwall.com/lists/oss-security/2019/03/22/1Mailing ListMitigationPatch
- https://access.redhat.com/errata/RHSA-2019:0796Third Party Advisory
- https://access.redhat.com/errata/RHSA-2019:1147Third Party Advisory
- https://access.redhat.com/errata/RHSA-2019:1149Third Party Advisory
- https://access.redhat.com/errata/RHSA-2019:1289Third Party Advisory
- https://groups.google.com/forum/#%21topic/rubyonrails-security/pFRKI96Sm8QPermissions Required
- https://lists.debian.org/debian-lts-announce/2019/03/msg00042.htmlMailing ListThird 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 LinkPatchVendor Advisory
- https://www.exploit-db.com/exploits/46585/ExploitThird Party AdvisoryVDB Entry
- http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00011.htmlMailing ListThird Party Advisory
- http://packetstormsecurity.com/files/152178/Rails-5.2.1-Arbitrary-File-Content-Disclosure.htmlExploitThird Party AdvisoryVDB Entry
- http://www.openwall.com/lists/oss-security/2019/03/22/1Mailing ListMitigationPatch
- https://access.redhat.com/errata/RHSA-2019:0796Third Party Advisory
- https://access.redhat.com/errata/RHSA-2019:1147Third Party Advisory
- https://access.redhat.com/errata/RHSA-2019:1149Third Party Advisory
- https://access.redhat.com/errata/RHSA-2019:1289Third Party Advisory
- https://groups.google.com/forum/#%21topic/rubyonrails-security/pFRKI96Sm8QPermissions Required
- https://lists.debian.org/debian-lts-announce/2019/03/msg00042.htmlMailing ListThird 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 LinkPatchVendor Advisory
- https://www.exploit-db.com/exploits/46585/ExploitThird Party AdvisoryVDB 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/PatchVendor Advisory
SCORING & VECTOR TELEMETRY
Primary assessment authored by NIST NVD (nvd@nist.gov).
EPSS estimates the statistical probability of exploitation activity in the next 30 days—it is not proof of confirmed exploitation.
RELEVANT DEFENSIVE TOOLS
Curated open-source defensive and verification utilities from The Loot applicable to this asset class:
Endpoint visibility, digital forensics, and incident response (DFIR) platform
Network security monitoring (NSM) and protocol metadata extraction framework
Multi-threaded IDS, IPS, and network security monitoring engine
VirusTotal's memory-safe Rust rewrite of YARA for binary & implant hunting