CVE-2012-4464: Medium severity ruby-lang Ruby vulnerability
Originally, Common Vulnerabilities and Exposures assigned an identifier CVE-2011-1005 to the following vulnerability:
The safe-level feature in Ruby 1.8.6 through 1.8.6-420, 1.8.7 through 1.8.7-330, and 1.8.8dev allows context-dependent attackers to modify strings via the Exception#tos method, as demonstrated by changing an intended pathname.
Later it was reported: [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=689075 [2] http://www.openwall.com/lists/oss-security/2012/10/02/4
that upstream ruby 1.9.1 and ruby 1.9.3 versions are also vulnerable to this flaw.
Relevant upstream patch: [3] http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=37068
Other sources
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) exctos or (2) nameerrtos 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
Event History
Frequently Asked Questions
What is the severity of CVE-2012-4464?
The severity of CVE-2012-4464 is classified as moderate.
How do I fix CVE-2012-4464?
To fix CVE-2012-4464, upgrade Ruby to version 1.9.3 or higher.
What versions of Ruby are affected by CVE-2012-4464?
CVE-2012-4464 affects Ruby versions 1.8.6 through 1.8.8dev.
Can I still use Ruby 1.8.7 after CVE-2012-4464 is identified?
It is not recommended to use Ruby 1.8.7 due to the vulnerabilities present in that version.
Is CVE-2012-4464 related to previous vulnerabilities in Ruby?
Yes, CVE-2012-4464 is related to CVE-2011-1005 and indicates a vulnerability in the safe-level feature.