# CVE-2024-21654: rubygems.org MFA Bypass through password reset function could allow account takeover

- Severity: Medium 4.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 43% of CVEs (2026-12-01)
- Published: 2024-01-12T20:59:43.094Z
- Modified: 2026-06-17T07:09:56.163Z
- Weaknesses: CWE-287, CWE-306
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- rubygems rubygems.org: < commit 0b3272a; before 2024-01-08

## Every score

- GitHub_M: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/rubygems/rubygems.org/security/advisories/GHSA-4v23-vj8h-7jp2> (patch, vendor-advisory)
- <https://github.com/rubygems/rubygems.org/commit/0b3272ac17b45748ee0d1867c49867c7deb26565> (patch)

## Sources

- CVE List: [CVE-2024-21654](https://www.cve.org/CVERecord?id=CVE-2024-21654), CVE Terms of Use, modified 2024-10-24
- NVD: [CVE-2024-21654](https://nvd.nist.gov/vuln/detail/CVE-2024-21654), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-21654 · Whole record: https://cve.day/CVE-2024-21654.json · Rebuilt by cve.day 2026-11-25T22:58:36.081Z
