CVE-2019-13354 strong_password Ruby gem malicious version causing Remote Code Execution vulnerability

Critical 9.8 Published Updated

A backdoor in the strong_password gem allows attackers to execute arbitrary code, requiring users to upgrade to a clean version.

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-13354?

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

Official description

The strong_password gem 0.0.7 for Ruby, as distributed on RubyGems.org, included a code-execution backdoor inserted by a third party. The current version, without this backdoor, is 0.0.6.

Weakness: CWE-94

Which versions are affected by CVE-2019-13354?

2 open source packages ship an affected version, including strong_password. It affects 1 product.

PackageAffectedFixed in
strong_password RubyGemsFrom 0.0.70.0.8
strong_password RubyGemsFrom 0.0.70.0.8

Products include Strong Password Project Strong Password.

How do I fix CVE-2019-13354?

Upgrade strong_password to 0.0.8 or later.

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

Is CVE-2019-13354 being exploited?

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

Sources

Also known as GHSA-5h5r-ffc4-c455.

Is CVE-2019-13354 in your software?

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

Check your SBOMs for free