CVE-2019-5418
KEV PoC ×2—Rails Ruby on Rails Path Traversal Vulnerability
CVE-2019-5418 is a path traversal vulnerability (CWE-22) in the Action View component of Ruby on Rails. When an application uses calls to 'render file:', a specially crafted Accept header can cause Rails to render arbitrary files on the target server, disclosing their contents to the attacker. Ruby on Rails applications (vendor: Rails) are affected, and the flaw is being actively exploited: it was added to CISA's Known Exploited Vulnerabilities catalog on 2025-07-07 and has a 98.5% EPSS probability of exploitation within 30 days (100th percentile).
What to do: Apply mitigations per Rails vendor instructions immediately; organizations subject to BOD 22-01 must follow the applicable guidance for cloud services or discontinue use of the product if mitigations are unavailable. Given the KEV listing and near-certain EPSS probability, prioritize remediation of this issue over routine patch cycles. When scoping impact, review any code paths that combine 'render file:' with user-supplied Accept headers, since this is the pattern that triggers the flaw.
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
- Rails Ruby on Rails
- 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.
- Due date
- Ransomware use
- Unknown
- Vendors
- rubyonrailsdebianredhatopensusefedoraproject
- Products
- rails, debian linux, cloudforms, leap, fedora, software collections
- Weakness
- CWE-22
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N