Permissions, Privileges, and Access Controls in Ruby - CVE-2012-4522

 

Permissions, Privileges, and Access Controls in Ruby - CVE-2012-4522

Published: November 24, 2012 / Updated: August 11, 2020


Vulnerability identifier: #VU43297
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2012-4522
CWE-ID: CWE-264
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Ruby
Affected software:
Ruby

Detailed vulnerability description

The vulnerability allows a remote non-authenticated attacker to manipulate data.

The rb_get_path_check function in file.c in Ruby 1.9.3 before patchlevel 286 and Ruby 2.0.0 before r37163 allows context-dependent attackers to create files in unexpected locations or with unexpected names via a NUL byte in a file path.


How to mitigate CVE-2012-4522

Install update from vendor's website.

Sources