CVE-2019-5418: Rails Ruby on Rails Path Traversal
Rails Ruby on Rails · listed in the CISA catalog of actively exploited vulnerabilities since 2025-07-07.
- CVSS v3.1 (CVE record)
- 7.5
- high
- EPSS (exploit probability, 30 days)
- 99%
- among the highest 0.1% of all CVEs
- Added to CISA KEV
- 2025-07-07
- US federal due date 2025-07-28
- Ubuntu priority
- high
What is CVE-2019-5418?
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.
CISA 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.
CISA notes
Upstream versions (CVE record)
From the CVE record published by the vendor or CVE numbering authority.
- Rails https://github.com/rails/railsAffectedFixed in
- 4.2.11.1
- 5.0.7.2
- 5.1.6.2
- 5.2.2.1
not stated
| Product | Affected | Fixed in |
|---|---|---|
| Rails https://github.com/rails/rails |
| not stated |
Ubuntu and Debian releases
A server is vulnerable if it has a package built from the listed source package installed in a version lower than the fixed version for its release.
Ubuntu 18.04 LTS·rails
fix via Ubuntu Pro
Fixed: 2:4.2.10-0ubuntu4+esm2
Ubuntu 16.04 LTS·rails
fix via Ubuntu Pro
Fixed: 2:4.2.6-1ubuntu0.1~esm2
Check and fix on a server
Run on each Ubuntu or Debian server. Replace rails with the source package from the table above.
1. Show installed packages built from the source package, with their versions
dpkg-query -W -f='${binary:Package} ${Version} ${source:Package}\n' | awk '$3=="rails"'2. Compare each installed version with the fixed version for your release from the table
I=INSTALLED_VERSION; F=FIXED_VERSION # replace both
dpkg --compare-versions "$I" lt "$F"; case $? in 0) echo vulnerable ;; 1) echo "fixed or newer" ;; *) echo "check the versions" ;; esac3. Install the fix
sudo apt update && sudo apt install --only-upgrade $(dpkg-query -W -f='${binary:Package} ${source:Package}\n' | awk '$2=="rails"{print $1}')Services keep running the old code until they are restarted – restart the affected service or check with needrestart.
Rows marked “fix via Ubuntu Pro”: these fixes are only installable with an Ubuntu Pro subscription (ESM). Attach the machine first (sudo pro attach, then sudo pro enable esm-infra esm-apps), then run the commands above.
CISA's assessment (SSVC)
- Exploitation
- Exploited in the wild
- Automatable
- Yes – attackers can automate it at scale
- Technical impact
- Partial – limited control or information
Weakness: CWE-22 Path Traversal (CWE-22)
References
Other advisories
Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-21. Always confirm with the vendor's or distribution's advisory before patching.