Rails Action View file content disclosure via accept headers
CVE-2019-5418Known exploitedHigh
A vulnerability in Rails Action View allows an attacker to read arbitrary files from the server's filesystem. By sending specially crafted accept headers combined with calls to render file:, an attacker can cause the server to render and expose the contents of files they should not have access to. An attacker needs to be able to send HTTP requests to the affected Rails application.
Plain English summary of the NVD and CISA text, checked by machine against both.
Scores and dates
- Added to KEV
- 7 Jul 2025
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Detail
Rails Ruby on Rails. CISA 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.
Weakness: CWE-22 (opens in a new tab)
Affected versions
- rubyonrails rails: from 3.0.0, before 4.2.11.1
- rubyonrails rails: from 5.0.0, before 5.0.7.2
- rubyonrails rails: from 5.1.0, before 5.1.6.2
- rubyonrails rails: from 5.2.0, before 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