Patch todayExploited in the wild (CISA KEV)CISA due 2025-07-28
CVE-2019-5418: Rails Ruby on Rails Path Traversal Vulnerability
What
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.
Fix
apply the vendor fix or mitigation
Why this tier
Known exploited server software, exploitation is automatable.
Check whether you run an affected Ruby on Rails version:
bin/rails --version
Apply the vendor fix. CISA's 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.Vendor advisory
Bump rails (and the affected gem, e.g. actionpack or activestorage) in Gemfile.lock, then redeploy.
Using distro packages? Distros backport fixes under their own version numbers. Check your distro's status for CVE-2019-5418:Debian · Ubuntu · Red Hat · Alpine
This is exploited in the wild: after patching, check exposed systems for signs of compromise.
Deadline: CISA's federal due date is 2025-07-28. Treat it as the latest reasonable date for everyone else.