CVE-2016-0752
KEV PoC ×2massDirectory Traversal Arbitrary File Read in Ruby on Rails Action View
CISA: Ruby on Rails Directory Traversal Vulnerability
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.
| 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 | — |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
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.
- 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 news0 stories
No ingested article mentions this CVE yet.