CVE-2019-5418: Rails Ruby on Rails Path Traversal Vulnerability HIGH 7.5 EXPLOITED REMOTE WATCHLIST UPGRADE MITIGATE DOWNGRADE
CVE-2019-5418 is a high-severity flaw (CVSS 7.5) affecting rails, debian linux, cloudforms, reported as exploited in the wild. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority High severity EPSS top 1%: very likely to be exploited Exploited in the wild (CISA KEV) Public exploit reference Remotely exploitable, no login, no user action On your watchlist A fixed release or distro patch exists.
Risk facts CVSS score 7.5 (High) Attack vector Network (remote) Attack complexity Low Privileges needed None User interaction None EPSS exploit chance 98.5% (top 1%) CISA exploited list Yes, fix due 2025-07-28 Weakness CWE-22 Published 2019-03-27 Last modified 2026-06-17
Share: LinkedIn · X · Reddit
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Timeline 2019-03-27 14:29 UTC Published CVE record published2025-07-07 Exploited Added to the CISA Known Exploited Vulnerabilities list2025-07-28 Deadline CISA due date for US federal agencies to patch2026-06-17 02:37 UTC Updated Record last modifiedrubyonrails rails UPGRADE
Affected: >= 3.0.0 and < 4.2.11.1 · >= 5.0.0 and < 5.0.7.2 · >= 5.1.0 and < 5.1.6.2 · >= 5.2.0 and < 5.2.2.1
Fixed in: 4.2.11.1, 5.0.7.2, 5.1.6.2, 5.2.2.1
Safe to downgrade to: a release before 3.0.0
1. Check installed version
Copy apt-cache policy rails || rpm -q rails || rails --version
2. UPGRADE to 4.2.11.1 (Debian / Ubuntu)
Copy sudo apt update && sudo apt install --only-upgrade rails
2. UPGRADE (RHEL / Amazon Linux / Fedora)
Copy sudo dnf upgrade rails
Note
Copy Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 3.0.0 (Debian / Ubuntu)
Copy apt-cache madison rails
sudo apt install rails=<VERSION_BEFORE_3.0.0>
sudo apt-mark hold rails
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
Copy dnf --showduplicates list rails
sudo dnf downgrade rails-<VERSION_BEFORE_3.0.0>
sudo dnf versionlock add rails
Downgrade risk
Copy Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Copy Restart the service, and keep the package held until a fixed release ships.
debian debian linux MITIGATE
Affected: 8.0
Fixed in: no fixed release known
Safe to downgrade to: a release before 8.0
Check your OS release
Copy cat /etc/os-release; uname -r
Debian / Ubuntu
Copy sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
Copy sudo dnf upgrade --refresh
Windows
Copy Install the latest cumulative update from Windows Update
If no patch exists yet
Copy OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
redhat cloudforms DOWNGRADE
Affected: 4.7 · 4.6
Fixed in: no fixed release known
Safe to downgrade to: a release before 4.6
1. Check installed version
Copy apt-cache policy cloudforms || rpm -q cloudforms || cloudforms --version
2. No fixed release: DOWNGRADE to a release before 4.6 (Debian / Ubuntu)
Copy apt-cache madison cloudforms
sudo apt install cloudforms=<VERSION_BEFORE_4.6>
sudo apt-mark hold cloudforms
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
Copy dnf --showduplicates list cloudforms
sudo dnf downgrade cloudforms-<VERSION_BEFORE_4.6>
sudo dnf versionlock add cloudforms
Downgrade risk
Copy Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Copy Restart the service, and keep the package held until a fixed release ships.
opensuse leap MITIGATE
Affected: 15.0
Fixed in: no fixed release known
Safe to downgrade to: a release before 15.0
Check your OS release
Copy cat /etc/os-release; uname -r
Debian / Ubuntu
Copy sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
Copy sudo dnf upgrade --refresh
Windows
Copy Install the latest cumulative update from Windows Update
If no patch exists yet
Copy OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
fedoraproject fedora MITIGATE
Affected: 30
Fixed in: no fixed release known
Safe to downgrade to: a release before 30
Check your OS release
Copy cat /etc/os-release; uname -r
Debian / Ubuntu
Copy sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
Copy sudo dnf upgrade --refresh
Windows
Copy Install the latest cumulative update from Windows Update
If no patch exists yet
Copy OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
redhat software collections DOWNGRADE
Affected: 1.0
Fixed in: no fixed release known
Safe to downgrade to: a release before 1.0
1. Check installed version
Copy apt-cache policy software-collections || rpm -q software-collections || software-collections --version
2. No fixed release: DOWNGRADE to a release before 1.0 (Debian / Ubuntu)
Copy apt-cache madison software-collections
sudo apt install software-collections=<VERSION_BEFORE_1.0>
sudo apt-mark hold software-collections
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
Copy dnf --showduplicates list software-collections
sudo dnf downgrade software-collections-<VERSION_BEFORE_1.0>
sudo dnf versionlock add software-collections
Downgrade risk
Copy Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Copy Restart the service, and keep the package held until a fixed release ships.
Exact fixes by distribution Show all
A distro patch exists: prefer upgrading over downgrading.
RubyGems · actionview ·
FIXED · 5.1.6.2 · vulnerable: >= 5.1.0, <= 5.1.6.1 ·
source Copy bundle update actionview
bundle list | grep actionview
Fedora 46 · nodejs-pnpm12 ·
FIXED · 12.17.0-1.fc46 · FEDORA-2026-7adfb2bcdd ·
source Copy sudo dnf upgrade --advisory=FEDORA-2026-7adfb2bcdd
Fedora ELN · wget2 ·
FIXED · 2.3.0-3.eln159 · FEDORA-2026-811b4922a5 ·
source Copy sudo dnf upgrade --advisory=FEDORA-2026-811b4922a5
Ubuntu 20.04 · rails · NOT AFFECTED
Ubuntu 22.04 · rails · NOT AFFECTED
Ubuntu 24.04 · rails · NOT AFFECTED
Ubuntu 24.10 · rails · NOT AFFECTED
Ubuntu 25.04 · rails · NOT AFFECTED
Debian 12 · rails · FIXED · 2:5.2.2.1+dfsg-1
Copy sudo apt update && sudo apt install --only-upgrade rails
dpkg --compare-versions "$(dpkg-query -W -f='${Version}' rails)" ge "2:5.2.2.1+dfsg-1" && echo PATCHED || echo STILL-VULNERABLE
Debian 13 · rails · FIXED · 2:5.2.2.1+dfsg-1
Copy sudo apt update && sudo apt install --only-upgrade rails
dpkg --compare-versions "$(dpkg-query -W -f='${Version}' rails)" ge "2:5.2.2.1+dfsg-1" && echo PATCHED || echo STILL-VULNERABLE
Public exploits and detection Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
Quick answers How do I fix CVE-2019-5418? rails: upgrade to 4.2.11.1, 5.0.7.2, 5.1.6.2, 5.2.2.1; debian linux: mitigate or apply the listed mitigation; cloudforms: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2019-5418 being exploited? Yes. CVE-2019-5418 is on the CISA Known Exploited Vulnerabilities list, so treat it as patch-now.
What does CVE-2019-5418 affect? CVE-2019-5418 affects rails, debian linux, cloudforms. Severity is high (CVSS 7.5). 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.
How urgent is CVE-2019-5418? Priority 91/100. High severity; EPSS top 1%: very likely to be exploited; Exploited in the wild (CISA KEV); Public exploit reference; Remotely exploitable, no login, no user action; On your watchlist
Software pages Ruby on Rails vulnerabilities · Debian vulnerabilities · Ruby vulnerabilities
Related CVEs CVE-2023-22795 HIGH 7.5 UPGRADE MITIGATE A regular expression based DoS vulnerability in Action Dispatch <6.1.7.1 and <7.0.4.1 related to the If-None-MCVE-2023-22792 HIGH 7.5 UPGRADE A regular expression based DoS vulnerability in Action Dispatch <6.0.6.1,< 6.1.7.1, and <7.0.4.1CVE-2026-33167 MEDIUM 6.1 UPGRADE Action Pack is a Rubygem for building web applications on the Rails frameworkCVE-2026-33195 CRITICAL 9.8 UPGRADE Active Storage allows users to attach cloud and local files in Rails applicationsCVE-2026-33658 MEDIUM 6.5 UPGRADE Active Storage allows users to attach cloud and local files in Rails applicationsReferences ← Back to latest CVEs