Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1146335 - (CVE-2013-0334) CVE-2013-0334 rubygem-bundler: 'bundle install' may install a gem from a source other than expected
CVE-2013-0334 rubygem-bundler: 'bundle install' may install a gem from a sour...
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20140814,repor...
: Security
Depends On: 1146336 1159442 1165384 1165385 1210241
Blocks: 1146337 1210268
  Show dependency treegraph
 
Reported: 2014-09-24 23:28 EDT by Murray McAllister
Modified: 2016-11-03 17:12 EDT (History)
50 users (show)

See Also:
Fixed In Version: Bundler 1.7
Doc Type: Bug Fix
Doc Text:
A flaw was found in the way Bundler handled gems available from multiple sources. An attacker with access to one of the sources could create a malicious gem with the same name, which they could then use to trick a user into installing, potentially resulting in execution of code from the attacker-supplied malicious gem.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-11-03 17:12:07 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:2180 normal SHIPPED_LIVE Moderate: rubygem-bundler and rubygem-thor security, bug fix, and enhancement update 2015-11-19 02:52:05 EST

  None (edit)
Description Murray McAllister 2014-09-24 23:28:32 EDT
The 1.7.0 release of Bundler fixes an issue where a gem may be installed from a source other than expected, if the gem file had multiple, top-level source lines. This could potentially lead to a malicious gem file being installed.

From the upstream advisory:

""
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.
""

Note that upstream indicate that backporting is not practical.

External References:

http://bundler.io/blog/2014/08/14/bundler-may-install-gems-from-a-different-source-than-expected-cve-2013-0334.html
Comment 1 Murray McAllister 2014-09-24 23:30:09 EDT
Created rubygem-bundler tracking bugs for this issue:

Affects: fedora-all [bug 1146336]
Comment 3 Fedora Update System 2014-10-12 01:02:39 EDT
rubygem-bundler-1.7.3-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 4 Fedora Update System 2014-10-12 01:07:16 EDT
rubygem-bundler-1.7.3-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 5 Fedora Update System 2014-10-12 01:07:26 EDT
rubygem-bundler-1.7.3-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 11 errata-xmlrpc 2015-11-18 22:51:47 EST
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2015:2180 https://rhn.redhat.com/errata/RHSA-2015-2180.html

Note You need to log in before you can comment on or make changes to this bug.