Code Injection in bundler - CVE-2016-7954
Published: December 23, 2016 / Updated: August 9, 2020
Vulnerability identifier: #VU39969
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2016-7954
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vendor: Bundler
Affected software:
bundler
bundler
Detailed vulnerability description
The vulnerability allows a remote non-authenticated attacker to execute arbitrary code.
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.
How to mitigate CVE-2016-7954
Install update from vendor's website.
Sources
- http://collectiveidea.com/blog/archives/2016/10/06/bundlers-multiple-source-security-vulnerability/
- http://www.openwall.com/lists/oss-security/2016/10/04/5
- http://www.openwall.com/lists/oss-security/2016/10/04/7
- http://www.openwall.com/lists/oss-security/2016/10/05/3
- http://www.securityfocus.com/bid/93423
- https://bugzilla.redhat.com/show_bug.cgi?id=1381951
- https://github.com/bundler/bundler/issues/5051
- https://github.com/bundler/bundler/issues/5062