VYPR
Critical severityNVD Advisory· Published Jul 8, 2019· Updated Aug 4, 2024

CVE-2019-13354

CVE-2019-13354

Description

The strong_password gem 0.0.7 on RubyGems.org contained a remote code execution backdoor inserted by an attacker, compromising any application using that version.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

The strong_password gem 0.0.7 on RubyGems.org contained a remote code execution backdoor inserted by an attacker, compromising any application using that version.

Vulnerability

Details

The strong_password gem version 0.0.7, distributed on RubyGems.org, included a malicious backdoor injected by a third party who gained access to the gem's publishing credentials. The legitimate source code in the GitHub repository had not been updated; the backdoor existed only in the package published on RubyGems. The backdoor was appended to the lib/strong_password/strength_checker.rb file and consisted of obfuscated code that executed a remote code payload [2][3].

Exploitation

Mechanism

The backdoor code creates a new Ruby thread that, on an infinite loop, sleeps for a random period of up to about an hour and then fetches and evaluates Ruby code from a pastebin.com URL using Net::HTTP.get. The malicious code runs only when Rails.env[0] == "p", which is true for a production environment (Rails.env starts with 'p'). This means the exploit activates only in production Rails applications, making it stealthier and more dangerous [3].

Impact and

Consequences

If successfully exploited, an attacker could remotely execute arbitrary Ruby code on the server running the vulnerable gem. This could lead to full server compromise, data exfiltration, credential theft, or further lateral movement within the infrastructure. The payload source was external (pastebin), allowing the attacker to change the payload at any time without updating the gem [3][4].

Mitigation

Status

Users should immediately upgrade to the latest clean version of the gem (0.0.9 or later) or downgrade to version 0.0.6, which does not contain the backdoor. The malicious version 0.0.7 has been removed from RubyGems.org. No other versions of the gem were compromised [1][2][3].

AI Insight generated on May 22, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
strong_passwordRubyGems
>= 0.0.7, < 0.0.80.0.8

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

8

News mentions

0

No linked articles in our index yet.