CVE-2019-15224 rest-client Gem Contains Malicious Code

Critical 9.8 Published Updated

A backdoor in the rest-client gem allows attackers to execute arbitrary code on systems using affected versions.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-15224?

CVE-2019-15224 is a critical code injection vulnerability in n/a, published on 19 Aug 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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. Versions <=1.6.9 and >=1.6.14 are unaffected.

Weakness: CWE-94

Which versions are affected by CVE-2019-15224?

22 open source packages ship an affected version, including cron_parser, awesome-bot and bitcoin_vanity. It affects 1 product.

PackageAffectedFixed in
cron_parser RubyGemsAll versionsNone
cron_parser RubyGemsAll versionsNone
cron_parser RubyGemsFrom 1.0.13 to 1.0.14None
cron_parser RubyGemsFrom 1.0.13 to 1.0.14None
awesome-bot RubyGemsAll versionsNone
awesome-bot RubyGemsAll versionsNone
16 more packages
bitcoin_vanity RubyGemsAll versionsNone
bitcoin_vanity RubyGemsAll versionsNone
blockchain_wallet RubyGemsAll versionsNone
blockchain_wallet RubyGemsAll versionsNone
capistrano-colors RubyGemsAll versionsNone
capistrano-colors RubyGemsAll versionsNone
coin_base RubyGemsAll versionsNone
coin_base RubyGemsAll versionsNone
coming-soon RubyGemsAll versionsNone
coming-soon RubyGemsAll versionsNone
doge-coin RubyGemsAll versionsNone
doge-coin RubyGemsAll versionsNone
omniauth_amazon RubyGemsAll versionsNone
omniauth_amazon RubyGemsAll versionsNone
rest-client RubyGemsFrom 1.6.101.7.0
rest-client RubyGemsFrom 1.6.101.7.0

Products include Rest-Client Project Rest-Client.

How do I fix CVE-2019-15224?

Upgrade to a fixed version.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2019-15224 being exploited?

There is no known exploitation of CVE-2019-15224 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-333g-rpr4-7hxq.

Is CVE-2019-15224 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free