Live threats

All CVEs / Rails

CVE-2019-5418Rails Ruby on Rails

File Content Disclosure in Ruby on Rails Action View

High 7.5 KEV No auth neededHigh EPSS

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.

Source text, unmodified. NVD.

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.

Source text, unmodified. CISA KEV.

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.

Vendor advisory · web.archive.org ↗

  1. Apply the vendor's security update for Ruby on Rails.
  2. CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was July 28, 2025.
  3. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
  4. Check logs for signs of earlier exploitation.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
rubyonrailsrails≥ 3.0.0 < 4.2.11.1
rubyonrailsrails≥ 5.0.0 < 5.0.7.2
rubyonrailsrails≥ 5.1.0 < 5.1.6.2
rubyonrailsrails≥ 5.2.0 < 5.2.2.1
debiandebian_linux8.0
redhatcloudforms4.7
opensuseleap15.0
fedoraprojectfedora30
redhatcloudforms4.6
redhatsoftware_collections1.0

Official sources

References

Links published by the sources. Open them with care.