Rails Action View - Path Traversal (CVE-2019-5418)
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.
psychologyCrowdSec Analysis
CVE-2019-5418 is a file content disclosure vulnerability in multiple versions of Rails' Action View, where attackers can exploit specially crafted HTTP accept headers to access arbitrary files on the server. This flaw could be leveraged by remote, unauthenticated attackers to read sensitive files, potentially exposing confidential information and aiding in further attacks.
CrowdSec has been tracking this vulnerability and its exploits since 5th of August 2025.
Insights from the CrowdSec network reveal that the attackers trying to exploit CVE-2019-5418 are composed of a fairly even mix of opportunistic and targeted actors. Some attackers employ preliminary reconnaissance, while others use indiscriminate scanning. Telemetry from the CrowdSec network also shows that exploitation activity for CVE-2019-5418 remains steady week-over-week. Attack volumes are consistent with long-term trends, indicating sustained interest from threat actors. CVE-2019-5418 continues to be an active part of the threat landscape and will likely remain this way for the forseeable future.
Attackers exploit this vulnerability by sending GET requests with a malicious Accept header containing path traversal sequences to disclose sensitive files, but detection is not possible without header inspection.
Full Intelligence Available
Connect your API key to access CrowdSec scores, exploit timelines, and attacker IPs.
| Event | Date |
|---|---|
| CVE Published | 2019-03-27 |
| CISA KEV | 2025-07-07 |
| CISA Remediation Deadline | 2025-07-28 |
| Rule Released | 2025-08-05 |
| CrowdSec First Seen | 2025-08-07 |
Remediation & Protection
External References
- 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.exploit-db.com/exploits/46585/
- http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00011.html
- http://www.openwall.com/lists/oss-security/2019/03/22/1
- https://access.redhat.com/errata/RHSA-2019:1147
- https://access.redhat.com/errata/RHSA-2019:0796
- https://access.redhat.com/errata/RHSA-2019:1289
- https://weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6-2-have-been-released/
- 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/message/Y43636TH4D6T46IC6N2RQVJTRFJAAYGA/
- http://packetstormsecurity.com/files/152178/Rails-5.2.1-Arbitrary-File-Content-Disclosure.html
- https://access.redhat.com/errata/RHSA-2019:1149
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2019/CVE-2019-5418.yaml