Skip to content
Fencer Intel
critical 9.8

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

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-bundler
    +1 more products
    Red Hat Subscription Asset Manager rubygem-bundler, ruby193-rubygem-bundler
    affected: no fix planned “Will not fix”

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-09).

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

Sources

Fencer Intel 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.