What’s Vulnerable › Vulnerabilities
CVE-2024-21654: rubygems.org MFA Bypass through password reset function could allow account takeover
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-01-12 · updated 2026-06-17
- Weakness: CWE-287
Description
Rubygems.org is the Ruby community's gem hosting service. Rubygems.org users with MFA enabled would normally be protected from account takeover in the case of email account takeover. However, a workaround on the forgotten password form allows an attacker to bypass the MFA requirement and takeover the account. This vulnerability has been patched in commit 0b3272a.
Affected products
- rubygems.org: before 2024-01-08 — fixed in 2024-01-08
How to fix
Upgrade to a fixed version: rubygems.org 2024-01-08. Check the vendor advisory for mitigations.
References
- https://github.com/rubygems/rubygems.org/commit/0b3272ac17b45748ee0d1867c49867c7deb26565
- https://github.com/rubygems/rubygems.org/security/advisories/GHSA-4v23-vj8h-7jp2
- https://github.com/rubygems/rubygems.org/commit/0b3272ac17b45748ee0d1867c49867c7deb26565
- https://github.com/rubygems/rubygems.org/security/advisories/GHSA-4v23-vj8h-7jp2
Get alerted when CVE-2024-21654 or the next vulnerability affects your stack