colorscore Gem for Ruby lib/colorscore/histogram.rb Arbitrary Command Injection


2017-06-16 19:16
2017-04-01 19:10
2017-01-05 20:15


The contents of the `image_path`, `colors`, and `depth` variables generated
from possibly user-supplied input are passed directly to the shell via
`convert ...`.

If a user supplies a value that includes shell metacharacters such as ';', an
attacker may be able to execute shell commands on the remote system as the
user id of the Ruby process.

To resolve this issue, the aforementioned variables (especially `image_path`)
must be sanitized for shell metacharacters.

Am I vulnerable?

The constraints below list the versions that this vulnerability is patched in, and versions that are unaffected. If a patch is ready but unrealeased, then it is pending.

Or, you can just let us figure it out for you! Appcanary continously monitor your installed packages, and tell you if any of them are vulnerable.

Sign up for monitoring

Affected package information

Package Patched in Unaffected in
colorscore >= 0.0.5 None