CVE-2019-5418Rails Ruby on Rails
File Content Disclosure in Ruby on Rails Action View
High 7.5 KEV No auth neededHigh EPSS
Follow: this CVE · Rails · Rails Ruby on Rails We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 3.1
- 7.5
- EPSS
- 98.5% probability of exploitation in 30 days · percentile 100
- Auth required
- No
- In KEV since
- Jul 7, 2025
- CISA deadline
- Jul 28, 2025
- Ransomware use
- Unknown
- Published
- Mar 27, 2019
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- SSVC (CISA)
- Exploitation: active · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
Ruby on Rails Action View versions 3.0.0 to 5.2.2.0 contain a file content disclosure vulnerability. An unauthenticated attacker can send specially crafted Accept headers to expose arbitrary file contents from the target server's filesystem. CISA has confirmed this vulnerability is being actively exploited.
Show the original NVD text
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.
Exploitation confirmed by CISA
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.
Action required by CISA: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
What to do
Patch available · fixed versions: 4.2.11.1, 5.0.7.2, 5.1.6.2, 5.2.2.1
Update Ruby on Rails to version 4.2.11.1, 5.0.7.2, 5.1.6.2, or 5.2.2.1 depending on your branch. Validate and sanitize Accept headers in your application.
- Apply the vendor's security update for Ruby on Rails.
- CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was July 28, 2025.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
- Check logs for signs of earlier exploitation.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | actionview |
≥ 5.2.0 < 5.2.2.1 |
5.2.2.1 |
gem "actionview", ">= 5.2.2.1" |
| RubyGems | actionview |
≥ 4.0.0 < 4.2.11.1 |
4.2.11.1 |
gem "actionview", ">= 4.2.11.1" |
| RubyGems | actionview |
≥ 5.1.0 < 5.1.6.2 |
5.1.6.2 |
gem "actionview", ">= 5.1.6.2" |
| RubyGems | actionview |
≥ 5.0.0 < 5.0.7.2 |
5.0.7.2 |
gem "actionview", ">= 5.0.7.2" |
Per OSV / GitHub Advisories (GHSA-86g5-2wh3-gc9j). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| 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 |
Official sources
References
Links published by the sources. Open them with care.
- lists.opensuse.org Mailing List Third Party Advisory
- packetstormsecurity.com Exploit Third Party Advisory VDB Entry
- www.openwall.com Mailing List Mitigation Patch
- access.redhat.com Third Party Advisory
- access.redhat.com Third Party Advisory
- access.redhat.com Third Party Advisory
- access.redhat.com Third Party Advisory
- groups.google.com Permissions Required
- lists.debian.org Mailing List Third Party Advisory
- lists.fedoraproject.org Third Party Advisory
- weblog.rubyonrails.org Broken Link Patch Vendor Advisory
- www.exploit-db.com Exploit Third Party Advisory VDB Entry
- web.archive.org Patch Vendor Advisory
- www.cisa.gov US Government Resource