CVE-2011-1005
What it is
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.
At a glance
- Exploitability
- Can be exploited over the network without logging in. Limited direct impact.
- Exploit odds
- 2.8% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 2.8% in the next 30 days (EPSS).
- Severity: 5.0 MEDIUM (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 2.8% · EPSS, next 30 days
- Weakness
- CWE-264
- Record status
- Modified
Affected
- 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
Attack profile CVSS 2.0 · 5.0
- Attack vector
- Network
- Complexity
- Low
- Authentication
- None
- Confidentiality
- None
- Integrity
- Partial
- Availability
- None
Raw vector
AV:N/AC:L/Au:N/C:N/I:P/A:N
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2011-1005.md and follow it. Check whether this project is affected by CVE-2011-1005. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- http://www.openwall.com/lists/oss-security/2011/02/21/2
- http://www.openwall.com/lists/oss-security/2011/02/21/5
- http://www.ruby-lang.org/en/news/2011/02/18/exception-methods-can-bypass-safe/
- https://bugzilla.redhat.com/show_bug.cgi?id=678920
- http://www.openwall.com/lists/oss-security/2011/02/21/2
- http://www.openwall.com/lists/oss-security/2011/02/21/5
- http://www.ruby-lang.org/en/news/2011/02/18/exception-methods-can-bypass-safe/
- https://bugzilla.redhat.com/show_bug.cgi?id=678920
References
- http://lists.apple.com/archives/security-announce/2012/May/msg00001.html
- http://lists.fedoraproject.org/pipermail/package-announce/2011-March/054422.html
- http://lists.fedoraproject.org/pipermail/package-announce/2011-March/054436.html
- http://osvdb.org/70957
- http://secunia.com/advisories/43420
- http://secunia.com/advisories/43573
- http://support.apple.com/kb/HT5281
- http://www.mandriva.com/security/advisories?name=MDVSA-2011:097
- http://www.mandriva.com/security/advisories?name=MDVSA-2011:098
- http://www.openwall.com/lists/oss-security/2011/02/21/2
- http://www.openwall.com/lists/oss-security/2011/02/21/5
- http://www.redhat.com/support/errata/RHSA-2011-0908.html
- http://www.redhat.com/support/errata/RHSA-2011-0909.html
- http://www.redhat.com/support/errata/RHSA-2011-0910.html
- http://www.ruby-lang.org/en/news/2011/02/18/exception-methods-can-bypass-safe/
- http://www.securityfocus.com/bid/46458
- http://www.vupen.com/english/advisories/2011/0539
- https://bugzilla.redhat.com/show_bug.cgi?id=678920
- http://lists.apple.com/archives/security-announce/2012/May/msg00001.html
- http://lists.fedoraproject.org/pipermail/package-announce/2011-March/054422.html
- http://lists.fedoraproject.org/pipermail/package-announce/2011-March/054436.html
- http://osvdb.org/70957
- http://secunia.com/advisories/43420
- http://secunia.com/advisories/43573
- http://support.apple.com/kb/HT5281