Vulnerabilities in pkg:gem/omniauth_amazon
PACKAGECVE-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.
pkg:gem/omniauth_amazon
Vulnerability advisories affecting package pkg:gem/omniauth_amazon. 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
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).
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.
Upgrade rest-client to 1.7.0
Upgrade cron_parser to Latest secure release
Upgrade cron_parser to Latest secure release
Upgrade coin_base to Latest secure release
Upgrade blockchain_wallet to Latest secure release
Upgrade awesome-bot to Latest secure release
Upgrade doge-coin to Latest secure release
Upgrade capistrano-colors to Latest secure release
Upgrade bitcoin_vanity to Latest secure release
Upgrade coming-soon to Latest secure release
Upgrade omniauth_amazon to Latest secure release
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
CVE-2019-15224 Affected Rest client Versions
11 component(s)| 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?
Which Rest client versions are affected?
What version fixes CVE-2019-15224?
Is rest-client affected?
Is cron_parser affected?
What is the CVSS score of CVE-2019-15224?
What CWE is associated with CVE-2019-15224?
How can I check RubyGems dependencies for CVE-2019-15224?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}