Actively exploited vulnerability / CVE-2019-5418
Ruby on Rails: an attacker can read files from your web application's server
This vulnerability lets a remote attacker read the contents of files stored on the server that runs the application. These can include passwords, access keys or customer data, leading to data leaks and further attacks. It is on the lists of vulnerabilities used in real attacks kept by CISA (the US cybersecurity agency) and by ENISA (the EU cybersecurity agency).
- Identifier
- CVE-2019-5418 · EUVD-2019-0375
- Severity
- High (7.5/10)
- On the CISA list (US)
- yes, since 7 July 2025
- Deadline given to US federal agencies
- 28 July 2025
- On the ENISA list (EU)
- yes
- Probability of exploitation (EPSS)
- 98.5% (FIRST's estimate for the next 30 days)
Does it concern you?
Ruby on Rails is a framework used to build web applications and websites, such as customer portals, online shops or internal tools. It concerns you if your company has a web application built with Rails, even one developed by an outside supplier.
Ask your developer or the company maintaining your application which Rails version it uses; the version is usually listed in the project's configuration files. Affected are versions 3.x and 4.x before 4.2.11.1, 5.0 before 5.0.7.2, 5.1 before 5.1.6.2 and 5.2 before 5.2.2.1.
Affected products and versions
- Rails Ruby on Rails
- rails: from 3.0.0 before 4.2.11.1; from 5.0.0 before 5.0.7.2; from 5.1.0 before 5.1.6.2; from 5.2.0 before 5.2.2.1
What to do
Have the application updated to version 4.2.11.1, 5.0.7.2, 5.1.6.2 or 5.2.2.1, or newer, depending on the branch in use. If updating is not possible, follow the vendor's guidance or consider taking the application offline until it is fixed.
Versions that contain the fix: 4.2.11.1, 5.0.7.2, 5.1.6.2, 5.2.2.1.
The official description
The text below is the description from the public database.
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.
Sources
- Debian Security Tracker
- Red Hat Security Data
- GitHub Advisory Database
- CVE Program
- Vendor advisory: web.archive.org
- Vendor advisory: nvd.nist.gov
- NVD
- ENISA EUVD
Data from the public CVE and NVD databases, the CISA KEV and ENISA EU KEV lists and FIRST's EPSS score. The explanations are ours, written from that data. Last updated: 29 November 2026.