| Advisory ID | gitlab/gem/actionview/CVE-2016-0752 |
| Aliases |
CVE-2016-0752
GHSA-xrr4-p6fq-hjg7 |
| Summary | 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. |
| Status | Published |
| Exploitability | 2.0 |
| Weighted Severity | 0.0 |
| Risk | |
| Affected and Fixed Packages | Package Details |
| Introduced and Fixed Package Commit Patches | Package Commit Patches Details |
| There are no known CWE. |
| Data source | KEV |
|---|---|
| Date added | March 25, 2022 |
| Description | Directory traversal vulnerability in Action View in Ruby on Rails allows remote attackers to read arbitrary files. |
| Required action | Apply updates per vendor instructions. |
| Due date | April 15, 2022 |
| Note | https://nvd.nist.gov/vuln/detail/CVE-2016-0752 |
| Ransomware campaign use | Unknown |
| Data source | Metasploit |
|---|---|
| Description | This module exploits a remote code execution vulnerability in the explicit render method when leveraging user parameters. This module has been tested across multiple versions of Ruby on Rails. The technique used by this module requires the specified endpoint to be using dynamic render paths, such as the following example: def show render params[:id] end Also, the vulnerable target will need a POST endpoint for the TempFile upload, this can literally be any endpoint. This module doesnt use the log inclusion method of exploitation due to it not being universal enough. Instead, a new code injection technique was found and used whereby an attacker can upload temporary image files against any POST endpoint and use them for the inclusion attack. Finally, you only get one shot at this if you are testing with the builtin rails server, use caution. |
| Note | Reliability: - unknown-reliability Stability: - unknown-stability SideEffects: - unknown-side-effects |
| Ransomware campaign use | Unknown |
| Source publication date | Oct. 16, 2016 |
| Platform | BSD,Linux |
| Source URL | https://github.com/rapid7/metasploit-framework/tree/master/modules/exploits/multi/http/rails_dynamic_render_code_exec.rb |
| Data source | Exploit-DB |
|---|---|
| Date added | Oct. 17, 2016 |
| Description | Ruby on Rails - Dynamic Render File Upload / Remote Code Execution (Metasploit) |
| Ransomware campaign use | Known |
| Source publication date | Oct. 17, 2016 |
| Exploit type | remote |
| Platform | multiple |
| Source update date | Oct. 25, 2016 |
| Data source | KEV |
|---|---|
| Date added | March 25, 2022 |
| Description | Directory traversal vulnerability in Action View in Ruby on Rails allows remote attackers to read arbitrary files. |
| Required action | Apply updates per vendor instructions. |
| Due date | April 15, 2022 |
| Note | https://nvd.nist.gov/vuln/detail/CVE-2016-0752 |
| Ransomware campaign use | Unknown |
| Data source | Metasploit |
|---|---|
| Description | This module exploits a remote code execution vulnerability in the explicit render method when leveraging user parameters. This module has been tested across multiple versions of Ruby on Rails. The technique used by this module requires the specified endpoint to be using dynamic render paths, such as the following example: def show render params[:id] end Also, the vulnerable target will need a POST endpoint for the TempFile upload, this can literally be any endpoint. This module doesnt use the log inclusion method of exploitation due to it not being universal enough. Instead, a new code injection technique was found and used whereby an attacker can upload temporary image files against any POST endpoint and use them for the inclusion attack. Finally, you only get one shot at this if you are testing with the builtin rails server, use caution. |
| Note | Reliability: - unknown-reliability Stability: - unknown-stability SideEffects: - unknown-side-effects |
| Ransomware campaign use | Unknown |
| Source publication date | Oct. 16, 2016 |
| Platform | BSD,Linux |
| Source URL | https://github.com/rapid7/metasploit-framework/tree/master/modules/exploits/multi/http/rails_dynamic_render_code_exec.rb |
| Data source | Exploit-DB |
|---|---|
| Date added | Oct. 17, 2016 |
| Description | Ruby on Rails - Dynamic Render File Upload / Remote Code Execution (Metasploit) |
| Ransomware campaign use | Known |
| Source publication date | Oct. 17, 2016 |
| Exploit type | remote |
| Platform | multiple |
| Source update date | Oct. 25, 2016 |
No EPSS data available for this advisory.
| Patch URL | |
|---|---|
| There are no known patches. | |
| Exploitability (E) | Access Vector (AV) | Access Complexity (AC) | Authentication (Au) | Confidentiality Impact (C) | Integrity Impact (I) | Availability Impact (A) |
|---|---|---|---|---|---|---|
high functional unproven proof_of_concept not_defined |
local adjacent_network network |
high medium low |
multiple single none |
none partial complete |
none partial complete |
none partial complete |
| Attack Vector (AV) | Attack Complexity (AC) | Privileges Required (PR) | User Interaction (UI) | Scope (S) | Confidentiality Impact (C) | Integrity Impact (I) | Availability Impact (A) |
|---|---|---|---|---|---|---|---|
network adjacent_network local physical |
low high |
none low high |
none required |
unchanged changed |
high low none |
high low none |
high low none |
Vector: SSVCv2/E:A/A:Y/T:P/P:M/B:A/M:M/D:A/2025-02-07T13:26:36Z/
Decision: Attend
Source URL: https://github.com/cisagov/vulnrichment/blob/develop/2016/0xxx/CVE-2016-0752.json
Source Advisory: vulnrichment/CVE-2016-0752
[{'Exploitation': 'active'},
{'Automatable': 'yes'},
{'Technical Impact': 'partial'},
{'Mission Prevalence': 'minimal'},
{'Public Well-being Impact': 'material'},
{'Mission & Well-being': 'medium'}]