CVE-2016-7954 json
Bundler allows attacker to inject arbitrary code via secondary Gem source
published 2016-12-22 9 y ago modified 2026-06-17 4 mo ago also GHSA-jvgm-pfqv-887x , EUVD-2022-4435
- cvss
- 9.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 8.8%
- EPSS 8.8% chance of exploitation in 30 days, percentile 95%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- rubygems bundler 2.0.0
- github.com/bundler/bundler/issues/5062 advisory
- github.com/bundler/bundler/issues/5051 advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2016-7954 updated cvss 4.9
rubygem-bundler: Code execution via gem name collision in bundler
-
Red Hat Enterprise Linux 7 rubygem-bundler Red Hat Enterprise Linux OpenStack Platform 5 (Icehouse) rubygem-bundler Red Hat Enterprise Linux OpenStack Platform 6 (Juno) rubygem-bundler Red Hat OpenShift Enterprise 2 rubygem-bundler Red Hat Satellite 6 rubygem-bundler Red Hat Software Collections rh-ruby22-rubygem-bundler, rh-ruby23-rubygem-bundler, rh-ruby24-rubygem-bundleraffected: no fix planned “Will not fix”
+1 more productsfewer
Red Hat Subscription Asset Manager rubygem-bundler, ruby193-rubygem-bundler
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
8.82% chance of exploitation in the next 30 days, higher than 95% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- collectiveidea.com http://collectiveidea.com/blog/archives/2016/10/06/bundlers-multiple-source-security-vulnerability/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | bundler | >=1.0.0, <2.0.0 |
2.0.0 |
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
github.com
/bundler/bundler/issues/5062
web, issue-tracking, patch, third-party-advisory
-
github.com
/bundler/bundler/issues/5051
web, issue-tracking, patch, third-party-advisory
-
collectiveidea.com
/blog/archives/2016/10/06/bundlers-multiple-source-security-vulnerability/
exploit, third-party-advisory
-
securityfocus.com
/bid/93423
vdb-entry, third-party-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=1381951
web, issue-tracking
-
openwall.com
/lists/oss-security/2016/10/05/3
mailing-list, web, third-party-advisory
-
openwall.com
/lists/oss-security/2016/10/04/7
mailing-list, web, third-party-advisory
-
openwall.com
/lists/oss-security/2016/10/04/5
mailing-list, web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2016-7954
advisory
-
collectiveidea.com
/blog/archives/2016/10/06/bundlers-multiple-source-security-vulnerability
web
-
github.com
/rubygems/bundler
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/bundler/CVE-2016-7954.yml
web
-
web.archive.org
/web/20170214030311/http://www.securityfocus.com/bid/93423
web
-
collectiveidea.com
/blog/archives/2016/10/06/bundlers-multiple-source-security-vulnerability
web
Sources
- CVE List CVE-2016-7954
- GitHub Advisory GHSA-jvgm-pfqv-887x
- NVD CVE-2016-7954
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.