ZeroHour

CVE-2014-0130

KEVmass

Directory Traversal Arbitrary File Read in Ruby on Rails (actionpack)

CISA: Ruby on Rails Directory Traversal Vulnerability

CVSS
EPSS
54%p99
Published
KEV added
AI analysis

CVE-2014-0130 is a directory traversal vulnerability (CWE-22) in the implicit-render implementation of Ruby on Rails, located in actionpack's abstract_controller/base.rb. A remote attacker sends a crafted request that manipulates the template/render path, causing the application to resolve and render files outside the intended directory. Successful exploitation grants arbitrary file reads on the web server, potentially exposing application source code and configuration files containing secrets. Any Ruby on Rails deployment that relies on implicit rendering is affected, per CISA's listing of Ruby on Rails. The flaw is known to be exploited in the wild (added to CISA KEV on 2022-03-25), carries a high EPSS of 53.7% (99th percentile), and has no known public proof-of-concept; ransomware use is unknown.

What to do: Apply updated Rails releases per vendor instructions, as required by CISA's KEV listing for this vulnerability. Audit Rails controllers and code paths that depend on implicit rendering, and review access logs for crafted requests containing traversal sequences (../ or encoded equivalents). Where patching is delayed, render templates explicitly and restrict accepted formats and paths.

Affected
Rails Ruby on Rails
Estimated exposure
mass≈1,000,000+ Rails deployments (Rails is a top-tier server-side web framework; only apps relying on implicit rendering are exploitable) — Rails is one of the most widely deployed web frameworks, historically tracked on the order of one to two million sites by public web-technology surveys, so the upper bound on affected installations exceeds one million, though…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

Directory traversal vulnerability in actionpack/lib/abstract_controller/base.rb in the implicit-render implementation in Ruby on Rails allows remote attackers to read arbitrary files via a crafted request.

CISA Known Exploited Vulnerability
Affected
Rails Ruby on Rails
Required action
Apply updates per vendor instructions.
Due date
Ransomware use
Unknown
Vendors
Rails
Products
Ruby on Rails
Weakness
CWE-22

In the news