BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2024-21654 in Rubygems.Org

Critical 9.8

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 v...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.19.8
EPSS0.7%
EPSS percentile50th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Rubygems Rubygems.Org < 2024-01-08

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2024-21654
BreachSpider IDBS-2024-GLOBAL-187863-C
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published2024-01-12
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-287: Improper Authentication

Software does not prove or insufficiently proves that the user is who they claim to be.

CWE-306: Missing Authentication for Critical Function

Software does not perform any authentication for functionality that requires a verified identity.

Related attack patterns (CAPEC)

CAPEC-57 Utilizing REST's Trust in the System Resource to Obtain Sensitive Data via CWE-287

CAPEC-633 Token Impersonation via CWE-287

CAPEC-650 Upload a Web Shell to a Web Server via CWE-287

CAPEC-12 Choosing Message Identifier via CWE-306

CAPEC-36 Using Unpublished Interfaces or Functionality via CWE-306

Show all 15

CAPEC-62 Cross Site Request Forgery via CWE-306

CAPEC-166 Force the System to Reset Values via CWE-306

CAPEC-194 Fake the Source of Data via CWE-287

CAPEC-593 Session Hijacking via CWE-287

CAPEC-22 Exploiting Trust in Client via CWE-287

CAPEC-94 Adversary in the Middle (AiTM) via CWE-287

CAPEC-114 Authentication Abuse via CWE-287

CAPEC-115 Authentication Bypass via CWE-287

CAPEC-151 Identity Spoofing via CWE-287

CAPEC-216 Communication Channel Manipulation via CWE-306

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A vulnerability in Rubygems.org's forgotten password form allows attackers to bypass Multi-Factor Authentication (MFA) and take over user accounts, despite MFA being enabled.

The attack involves exploiting a flaw in the forgotten password form, which can be manipulated to bypass the MFA requirement, leading to unauthorized account takeover.

Questions

What is CVE-2024-21654?

A vulnerability in Rubygems.org's forgotten password form allows attackers to bypass Multi-Factor Authentication (MFA) and take over user accounts, despite MFA being enabled.

What is the CVSS score for CVE-2024-21654?

CVE-2024-21654 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 0.7%.

Is CVE-2024-21654 actively exploited?

No confirmed active exploitation of CVE-2024-21654 as of 2026-09-25.

How do I remediate CVE-2024-21654?

Priority: IMMEDIATE. PSIRT: [email protected]

What systems are affected by CVE-2024-21654?

CVE-2024-21654 affects Rubygems Rubygems.Org.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Rubygems","product":"Rubygems.Org","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.