CVE-2013-2513 flash_tool Gem for Ruby File Download Handling Arbitrary Command Execution

Critical 9.8 Published Updated

Attackers can execute arbitrary commands via shell metacharacters in downloaded file names using the flash_tool gem.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2013-2513?

CVE-2013-2513 is a critical command injection vulnerability in n/a, published on 12 Dec 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The flash_tool gem through 0.6.0 for Ruby allows command execution via shell metacharacters in the name of a downloaded file.

Weakness: CWE-77

Which versions are affected by CVE-2013-2513?

2 open source packages ship an affected version, including flash_tool. It affects 1 product.

PackageAffectedFixed in
flash_tool RubyGemsAll versions to 0.6.0None
flash_tool RubyGemsAll versions to 0.6.0None

Products include Milboj Flash Tool.

How do I fix CVE-2013-2513?

No fix has been published for CVE-2013-2513 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-2513 being exploited?

There is no known exploitation of CVE-2013-2513 in the wild and no public exploit code.

Sources

Also known as GHSA-6325-6g32-7p35.

Is CVE-2013-2513 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free