rest-client Gem Contains Malicious Code
Published 20 Aug 2019 · Updated 16 Feb 2024
Is your project on an affected rest-client?
Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- >=1.6.10 <1.7.0
- Fixed in
- 1.7.0
bundle update --conservative rest-client # Gemfile: '>= 1.7.0'- Affected
- >=1.0.13 <=1.0.14
- Fixed in
- No fix released
- Affected
- 0.1.4
- Fixed in
- No fix released
- Affected
- All versions
- Fixed in
- No fix released
- Affected
- All versions
- Fixed in
- No fix released
- Affected
- All versions
- Fixed in
- No fix released
- Affected
- All versions
- Fixed in
- No fix released
- Affected
- All versions
- Fixed in
- No fix released
- Affected
- All versions
- Fixed in
- No fix released
- Affected
- All versions
- Fixed in
- No fix released
- Affected
- All versions
- Fixed in
- No fix released
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. 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.
Is GHSA-333g-rpr4-7hxq in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected rest-client, and gives you the command that fixes it.
More advisories for rest-client
- CriticalCVE-2015-1820rest-client Gem Vulnerable to Session Fixation · 13 Aug 2018
- LowCVE-2015-3448rest-client allows local users to obtain sensitive information by reading the log · 24 Oct 2017
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2019-15224
- Linkgithub.com/rest-client/rest-client/issues/713
- Linkgithub.com/rubygems/rubygems.org/issues/2097
- Linkgithub.com/rubygems/rubygems.org/wiki/Gems-yanked-and-accounts-locked#19-aug-2019
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/blockchain_wallet/CVE-2019-15224.yml
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/coin_base/CVE-2019-15224.yml
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/doge-coin/CVE-2019-15224.yml
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/lita_coin/CVE-2019-15224.yml
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/omniauth_amazon/CVE-2019-15224.yml
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/rest-client/CVE-2019-15224.yml
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.