CVE-2013-6421 sprout Arbitrary Code Execution vulnerability
Attackers can execute arbitrary commands via shell metacharacters in filenames or paths when using the sprout gem to unpack zip archives.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2013-6421?
CVE-2013-6421 is a high-severity command injection vulnerability in n/a, published on 12 Dec 2013. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
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.
Weakness: CWE-94
Which versions are affected by CVE-2013-6421?
2 open source packages ship an affected version, including sprout. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
sprout RubyGems | All versions | None |
sprout RubyGems | All versions | None |
Products include Projectsprouts Sprout.
How do I fix CVE-2013-6421?
No fix has been published for CVE-2013-6421 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2013-6421 being exploited?
There is no known exploitation of CVE-2013-6421 in the wild and no public exploit code.
Sources
Also known as GHSA-229r-pqp6-8w6g.