CVE-2011-1005

Summary

CVECVE-2011-1005
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2011-03-02 20:00:01 UTC
Updated2026-04-29 01:13:23 UTC
DescriptionThe 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#to_s method, as demonstrated by changing an intended pathname.

Risk And Classification

Primary CVSS: v2.0 5 from [email protected]

AV:N/AC:L/Au:N/C:N/I:P/A:N

Problem Types: CWE-264 | n/a

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Low
Authentication
None
Confidentiality
None
Integrity
Partial
Availability
None

AV:N/AC:L/Au:N/C:N/I:P/A:N

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Ruby-lang Ruby 1.8.6 All All All
Application Ruby-lang Ruby 1.8.6-420 All All All
Application Ruby-lang Ruby 1.8.7 All All All
Application Ruby-lang Ruby 1.8.7-330 All All All
Application Ruby-lang Ruby 1.8.8 dev All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Na N/a affected n/a Not specified

References

ReferenceSourceLinkTags
Fedora update for ruby - Secunia.com af854a3a-2127-422b-91ae-364da2661108 secunia.com
oss-security - Re: CVE request: ruby: FileUtils is vulnerable to symlink race attacks + Exception methods can bypass $SAFE af854a3a-2127-422b-91ae-364da2661108 www.openwall.com Patch
Ruby "#to_s" Safe Level Security Bypass Vulnerability - Secunia.com af854a3a-2127-422b-91ae-364da2661108 secunia.com
[SECURITY] Fedora 13 Update: ruby-1.8.6.420-2.fc13 af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
Support / Security / Advisories / / MDVSA-2011:098 | Mandriva af854a3a-2127-422b-91ae-364da2661108 www.mandriva.com
osvdb.org/70957 af854a3a-2127-422b-91ae-364da2661108 osvdb.org
Ruby "#to_s" Security Bypass Vulnerability af854a3a-2127-422b-91ae-364da2661108 www.securityfocus.com
Exception methods can bypass $SAFE af854a3a-2127-422b-91ae-364da2661108 www.ruby-lang.org Exploit, Patch, Vendor Advisory
oss-security - CVE request: ruby: FileUtils is vulnerable to symlink race attacks + Exception methods can bypass $SAFE af854a3a-2127-422b-91ae-364da2661108 www.openwall.com Patch
About the security content of OS X Lion v10.7.4 and Security Update 2012-002 af854a3a-2127-422b-91ae-364da2661108 support.apple.com
Support af854a3a-2127-422b-91ae-364da2661108 www.redhat.com
Webmail : Solution de messagerie professionnelle - OVHcloud- OVH af854a3a-2127-422b-91ae-364da2661108 www.vupen.com
Red Hat Customer Portal af854a3a-2127-422b-91ae-364da2661108 www.redhat.com
APPLE-SA-2012-05-09-1 OS X Lion v10.7.4 and Security Update 2012-002 af854a3a-2127-422b-91ae-364da2661108 lists.apple.com
Red Hat Customer Portal af854a3a-2127-422b-91ae-364da2661108 www.redhat.com
Support / Security / Advisories / / MDVSA-2011:097 | Mandriva af854a3a-2127-422b-91ae-364da2661108 www.mandriva.com
Fedora 14 Update: ruby-1.8.7.334-1.fc14 af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
Bug 678920 – CVE-2011-1005 Ruby: Untrusted codes able to modify arbitrary strings af854a3a-2127-422b-91ae-364da2661108 bugzilla.redhat.com Patch
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report