Home / Rails / https://github.com/rails/rails / CVE-2019-5418
CVE-2019-5418: is it exploited, and which versions of https://github.com/rails/rails are affected and fixed?
CVE-2019-5418 is a path traversal (reading or writing files outside the intended folder) vulnerability in https://github.com/rails/rails, and it is exploited in the wild: CISA added it to its Known Exploited Vulnerabilities catalog on July 7, 2025, with a federal due date of July 28, 2025. Affected: actionview from 5.2.0 before 5.2.2.1, actionview from 4.0.0 before 4.2.11.1, actionview from 5.1.0 before 5.1.6.2 and 1 more (GitHub advisory GHSA-86g5-2wh3-gc9j). Fixed in 5.2.2.1, 4.2.11.1, 5.1.6.2 and 5.0.7.2 (GitHub advisory GHSA-86g5-2wh3-gc9j). Severity: High (7.5, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 10:38 UTC, CVE record November 19, 2026, 07:17 UTC and NVD November 19, 2026, 08:24 UTC.
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.
From the CVE record by hackerone, last updated October 21, 2025, 23:45 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Rails | https://github.com/rails/rails | 5.2.2.1 5.1.6.2 5.0.7.2 4.2.11.1 |
As the CVE record by hackerone states it, last updated October 21, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| RubyGems | actionview | >= 5.2.0, < 5.2.2.1 | 5.2.2.1 | GHSA-86g5-2wh3-gc9j |
| RubyGems | actionview | >= 4.0.0, < 4.2.11.1 | 4.2.11.1 | GHSA-86g5-2wh3-gc9j |
| RubyGems | actionview | >= 5.1.0, < 5.1.6.2 | 5.1.6.2 | GHSA-86g5-2wh3-gc9j |
| RubyGems | actionview | >= 5.0.0, < 5.0.7.2 | 5.0.7.2 | GHSA-86g5-2wh3-gc9j |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated October 22, 2025. Summary: Path Traversal in Action View.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| rubyonrails | rails | from 3.0.0 before 4.2.11.1 | application |
| rubyonrails | rails | from 5.0.0 before 5.0.7.2 | application |
| rubyonrails | rails | from 5.1.0 before 5.1.6.2 | application |
| rubyonrails | rails | from 5.2.0 before 5.2.2.1 | application |
| debian | debian linux | 8.0 | operating system |
| redhat | cloudforms | 4.7 | application |
| opensuse | leap | 15.0 | operating system |
| fedoraproject | fedora | 30 | operating system |
| redhat | cloudforms | 4.6 | application |
| redhat | software collections | 1.0 | application |
NVD analysis (status Analyzed), last modified June 17, 2026, 02:37 UTC.
How severe is CVE-2019-5418?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | CISA-ADP |
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | NVD |
| Medium 5.0 | CVSS 2.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2019-5418 exploited in the wild?
- CISA KEV
- Listed as Rails Ruby on Rails Path Traversal Vulnerability, added July 7, 2025; federal agencies must act by July 28, 2025
- 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.
- Ransomware use
- Unknown
- CISA's summary
- 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.
- CISA SSVC
- Exploitation: active; automatable: yes; technical impact: partial (CISA ADP, July 17, 2025)
- EPSS
- 98.5% probability of exploitation activity in the next 30 days, percentile 99.9 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
Where are the vendor advisories and references?
- 46585 exploit, x_refsource_EXPLOIT-DB
- http://packetstormsecurity.com/files/152178/Rails-5.2.1-Arbitrary-File-Content-Disclosure.html x_refsource_MISC
- [oss-security] 20190322 [CVE-2019-5418] Amendment: Possible Remote Code Execution Exploit in Action View mailing-list, x_refsource_MLIST
- https://weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6-2-have-been-released/ x_refsource_CONFIRM
- https://groups.google.com/forum/#%21topic/rubyonrails-security/pFRKI96Sm8Q x_refsource_CONFIRM
- [debian-lts-announce] 20190331 [SECURITY] [DLA 1739-1] rails security update mailing-list, x_refsource_MLIST
- RHSA-2019:0796 vendor-advisory, x_refsource_REDHAT
- openSUSE-SU-2019:1344 vendor-advisory, x_refsource_SUSE
- FEDORA-2019-1cfe24db5c vendor-advisory, x_refsource_FEDORA
- RHSA-2019:1149 vendor-advisory, x_refsource_REDHAT
- RHSA-2019:1147 vendor-advisory, x_refsource_REDHAT
- RHSA-2019:1289 vendor-advisory, x_refsource_REDHAT
- https://web.archive.org/web/20190313201629/https://weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6-2-have-been-released/
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-5418 government-resource
When was it published, and where is the official record?
- Reserved
- January 4, 2019
- Published
- March 27, 2019, 13:38 UTC
- CVE record updated
- October 21, 2025, 23:45 UTC by hackerone
- NVD
- Analyzed, last modified June 17, 2026, 02:37 UTC
- Last checked
- CVE list November 19, 2026, 07:17 UTC; NVD November 19, 2026, 08:24 UTC; KEV December 3, 2026, 10:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD · CISA KEV
What other CVEs affect https://github.com/rails/rails?
- Mar 27, 2019CVE-2019-5420 https://github.com/rails/rails: command injection
- Mar 27, 2019CVE-2019-5419 https://github.com/rails/rails: denial of service (uncontrolled resource consumption)
Every CVE in https://github.com/rails/rails
Questions about CVE-2019-5418
Is CVE-2019-5418 exploited in the wild?
Yes. CISA added CVE-2019-5418 to its Known Exploited Vulnerabilities catalog on July 7, 2025 and set federal agencies a due date of July 28, 2025. FIRST's EPSS gives it a 98.5% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of https://github.com/rails/rails are affected by CVE-2019-5418?
actionview from 5.2.0 before 5.2.2.1, actionview from 4.0.0 before 4.2.11.1, actionview from 5.1.0 before 5.1.6.2 and actionview from 5.0.0 before 5.0.7.2, per the GitHub advisory GHSA-86g5-2wh3-gc9j. The tables above give every range the sources list.
Which version fixes CVE-2019-5418?
5.2.2.1, 4.2.11.1, 5.1.6.2 and 5.0.7.2, per the GitHub advisory GHSA-86g5-2wh3-gc9j. Check the vendor's advisory before you rely on it.
How severe is CVE-2019-5418?
High (7.5, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2019-5418?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov; CISA's entry is in its Known Exploited Vulnerabilities catalog. For a fix, the vendor's own advisory is the one to follow.