CVE-2013-0334
Bundler may install gems from a different source than expected
Bundler before 1.7, when multiple top-level source lines are used, allows remote attackers to install arbitrary gems by creating a gem with the same name as another gem in a different source.
Exploit likelihood
What each source reports
NVD Score used
5.0
Bundler before 1.7, when multiple top-level source lines are used, allows remote attackers to install arbitrary gems by creating a gem with the same name as another gem in a different source.
- Record
CVE-2013-0334- CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:P/A:N - Weakness
- CWE-20
- Updated
- 2026-11-02
CVE List No score
Bundler before 1.7, when multiple top-level source lines are used, allows remote attackers to install arbitrary gems by creating a gem with the same name as another gem in a different source.
- Record
CVE-2013-0334- Updated
- 2026-11-02
EUVDEUVD-2022-2347 No score
Bundler before 1.7, when multiple top-level source lines are used, allows remote attackers to install arbitrary gems by creating a gem with the same name as another gem in a different source.
- Record
EUVD-2022-2347- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-49jx-9cmc-xjxm No score
Bundler may install gems from a different source than expected
Bundler before 1.7, when multiple top-level source lines are used, allows remote attackers to install arbitrary gems by creating a gem with the same name as another gem in a different source.
- Record
GHSA-49jx-9cmc-xjxm- Weakness
- CWE-20
- Updated
- 2026-11-02
OSVGHSA-49jx-9cmc-xjxm No score
Bundler may install gems from a different source than expected
Bundler before 1.7, when multiple top-level source lines are used, allows remote attackers to install arbitrary gems by creating a gem with the same name as another gem in a different source.
- Record
GHSA-49jx-9cmc-xjxm- Weakness
- CWE-20
- Updated
- 2026-11-02
OSVSUSE-SU-2015:0795-1 No score
Security update for rubygem-bundler
The Rubygem Bundler was updated to version 1.7.0.
Bundler 1.7 is a security-only release to address CVE-2013-0334, a vulnerability where a gem might be installed from an unintended source server, particularly while using both rubygems.org and gems.github.com.
Upstream changes entry with more explanations:
Any Gemfile with multiple top-level source lines cannot reliably control the gem server that a particular gem is fetched from. As a result, Bundler might install the wrong gem if more than one source provides a gem with the same name.
This is especially possible in the case of Github's legacy gem server, hosted at gems.github.com. An attacker might create a malicious gem on Rubygems.org with the same name as a commonly-used Github gem. From that point forward, running bundle install might result in the malicious gem being used instead of the expected gem.
To mitigate this, the Bundler and Rubygems.org teams worked together to copy almost every gem hosted on gems.github.com to rubygems.org, reducing the number of gems that can be used for such an attack.
Resolution:
To resolve this issue, upgrade to Bundler 1.7 by running gem install bundler. The next time you run bundle install for any Gemfile that contains multiple sources, each gem available from multiple sources will print a warning.
For every warning printed, edit the Gemfile to either specify a :source option for that gem, or move the gem line into a block that is passed to a source method call.
For detailed information about the changes to how sources are handled in Bundler version 1.7, see the release announcement.
Security Issues:
* CVE-2013-0334
<http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-0334>
- Record
SUSE-SU-2015:0795-1- Updated
- 2026-11-02
OSVUBUNTU-CVE-2013-0334 No score
Bundler before 1.7, when multiple top-level source lines are used, allows remote attackers to install arbitrary gems by creating a gem with the same name as another gem in a different source.
- Record
UBUNTU-CVE-2013-0334- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
bundlerRubyGems |
before 1.7.0 | 1.7.0 |
bundlerRubyGems |
before 1.7.0, plus listed versions 0.3.00.3.10.4.00.4.10.5.0 Show 45 moreShow less0.6.00.7.00.7.10.7.20.7.3.pre0.7.3.pre20.8.00.8.10.9.00.9.0.pre10.9.0.pre20.9.0.pre30.9.0.pre40.9.0.pre50.9.10.9.1.pre10.9.100.9.110.9.120.9.130.9.140.9.150.9.160.9.170.9.180.9.190.9.20.9.200.9.210.9.220.9.230.9.240.9.250.9.260.9.30.9.40.9.50.9.60.9.70.9.80.9.91.0.01.0.0.beta.11.0.0.beta.101.0.0.beta.2 |
1.7.0 |
rubygem-bundler-docRed Hat:enterprise_linux:7::client |
before 0:1.7.8-3.el7 | 0:1.7.8-3.el7 |
rubygem-thor-docRed Hat:enterprise_linux:7::client |
before 0:0.19.1-1.el7 | 0:0.19.1-1.el7 |
rubygem-bundlerRed Hat:enterprise_linux:7::client |
before 0:1.7.8-3.el7 | 0:1.7.8-3.el7 |
rubygem-thorRed Hat:enterprise_linux:7::client |
before 0:0.19.1-1.el7 | 0:0.19.1-1.el7 |
rubygem-bundler-docRed Hat:enterprise_linux:7::computenode |
before 0:1.7.8-3.el7 | 0:1.7.8-3.el7 |
rubygem-thor-docRed Hat:enterprise_linux:7::computenode |
before 0:0.19.1-1.el7 | 0:0.19.1-1.el7 |
rubygem-bundlerRed Hat:enterprise_linux:7::computenode |
before 0:1.7.8-3.el7 | 0:1.7.8-3.el7 |
rubygem-thorRed Hat:enterprise_linux:7::computenode |
before 0:0.19.1-1.el7 | 0:0.19.1-1.el7 |
Show 8 moreShow less
| Package | Affected | Fixed |
|---|---|---|
rubygem-bundler-docRed Hat:enterprise_linux:7::server |
before 0:1.7.8-3.el7 | 0:1.7.8-3.el7 |
rubygem-thor-docRed Hat:enterprise_linux:7::server |
before 0:0.19.1-1.el7 | 0:0.19.1-1.el7 |
rubygem-bundlerRed Hat:enterprise_linux:7::server |
before 0:1.7.8-3.el7 | 0:1.7.8-3.el7 |
rubygem-thorRed Hat:enterprise_linux:7::server |
before 0:0.19.1-1.el7 | 0:0.19.1-1.el7 |
rubygem-bundler-docRed Hat:enterprise_linux:7::workstation |
before 0:1.7.8-3.el7 | 0:1.7.8-3.el7 |
rubygem-thor-docRed Hat:enterprise_linux:7::workstation |
before 0:0.19.1-1.el7 | 0:0.19.1-1.el7 |
rubygem-bundlerRed Hat:enterprise_linux:7::workstation |
before 0:1.7.8-3.el7 | 0:1.7.8-3.el7 |
rubygem-thorRed Hat:enterprise_linux:7::workstation |
before 0:0.19.1-1.el7 | 0:0.19.1-1.el7 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2013-0334 is a medium vulnerability (CVSS 5.0) in Bundler, published October 31, 2014. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 4.30%, the 91st percentile. Fixed in bundler 1.7.0.
References
security.gentoo.org/glsa/201609-02
lists.fedoraproject.org/pipermail/package-announce/2014-October/140609.html
lists.fedoraproject.org/pipermail/package-announce/2014-October/140654.html
bundler.io/blog/2014/08/14/bundler-may-install-gems-from-a-different-source-than-expected-cve-2013-0334.html
oracle.com/technetwork/topics/security/linuxbulletinoct2015-2719645.html
lists.fedoraproject.org/pipermail/package-announce/2014-October/140655.html
Show 20 moreShow less
lists.opensuse.org/opensuse-updates/2015-03/msg00092.html
securityfocus.com/bid/70099
nvd.nist.gov/vuln/detail/CVE-2013-0334
github.com/rubysec/ruby-advisory-db/blob/master/gems/bundler/CVE-2013-0334.yml
web.archive.org/web/20210122060358/https://www.securityfocus.com/bid/70099
github.com/advisories/GHSA-49jx-9cmc-xjxm
github.com/rubygems/bundler
access.redhat.com/errata/RHSA-2015:2180
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=1146335
bugzilla.redhat.com/show_bug.cgi?id=1163076
bugzilla.redhat.com/show_bug.cgi?id=1194243
bugzilla.redhat.com/show_bug.cgi?id=1209921
security.access.redhat.com/data/csaf/v2/advisories/2015/rhsa-2015_2180.json
access.redhat.com/security/cve/CVE-2013-0334
cve.org/CVERecord?id=CVE-2013-0334
suse.com/support/update/announcement/2015/suse-su-20150795-1
bugzilla.suse.com/898205
suse.com/security/cve/CVE-2013-0334
ubuntu.com/security/CVE-2013-0334
Left out here: 100 versions. The JSON record has them.