Stackurity Start free trial

CVEs / CVE-2019-5418

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

Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.

Check your servers with Stackurity Already using Stackurity? Search for CVE-2019-5418

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, Known Exploited Vulnerabilities catalog

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.

The CVE record, via NVD · published 27 Mar 2019 · NVD status: Analyzed

Affected and fixed versions

As stated by the CVE record (from the CNA)
ProductAffectedFixed in
Rails https://github.com/rails/rails5.2.2.1—
Rails https://github.com/rails/rails5.1.6.2—
Rails https://github.com/rails/rails5.0.7.2—
Rails https://github.com/rails/rails4.2.11.1—
As stated by OSV
ProductAffectedFixed in
actionview (RubyGems)from 5.2.0, before 5.2.2.15.2.2.1
actionview (RubyGems)from 4.0.0, before 4.2.11.14.2.11.1
actionview (RubyGems)from 5.1.0, before 5.1.6.25.1.6.2
actionview (RubyGems)from 5.0.0, before 5.0.7.25.0.7.2

Package versions from GHSA-86g5-2wh3-gc9j.

Exploitation

In CISA KEV since7 Jul 2025
Due date for US federal agencies28 Jul 2025
Used in ransomware campaignsUnknown
Required actionApply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

Severity

CVSS 3.17.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Scored by NVD
WeaknessCWE-22

References

Sources

Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.

This product uses data from the NVD API but is not endorsed or certified by the NVD.