CVE-2011-1005: Medium severity ruby vulnerability

Published Feb 20, 2011
·
Updated

A security flaw was found in the Ruby method, translating message of the exception into string representation. An attacker could use this flaw to modify arbitrary untainted strings into their tainted equivalents by tricking the safe level mechanism of this method.

References: [1] http://www.ruby-lang.org/en/news/2011/02/18/exception-methods-can-bypass-safe/

Upstream patch (against ruby18 branch): [2] http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30903

Other sources

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.

MITRE

Affected Software

5 affected components
ruby-lang Ruby=1.8.6
ruby-lang Ruby=1.8.6-420
ruby-lang Ruby=1.8.7
ruby-lang Ruby=1.8.7-330
ruby-lang Ruby=1.8.8-dev

Event History

Feb 20, 2011
Data Sourced
via Red Hat·08:27 PM
DescriptionSeverityAffected Software
Mar 2, 2011
CVE Published
via MITRE·07:00 PM
Data Sourced
via MITRE·07:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2011-1005?

CVE-2011-1005 has been classified as a moderate severity vulnerability.

2

How do I fix CVE-2011-1005?

To fix CVE-2011-1005, upgrade to a patched version of Ruby that addresses this security flaw.

3

Which Ruby versions are affected by CVE-2011-1005?

CVE-2011-1005 affects Ruby versions 1.8.6, 1.8.7, and 1.8.8-dev.

4

What is the impact of CVE-2011-1005?

The impact of CVE-2011-1005 allows an attacker to manipulate arbitrary untainted strings if they successfully exploit the flaw.

5

Is CVE-2011-1005 associated with any exploit techniques?

CVE-2011-1005 can be exploited using manipulation of the safe level mechanism within Ruby.

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