Ruby on Rails· ()

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.
Exploited
Yes: 1 CVE in CISA KEV · highest EPSS 99%
Share this

What to do now#

  1. Check whether you run an affected Ruby on Rails version:
    bin/rails --version
  2. 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
  3. Bump rails (and the affected gem, e.g. actionpack or activestorage) in Gemfile.lock, then redeploy.
  4. 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
  5. This is exploited in the wild: after patching, check exposed systems for signs of compromise.
  6. Deadline: CISA's federal due date is 2025-07-28. Treat it as the latest reasonable date for everyone else.

CVEs 1#

CVETierCVSSEPSSKEVSSVC exploitation
CVE-2019-5418Patch today7.5 (v3.1)99%Yesactive

Sources#

Built from CISA: Known Exploited Vulnerabilities, checked . Tier from the published rubric.

Also on today's list

See today's list → · Coming up →

Linux distribution packages#

Running the distro’s package? These are the versions that carry the fix.

Linux distribution packages CVE-2019-5418

DistroReleasePackageStatus
Debian13 trixierailsFixed in 2:5.2.2.1+dfsg-1
12 bookwormrailsFixed in 2:5.2.2.1+dfsg-1

From the Debian Security Tracker, Ubuntu security notices (CC BY-SA 4.0) and Red Hat Security Data (CC BY 4.0). Check the distro link before acting.

Something wrong on this page?
Anonymous. Reports are checked against the primary source.