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

Medium 4.8 Published Updated

Attackers can bypass MFA via the password reset function to take over user accounts on the Rubygems.org hosting service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-21654?

CVE-2024-21654 is a medium-severity authentication bypass vulnerability in rubygems.org, published on 12 Jan 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

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.

Weakness: CWE-306, CWE-287

Which versions are affected by CVE-2024-21654?

It affects 1 product.

Products include Rubygems Rubygems.org.

How do I fix CVE-2024-21654?

No fix has been published for CVE-2024-21654 yet. Limit exposure of the affected software until one is available.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2024-21654 being exploited?

There is no known exploitation of CVE-2024-21654 in the wild and no public exploit code.

Sources

Also known as GHSA-4v23-vj8h-7jp2.

Is CVE-2024-21654 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free