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

 

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

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


Vulnerability identifier: #VU33321
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-4466
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.8.7 before patchlevel 371, 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 name_err_mesg_to_str API function, which marks the string as tainted, a different vulnerability than CVE-2011-1005.


Affected software

Ruby
Amazon Linux AMI
Ubuntu
ruby (Alpine package)
libruby1.8 (Ubuntu package)
libruby1.9.1 (Ubuntu package)

How to mitigate CVE-2012-4466

Install update from vendor's website.

Ruby - update to 1.8.7-160
ruby (Alpine package) - update to 1.9.3_p194-r0
libruby1.8 (Ubuntu package) - addressed in versions 1.8.7.249-2ubuntu0.2, 1.8.7.302-2ubuntu0.2, 1.8.7.352-2ubuntu0.2, 1.8.7.352-2ubuntu1.1, 1.8.7.358-4ubuntu0.1
libruby1.9.1 (Ubuntu package) - addressed in versions 1.9.3.0-1ubuntu2.3, 1.9.3.0-1ubuntu2.4, 1.9.3.194-1ubuntu1.2

External References

Related Security Bulletins