CVE-2019-13354 strong_password Ruby gem malicious version causing Remote Code Execution vulnerability
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.
| Package | Affected | Fixed in |
|---|---|---|
strong_password RubyGems | From 0.0.7 | 0.0.8 |
strong_password RubyGems | From 0.0.7 | 0.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.