Vulnerabilities in pkg:gem/colorscore

PACKAGE
Advisory Identifier: GHSA-73qw-ww62-m54x
Advisory Summary

CVE-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.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:gem/colorscore

2 Known Advisory Record(s)

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

CVE Identifier CVE-2015-7541
GHSA Identifier GHSA-73qw-ww62-m54x
Severity CRITICAL
CVSS v3.1 Base Score 10.0
CWE Classification CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
Affected Product Colorscore
Package Ecosystem RubyGems
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

colorscore fixed: 0.0.5
Upgrade colorscore to 0.0.5
Verify Direct and Transitive Dependencies

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

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.

CVE-2015-7541 Affected Colorscore Versions

1 component(s)
Fixed Versions:
0.0.5
Product / Package Ecosystem Affected Versions Fixed Version
colorscore
RubyGems
< 0.0.5
0.0.5

References

Frequently Asked Questions

What is CVE-2015-7541?
CVE-2015-7541 is a security vulnerability in Colorscore involving colorscore Command Injection vulnerability under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection').
Which Colorscore versions are affected?
Affected versions include releases prior to 0.0.5 across affected packages: colorscore.
What version fixes CVE-2015-7541?
Upgrading to 0.0.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is colorscore affected?
Yes, colorscore is affected in releases prior to 0.0.5. Upgrade your dependency to 0.0.5 or later.
What is the CVSS score of CVE-2015-7541?
CVE-2015-7541 has a CVSS v3.1 base score of 10.0 (CRITICAL) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2015-7541?
CVE-2015-7541 is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') (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.).
How can I check RubyGems dependencies for CVE-2015-7541?
Run the dependency tree command: 'inspect dependencies for colorscore'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}