CVE-2019-5418
Rails Ruby on Rails Path Traversal Vulnerability
Description
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.
Description as published by the source, in English.
Key facts
- Published
- 2019-03-27
- Last modified
- 2026-06-17
- Assigned by
- support@hackerone.com
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N- Scored by
- nvd@nist.gov (NVD Primary)
- Probability of exploitation
-
98.5 %
among the highest of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Yes, see references
Actively exploited
CISA added this vulnerability to the Known Exploited Vulnerabilities catalogue on 2025-07-07, with a remediation deadline of 2025-07-28 for US federal agencies.
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.
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| actionview (RubyGems) | ≥ 4.0.0, < 4.2.11.1 | Affected | |
| actionview (RubyGems) | ≥ 5.0.0, < 5.0.7.2 | Affected | |
| actionview (RubyGems) | ≥ 5.1.0, < 5.1.6.2 | Affected | |
| actionview (RubyGems) | ≥ 5.2.0, < 5.2.2.1 | Affected | |
| Debian | Debian Linux | 8.0 | Affected |
| Fedoraproject | Fedora | 30 | Affected |
| Opensuse | Leap | 15.0 | Affected |
| Redhat | Cloudforms | 4.6 | Affected |
| Redhat | Cloudforms | 4.7 | Affected |
| Redhat | Software Collections | 1.0 | Affected |
| Rubyonrails | Rails | ≥ 3.0.0, < 4.2.11.1 | Affected |
| Rubyonrails | Rails | ≥ 5.0.0, < 5.0.7.2 | Affected |
| Rubyonrails | Rails | ≥ 5.1.0, < 5.1.6.2 | Affected |
| Rubyonrails | Rails | ≥ 5.2.0, < 5.2.2.1 | Affected |
Weakness type
-
CWE-22: Improper Limitation of a Pathname to a Restricted Directory
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special ele…
References
- http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00011.html
- http://packetstormsecurity.com/files/152178/Rails-5.2.1-Arbitrary-File-Content-Disclosure…
- http://www.openwall.com/lists/oss-security/2019/03/22/1
- https://access.redhat.com/errata/RHSA-2019:0796
- https://access.redhat.com/errata/RHSA-2019:1147
- https://access.redhat.com/errata/RHSA-2019:1149
- https://access.redhat.com/errata/RHSA-2019:1289
- https://groups.google.com/forum/#%21topic/rubyonrails-security/pFRKI96Sm8Q
- https://lists.debian.org/debian-lts-announce/2019/03/msg00042.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/…
- https://weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6-2-have-been-released/
- https://www.exploit-db.com/exploits/46585/
- http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00011.html
- http://packetstormsecurity.com/files/152178/Rails-5.2.1-Arbitrary-File-Content-Disclosure…
- http://www.openwall.com/lists/oss-security/2019/03/22/1
- https://access.redhat.com/errata/RHSA-2019:0796
- https://access.redhat.com/errata/RHSA-2019:1147
- https://access.redhat.com/errata/RHSA-2019:1149
- https://access.redhat.com/errata/RHSA-2019:1289
- https://groups.google.com/forum/#%21topic/rubyonrails-security/pFRKI96Sm8Q
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.