CVE-2013-6421: Sprout Sprout Arbitrary Code Execution Vulnerability Vulnerability
HIGHCVE-2013-6421 is a HIGH sprout arbitrary code execution vulnerability vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Sprout libraries in the RubyGems ecosystem. The issue involves sprout arbitrary code execution vulnerability. Remediation is available in the latest vendor maintenance releases.
CVE-2013-6421 at a Glance
How to Fix CVE-2013-6421
To remediate this vulnerability, upgrade all affected Sprout 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 sprout to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for sprout
How to Check if You Are Affected
To determine whether your application is affected by CVE-2013-6421, inspect your project dependencies for Sprout:
inspect dependencies for sprout
Analyze the terminal output to locate any version of Sprout in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Sprout, 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-6421 Affected Sprout Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
sprout
|
RubyGems |
0.7.246
All 1 versions
0.7.246
|
None specified
|
References
Frequently Asked Questions
What is CVE-2013-6421?
Which Sprout versions are affected?
What version fixes CVE-2013-6421?
Is sprout affected?
What CWE is associated with CVE-2013-6421?
How can I check RubyGems dependencies for CVE-2013-6421?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-229r-pqp6-8w6g",
"modified" : "2023-08-29T15:58:19Z",
"published" : "2017-10-24T18:33:36Z",
"aliases" : [ "CVE-2013-6421" ],
"summary" : "sprout Arbitrary Code Execution vulnerability",
"details" : "The `unpack_zip` function in `archive_unpacker.rb` in the sprout gem 0.7.246 for Ruby allows context-dependent attackers to execute arbitrary commands via shell metacharacters in a (1) filename or (2) path.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "sprout"
},
"versions" : [ "0.7.246" ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-6421"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/lukebayes/project-sprouts"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sprout/CVE-2013-6421.yml"
}, {
"type" : "WEB",
"url" : "http://archives.neohapsis.com/archives/bugtraq/2013-12/0077.html"
}, {
"type" : "WEB",
"url" : "http://vapid.dhs.org/advisories/sprout-0.7.246-command-inj.html"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2013/12/03/1"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2013/12/03/6"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T20:50:49Z",
"nvd_published_at" : "2013-12-12T18:55:16Z"
}
}