Vulnerabilities in pkg:gem/capistrano-colors

PACKAGE
Advisory Identifier: GHSA-333g-rpr4-7hxq
Advisory Summary

CVE-2019-15224 is a CRITICAL (CVSS 9.8) rest-client gem contains malicious code vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Rest client libraries in the RubyGems ecosystem. The issue involves rest-client gem contains malicious code. Remediation is available by upgrading affected packages to version 1.7.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:gem/capistrano-colors

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:gem/capistrano-colors. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-333g-rpr4-7hxq CVE-2019-15224 CRITICAL rest-client Gem Contains Malicious Code

CVE-2019-15224 at a Glance

CVE Identifier CVE-2019-15224
GHSA Identifier GHSA-333g-rpr4-7hxq
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Rest client
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 9.8

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:U/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 Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2019-15224

To remediate this vulnerability, upgrade all affected Rest client dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

rest-client fixed: 1.7.0
Upgrade rest-client to 1.7.0
cron_parser fixed: Latest secure release
Upgrade cron_parser to Latest secure release
cron_parser fixed: Latest secure release
Upgrade cron_parser to Latest secure release
coin_base fixed: Latest secure release
Upgrade coin_base to Latest secure release
blockchain_wallet fixed: Latest secure release
Upgrade blockchain_wallet to Latest secure release
awesome-bot fixed: Latest secure release
Upgrade awesome-bot to Latest secure release
doge-coin fixed: Latest secure release
Upgrade doge-coin to Latest secure release
capistrano-colors fixed: Latest secure release
Upgrade capistrano-colors to Latest secure release
bitcoin_vanity fixed: Latest secure release
Upgrade bitcoin_vanity to Latest secure release
coming-soon fixed: Latest secure release
Upgrade coming-soon to Latest secure release
omniauth_amazon fixed: Latest secure release
Upgrade omniauth_amazon to Latest secure release
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 rest-client

How to Check if You Are Affected

To determine whether your application is affected by CVE-2019-15224, inspect your project dependencies for Rest client:

inspect dependencies for rest-client

Analyze the terminal output to locate any version of Rest client in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.7.0), 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-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Rest client, 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 rest-client gem 1.6.10 through 1.6.13 for Ruby, as distributed on RubyGems.org, included a code-execution backdoor inserted by a third party. Users of an affected version should consider downgrading to the last non-affected version of 1.6.9, or upgrading to 1.7.x. Additionally, a set of other minor gems have been partially or completely yanked and are included in this advisory. These include cron_parser, coin_base, blockchain_wallet, awesome-bot, doge-coin, capistrano-colors, bitcoin_vanity, lita_coin, coming-soon, and omniauth_amazon.

CVE-2019-15224 Affected Rest client Versions

11 component(s)
Fixed Versions:
1.7.0
Product / Package Ecosystem Affected Versions Fixed Version
rest-client
RubyGems
≥ 1.6.10
< 1.7.0
1.7.0
cron_parser
RubyGems
≥ 1.0.13
≤ 1.0.14
cron_parser
RubyGems
0.1.4
All 1 versions
0.1.4
None specified
coin_base
RubyGems
blockchain_wallet
RubyGems
awesome-bot
RubyGems
doge-coin
RubyGems
capistrano-colors
RubyGems
bitcoin_vanity
RubyGems
coming-soon
RubyGems
omniauth_amazon
RubyGems

References

Frequently Asked Questions

What is CVE-2019-15224?
CVE-2019-15224 is a security vulnerability in Rest client involving rest-client Gem Contains Malicious Code under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Rest client versions are affected?
Affected versions include releases prior to 1.7.0 across affected packages: rest-client, cron_parser, coin_base, blockchain_wallet, awesome-bot, doge-coin, capistrano-colors, bitcoin_vanity, coming-soon, omniauth_amazon.
What version fixes CVE-2019-15224?
Upgrading to 1.7.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is rest-client affected?
Yes, rest-client is affected in releases prior to 1.7.0. Upgrade your dependency to 1.7.0 or later.
Is cron_parser affected?
Yes, cron_parser is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2019-15224?
CVE-2019-15224 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2019-15224?
CVE-2019-15224 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.).
How can I check RubyGems dependencies for CVE-2019-15224?
Run the dependency tree command: 'inspect dependencies for rest-client'. 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-333g-rpr4-7hxq",
  "modified" : "2023-08-28T21:39:41Z",
  "published" : "2019-08-20T14:29:03Z",
  "aliases" : [ "CVE-2019-15224" ],
  "summary" : "rest-client Gem Contains Malicious Code",
  "details" : "The rest-client gem 1.6.10 through 1.6.13 for Ruby, as distributed on RubyGems.org, included a code-execution backdoor inserted by a third party.\nUsers of an affected version should consider downgrading to the last non-affected version of 1.6.9, or upgrading to 1.7.x.\nAdditionally, a set of other minor gems have been partially or completely yanked and are included in this advisory.\nThese include cron_parser, coin_base, blockchain_wallet, awesome-bot, doge-coin, capistrano-colors, bitcoin_vanity, lita_coin, coming-soon, and omniauth_amazon.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "rest-client"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.6.10"
      }, {
        "fixed" : "1.7.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.6.13"
    }
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "cron_parser"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.13"
      }, {
        "last_affected" : "1.0.14"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "cron_parser"
    },
    "versions" : [ "0.1.4" ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "coin_base"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "blockchain_wallet"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "awesome-bot"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "doge-coin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "capistrano-colors"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "bitcoin_vanity"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "coming-soon"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "omniauth_amazon"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-15224"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rest-client/rest-client/issues/713"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubygems/rubygems.org/issues/2097"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubygems/rubygems.org/wiki/Gems-yanked-and-accounts-locked#19-aug-2019"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/blockchain_wallet/CVE-2019-15224.yml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/coin_base/CVE-2019-15224.yml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/doge-coin/CVE-2019-15224.yml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/lita_coin/CVE-2019-15224.yml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/omniauth_amazon/CVE-2019-15224.yml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rest-client/CVE-2019-15224.yml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-94" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2019-08-20T14:27:19Z",
    "nvd_published_at" : "2019-08-19T23:15:00Z"
  }
}