LiveBreach Intelligence: data breaches, leaks & ransomware, tracked as they surfaceOngoing protection: GalaxyWarden →
Recent BreachesData breach tracker

CVE-2019-5418: Rails Ruby on Rails Path Traversal Vulnerability

RBRecent Breaches Vulnerability Intelligence·Jul 7, 2025
High⚠ Actively exploited (CISA KEV)
High
Severity
Active
CISA KEV
No
Ransomware use
Jul 28, 2025
Patch deadline
⚠ Exploited in the wild. CISA added CVE-2019-5418 to its Known Exploited Vulnerabilities catalog on Jul 7, 2025, with a federal patch deadline of Jul 28, 2025 — meaning attackers are actively using it. If you run the affected software, patch it immediately.

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…

CVE-2019-5418 is a path traversal vulnerability in Ruby on Rails Action View. Specially crafted Accept headers combined with calls to render file: can cause the application to render and disclose the contents of arbitrary files on the server. This matters because it can expose sensitive configuration, credentials, source code, or other data residing on the host, enabling further compromise of the application or environment.

Defenders should treat this as a file-disclosure risk in any Rails deployment that uses the affected rendering path. Confirm exact impact and fixed releases against the vendor advisory before acting.

How it works

The weakness is CWE-22 (path traversal). In Action View, an attacker supplies a specially crafted Accept header that influences how the framework resolves a render file: call. When the application code invokes render file: (or equivalent), the manipulated header can cause the renderer to traverse outside the intended template directory and return the contents of an arbitrary file on the target server.

No authentication bypass or remote code execution is described in the provided summary; the primary outcome is unauthorized disclosure of file contents. Exploitation requires that the application actually performs a render file: operation that can be influenced by the Accept header. Exact request construction and any prerequisites must be verified against the vendor advisory rather than assumed.

Am I affected? How to find it in your systems

Ruby on Rails applications commonly run as web services behind application servers (Puma, Unicorn, Passenger) or in containerized/cloud environments. The vulnerability lives in Action View, so any Rails app that uses render file: (or patterns that ultimately call it) is in scope until proven otherwise.

How to remediate

Apply the vendor-supplied update for Ruby on Rails as the primary remediation. Follow the exact instructions in the official advisory for the release that addresses CVE-2019-5418; do not rely on version numbers or patch names not present in that advisory.

If you can't patch immediately

Reduce exposure with compensating controls until the vendor update can be applied.

If your data may have been exposed

Actively exploited path-traversal flaws can lead to breaches that disclose credentials, configuration, or other sensitive files. Known ransomware use is not documented for this CVE. If you suspect exposure, review server logs for the indicators above, rotate any secrets that may have been readable, and consider running a free exposure scan of your email addresses against known breach data sets to determine whether related credentials have already appeared in public dumps.

AICompiled with AI assistance from public sources and published under our editorial standards.

Details

AffectedRails · Ruby on Rails
WeaknessCWE-22
Added to CISA KEVJul 7, 2025
Federal patch deadlineJul 28, 2025
Known ransomware useNot documented
Check if your data is exposed →

Official records: NVD · CISA KEV

← All actively-exploited vulnerabilities