Vulnerabilities · 2011 · Ruby-lang
CVE-2011-1005
Ruby-lang Ruby 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#to_s method, as demonstrated by changing an intended pathname.
Affected products
Ruby. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Ruby-lang Ruby runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- www.ruby-lang.org/en/news/2011/02/18/exception-methods-can-bypass-safe/ · Exploit
- www.openwall.com/lists/oss-security/2011/02/21/2 · Patch
- www.openwall.com/lists/oss-security/2011/02/21/5 · Patch
- bugzilla.redhat.com/show_bug.cgi?id=678920 · Patch
- lists.apple.com/archives/security-announce/2012/May/msg00001.html
- lists.fedoraproject.org/pipermail/package-announce/2011-March/054422.html
- lists.fedoraproject.org/pipermail/package-announce/2011-March/054436.html
- osvdb.org/70957
- nvd.nist.gov/vuln/detail/CVE-2011-1005
- cve.org/CVERecord?id=CVE-2011-1005
More vulnerabilities in Ruby-lang products
CVE-2026-46727CVE-2025-58767CVE-2025-43857CVE-2025-27788CVE-2025-27221CVE-2025-27220CVE-2025-27219CVE-2025-6442All 115
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.