CVEvulnerability

CVE-2019-5418

7.5 HIGH Known exploited Published 2019-03-27 Modified 2026-06-17 Official page ↗

CISA Known Exploited Vulnerability

Rails Ruby on Rails Path Traversal Vulnerability — Rails Ruby on Rails

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.

Added to KEV
2025-07-07
Remediation due
2025-07-28
Ransomware use
Unknown
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.
Notes
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://nvd.nist.gov/vuln/detail/CVE-2019-5418
Status
Analyzed
Published
2019-03-27
Last modified
2026-06-17
Assigner
[email protected]
CVSS 3.1 ([email protected])
7.5 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS 3.1 (134c704f-9b21-4f2e-91b3-4a467353bcc0)
7.5 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS 2.0 ([email protected])
5.0 MEDIUM — AV:N/AC:L/Au:N/C:P/I:N/A:N
Weaknesses
CWE-22

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.

Affected configurations

• rubyonrails rails (>= 3.0.0 < 4.2.11.1) • rubyonrails rails (>= 5.0.0 < 5.0.7.2) • rubyonrails rails (>= 5.1.0 < 5.1.6.2) • rubyonrails rails (>= 5.2.0 < 5.2.2.1) • debian debian linux 8.0 • redhat cloudforms 4.7 • opensuse leap 15.0 • fedoraproject fedora 30 • redhat cloudforms 4.6 • redhat software collections 1.0

Related

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References