CVE-2015-7541 colorscore Command Injection vulnerability

Critical 10.0 Published Updated

Attackers can execute arbitrary code via shell metacharacters in image path, colors, or depth variables in the colorscore Ruby gem.

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

What is CVE-2015-7541?

CVE-2015-7541 is a critical command injection vulnerability in n/a, published on 8 Jan 2016. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The initialize method in the Histogram class in lib/colorscore/histogram.rb in the colorscore gem before 0.0.5 for Ruby allows context-dependent attackers to execute arbitrary code via shell metacharacters in the (1) image_path, (2) colors, or (3) depth variable.

Weakness: CWE-77

Which versions are affected by CVE-2015-7541?

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

PackageAffectedFixed in
colorscore RubyGemsAll versions0.0.5
colorscore RubyGemsAll versions0.0.5

Products include Colorscore Project Colorscore.

How do I fix CVE-2015-7541?

Upgrade colorscore to 0.0.5 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2015-7541 being exploited?

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

Sources

Also known as GHSA-73qw-ww62-m54x.

Is CVE-2015-7541 in your software?

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

Check your SBOMs for free