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

 

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

Published: April 26, 2013 / Updated: August 3, 2020


Vulnerability identifier: #VU33320
CSH Severity: Medium
CVSS v4: 6.9 [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]
CVE-ID: CVE-2012-4464
CWE-ID: CWE-264
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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

Ruby 1.9.3 before patchlevel 286 and 2.0 before revision r37068 allows context-dependent attackers to bypass safe-level restrictions and modify untainted strings via the (1) exc_to_s or (2) name_err_to_s API function, which marks the string as tainted, a different vulnerability than CVE-2012-4466. NOTE: this issue might exist because of a CVE-2011-1005 regression.


Affected software

Ruby
ruby (Alpine package)

How to mitigate CVE-2012-4464

Install update from vendor's website.

Ruby - update to 2.0
ruby (Alpine package) - update to 1.9.3_p194-r0

External References

Related Security Bulletins