Vulnerabilities in pkg:gem/colorscore
PACKAGECVE-2015-7541 is a CRITICAL (CVSS 10.0) colorscore command injection vulnerability vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')) affecting Colorscore libraries in the RubyGems ecosystem. The issue involves colorscore command injection vulnerability. Remediation is available by upgrading affected packages to version 0.0.5.
pkg:gem/colorscore
Vulnerability advisories affecting package pkg:gem/colorscore. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-73qw-ww62-m54x | CVE-2015-7541 | CRITICAL | colorscore Command Injection vulnerability |
| GHSA-9wcm-rrvh-qjc8 | - | HIGH | High severity vulnerability that affects colorscore |
CVE-2015-7541 at a Glance
Security Impact
CVSS: 10.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H).
How to Fix CVE-2015-7541
To remediate this vulnerability, upgrade all affected Colorscore 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 colorscore to 0.0.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for colorscore
How to Check if You Are Affected
To determine whether your application is affected by CVE-2015-7541, inspect your project dependencies for Colorscore:
inspect dependencies for colorscore
Analyze the terminal output to locate any version of Colorscore in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.5), 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-77: Improper Neutralization of Special Elements used in a Command ('Command Injection'), where the product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. In Colorscore, 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-2015-7541 Affected Colorscore Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
colorscore
|
RubyGems |
< 0.0.5
|
0.0.5
|
References
Frequently Asked Questions
What is CVE-2015-7541?
Which Colorscore versions are affected?
What version fixes CVE-2015-7541?
Is colorscore affected?
What is the CVSS score of CVE-2015-7541?
What CWE is associated with CVE-2015-7541?
How can I check RubyGems dependencies for CVE-2015-7541?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-73qw-ww62-m54x",
"modified" : "2023-01-25T23:05:06Z",
"published" : "2017-10-24T18:33:36Z",
"aliases" : [ "CVE-2015-7541" ],
"summary" : "colorscore Command Injection vulnerability",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "colorscore"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.0.5"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-7541"
}, {
"type" : "WEB",
"url" : "https://github.com/quadule/colorscore/commit/570b5e854cecddd44d2047c44126aed951b61718"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/quadule/colorscore"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/colorscore/CVE-2015-7541.yml"
}, {
"type" : "WEB",
"url" : "http://rubysec.com/advisories/CVE-2015-7541"
}, {
"type" : "WEB",
"url" : "http://seclists.org/oss-sec/2016/q1/17"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2016/01/05/2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-77" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:21:15Z",
"nvd_published_at" : null
}
}