CVE-2016-7954 Bundler allows attacker to inject arbitrary code via secondary Gem source
Remote attackers can inject arbitrary Ruby code into applications using Bundler by exploiting gem name collisions on secondary sources.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2016-7954?
CVE-2016-7954 is a critical code injection vulnerability in n/a, published on 22 Dec 2016. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-94
Which versions are affected by CVE-2016-7954?
2 open source packages ship an affected version, including bundler. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
bundler RubyGems | From 1.0.0 | 2.0.0 |
bundler RubyGems | From 1.0.0 | 2.0.0 |
Products include Bundler Bundler.
How do I fix CVE-2016-7954?
Upgrade bundler to 2.0.0 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2016-7954 being exploited?
There is no known exploitation of CVE-2016-7954 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-jvgm-pfqv-887x, UBUNTU-CVE-2016-7954.