CVE-2012-4464: Medium severity ruby-lang Ruby vulnerability

Published Oct 3, 2012
·
Updated

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

12 affected componentsFixes available
redhat/ruby<1.9.3
1.9.3
ruby-lang Ruby=1.9.3
ruby-lang Ruby=1.9.3-p0
ruby-lang Ruby=1.9.3-p125
ruby-lang Ruby=1.9.3-p194
ruby-lang Ruby=2.0
ruby-lang Ruby=2.0.0
ruby-lang Ruby=2.0.0-p0
ruby-lang Ruby=2.0.0-preview1
ruby-lang Ruby=2.0.0-preview2
ruby-lang Ruby=2.0.0-rc1
ruby-lang Ruby=2.0.0-rc2

Event History

Oct 3, 2012
Data Sourced
via Red Hat·10:59 AM
DescriptionSeverityAffected Software
Apr 25, 2013
CVE Published
via MITRE·11:00 PM
Data Sourced
via MITRE·11:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2012-4464?

The severity of CVE-2012-4464 is classified as moderate.

2

How do I fix CVE-2012-4464?

To fix CVE-2012-4464, upgrade Ruby to version 1.9.3 or higher.

3

What versions of Ruby are affected by CVE-2012-4464?

CVE-2012-4464 affects Ruby versions 1.8.6 through 1.8.8dev.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203