Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2019-5418: Rails Ruby on Rails Path Traversal Vulnerability

91
Patch now
HIGH 7.5EXPLOITEDREMOTEWATCHLISTUPGRADEMITIGATEDOWNGRADE

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 score7.5 (High)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionNone
EPSS exploit chance98.5% (top 1%)
CISA exploited listYes, fix due 2025-07-28
WeaknessCWE-22
Published2019-03-27
Last modified2026-06-17
Publisher (CNA): HackerOne · Vendor: debian · fedoraproject · opensuse · redhat · rubyonrails

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

rubyonrails 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
apt-cache policy rails || rpm -q rails || rails --version
2. UPGRADE to 4.2.11.1 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade rails
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade rails
Note
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)
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)
dnf --showduplicates list rails sudo dnf downgrade rails-<VERSION_BEFORE_3.0.0> sudo dnf versionlock add rails
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
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
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
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
apt-cache policy cloudforms || rpm -q cloudforms || cloudforms --version
2. No fixed release: DOWNGRADE to a release before 4.6 (Debian / Ubuntu)
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)
dnf --showduplicates list cloudforms sudo dnf downgrade cloudforms-<VERSION_BEFORE_4.6> sudo dnf versionlock add cloudforms
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
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
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
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
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
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
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)
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)
dnf --showduplicates list software-collections sudo dnf downgrade software-collections-<VERSION_BEFORE_1.0> sudo dnf versionlock add software-collections
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.

Exact fixes by distribution

A distro patch exists: prefer upgrading over downgrading.
RubyGems · actionview · FIXED · 5.1.6.2 · vulnerable: >= 5.1.0, <= 5.1.6.1 · source
bundle update actionview bundle list | grep actionview
Fedora 46 · nodejs-pnpm12 · FIXED · 12.17.0-1.fc46 · FEDORA-2026-7adfb2bcdd · source
sudo dnf upgrade --advisory=FEDORA-2026-7adfb2bcdd
Fedora ELN · wget2 · FIXED · 2.3.0-3.eln159 · FEDORA-2026-811b4922a5 · source
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
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
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.

Verify at the official source NVD · CVE Program · CISA KEV catalog · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

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

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.