9.8crit

CVE-2016-7954

Bundler allows attacker to inject arbitrary code via secondary Gem source

Also known as GHSA-jvgm-pfqv-887x

Published 9 y ago · modified 4 mo ago · JSON

CVSS
9.8
v3.0 · NVD
CISA KEV
No
not known exploited
EPSS
8.8%
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.

Exploit prediction (EPSS)

8.82% probability of exploitation in the next 30 days, higher than 95% of all scored CVEs.

CVSS scores

Assigned byVersionScoreVector
NVD3.09.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD2.07.5AV:N/AC:L/Au:N/C:P/I:P/A:P
GitHub3.09.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

EcosystemPackageAffectedFixed in
rubygemsbundler
>=1.0.0, <2.0.0
2.0.0

Classification

Weakness
  • CWE-94 Improper Control of Generation of Code

References

  • securityfocus.com /bid/93423 · vdb-entry, x_refsource_BID, x_transferred
  • github.com /bundler/bundler/issues/5062 · x_refsource_CONFIRM, x_transferred
  • collectiveidea.com /blog/archives/2016/10/06/bundlers-multiple-source-security-vulnerability/ · x_refsource_MISC, x_transferred
  • bugzilla.redhat.com /show_bug.cgi?id=1381951 · x_refsource_CONFIRM, x_transferred
  • openwall.com /lists/oss-security/2016/10/05/3 · mailing-list, x_refsource_MLIST, x_transferred
  • openwall.com /lists/oss-security/2016/10/04/7 · mailing-list, x_refsource_MLIST, x_transferred
  • openwall.com /lists/oss-security/2016/10/04/5 · mailing-list, x_refsource_MLIST, x_transferred
  • github.com /bundler/bundler/issues/5051 · x_refsource_CONFIRM, x_transferred
  • 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

vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.