Rails Ruby on Rails Path Traversal
What to do
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
CISA deadline 2025-07-28 · passed 1 year 1 month ago · applies to US federal civilian agencies; used elsewhere as a reference SLA
What happened
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.
Who is affected
Rails Ruby on Rails. Affected version ranges are listed in the vendor advisory and the NVD entry linked under Sources.
Weakness class: CWE-22.
Timeline
- Added to CISA KEVExploitation in the wild confirmed by CISA
- CISA remediation deadlinepassed 1 year 1 month ago
Sources
- NVD entry for CVE-2019-5418 nvd.nist.gov/vuln/detail/CVE-2019-5418
- CISA Known Exploited Vulnerabilities catalog www.cisa.gov/known-exploited-vulnerabilities-catalog
- web.archive.org web.archive.org/web/20190313201629/https://weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6-2-have-been-released/
- nvd.nist.gov nvd.nist.gov/vuln/detail/CVE-2019-5418