ZeroHour

CVE-2016-0752

KEV PoC ×2mass

Directory Traversal Arbitrary File Read in Ruby on Rails Action View

CISA: Ruby on Rails Directory Traversal Vulnerability

CVSS 3.1
7.5 high
EPSS
96%p100
Published
()
KEV added
AI analysis

CVE-2016-0752 is a directory traversal flaw (CWE-22) in the Action View component of the Ruby on Rails web framework. When a Rails application uses the render method with user-controlled, unrestricted input, a remote unauthenticated attacker can include '..' (dot-dot) sequences in a pathname, causing Rails to render files from outside the intended directory. Successful exploitation yields arbitrary file read on the server, potentially exposing application configuration files, secrets, and credentials; integrity and availability are not impacted per the CVSS vector. It affects Rails before 3.2.22.1, 4.1.x before 4.1.14.1, 4.2.x before 4.2.5.1, and 5.x before 5.0.0.beta1.1, as well as Rails packages shipped by openSUSE, SUSE, Debian, and Red Hat. The flaw is listed in CISA's Known Exploited Vulnerabilities catalog (added 2022-03-25), confirming exploitation in the wild, and EPSS assigns a 95.5% probability of exploitation within 30 days.

What to do: Upgrade Rails to 3.2.22.1, 4.1.14.1, 4.2.5.1, or 5.0.0.beta1.1 (or later), and apply the corresponding vendor updates for openSUSE/SUSE, Debian, and Red Hat Software Collections. Audit application code for calls to render (especially render file:) that pass user-controlled input, and validate or whitelist rendered paths to block traversal sequences. Prioritize internet-facing Rails applications given the CISA KEV listing.

Affected
Ruby on Rails Rails (Action View)before 3.2.22.1
Ruby on Rails Rails (Action View)4.0.x and 4.1.x before 4.1.14.1
Ruby on Rails Rails (Action View)4.2.x before 4.2.5.1
Ruby on Rails Rails (Action View)5.x before 5.0.0.beta1.1
openSUSE Leap
openSUSE
SUSE Linux Enterprise Module for Containers
Debian Linux
Red Hat Software Collections
Estimated exposure
masshundreds of thousands of Rails applications and sites worldwide (framework-level flaw; only apps passing user-controlled paths to render are exploitable) — Rails is among the most widely deployed web frameworks, with public technology surveys tracking Rails in use on hundreds of thousands of websites and large numbers of long-lived legacy applications, and the CISA KEV listing plus 95.5% EPSS…

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 Action View in Ruby on Rails before 3.2.22.1, 4.0.x and 4.1.x before 4.1.14.1, 4.2.x before 4.2.5.1, and 5.x before 5.0.0.beta1.1 allows remote attackers to read arbitrary files by leveraging an application's unrestricted use of the render method and providing a .. (dot dot) in a pathname.

CISA Known Exploited Vulnerability
Affected
Rails Ruby on Rails
Required action
Apply updates per vendor instructions.
Due date
Ransomware use
Unknown
Vendors
rubyonrailsopensusesusedebianredhat
Products
rails, leap, opensuse, linux enterprise module for containers, debian linux, software collections
Weakness
CWE-22
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

In the news

No ingested article mentions this CVE yet.