CVE-2013-0334: Bundler Remote Code Execution Vulnerability
MODERATECVE-2013-0334 is a MODERATE remote code execution vulnerability (CWE-20: Improper Input Validation) affecting Bundler libraries in the RubyGems ecosystem. The issue involves bundler may install gems from a different source than expected. Remediation is available by upgrading affected packages to version 1.7.0.
CVE-2013-0334 at a Glance
How to Fix CVE-2013-0334
To remediate this vulnerability, upgrade all affected Bundler dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade bundler to 1.7.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for bundler
How to Check if You Are Affected
To determine whether your application is affected by CVE-2013-0334, inspect your project dependencies for Bundler:
inspect dependencies for bundler
Analyze the terminal output to locate any version of Bundler in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.7.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Bundler, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2013-0334 Affected Bundler Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
bundler
|
RubyGems |
< 1.7.0
|
1.7.0
|
References
Frequently Asked Questions
What is CVE-2013-0334?
Which Bundler versions are affected?
What version fixes CVE-2013-0334?
Is bundler affected?
What CWE is associated with CVE-2013-0334?
How can I check RubyGems dependencies for CVE-2013-0334?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-49jx-9cmc-xjxm",
"modified" : "2023-03-20T19:50:20Z",
"published" : "2022-05-05T02:48:48Z",
"aliases" : [ "CVE-2013-0334" ],
"summary" : "Bundler may install gems from a different source than expected",
"details" : "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.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "bundler"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.7.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-0334"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rubygems/bundler"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/bundler/CVE-2013-0334.yml"
}, {
"type" : "WEB",
"url" : "https://security.gentoo.org/glsa/201609-02"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20210122060358/https://www.securityfocus.com/bid/70099"
}, {
"type" : "WEB",
"url" : "http://bundler.io/blog/2014/08/14/bundler-may-install-gems-from-a-different-source-than-expected-cve-2013-0334.html"
}, {
"type" : "WEB",
"url" : "http://lists.fedoraproject.org/pipermail/package-announce/2014-October/140609.html"
}, {
"type" : "WEB",
"url" : "http://lists.fedoraproject.org/pipermail/package-announce/2014-October/140654.html"
}, {
"type" : "WEB",
"url" : "http://lists.fedoraproject.org/pipermail/package-announce/2014-October/140655.html"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-updates/2015-03/msg00092.html"
}, {
"type" : "WEB",
"url" : "http://www.oracle.com/technetwork/topics/security/linuxbulletinoct2015-2719645.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-03-20T19:50:20Z",
"nvd_published_at" : "2014-10-31T14:55:00Z"
}
}