CVE-2024-21632 omniauth-microsoft_graph vulnerable to account takeover (nOAuth)

High 8.6 Published Updated

Attackers can take over accounts if the email attribute is trusted without validation, requiring a fix in the omniauth-microsoft_graph library.

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

What is CVE-2024-21632?

CVE-2024-21632 is a high-severity authentication bypass vulnerability in synth omniauth-microsoft_graph, published on 2 Jan 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

omniauth-microsoft_graph provides an Omniauth strategy for the Microsoft Graph API. Prior to versions 2.0.0, the implementation did not validate the legitimacy of the `email` attribute of the user nor did it give/document an option to do so, making it susceptible to nOAuth misconfiguration in cases when the `email` is used as a trusted user identifier. This could lead to account takeover. Version 2.0.0 contains a fix for this issue.

Weakness: CWE-287

Which versions are affected by CVE-2024-21632?

2 open source packages ship an affected version, including omniauth-microsoft_graph. It affects 1 product.

PackageAffectedFixed in
omniauth-microsoft_graph RubyGemsAll versions2.0.0
omniauth-microsoft_graph RubyGemsAll versions2.0.0

Products include Recognizeapp Omniauth\.

How do I fix CVE-2024-21632?

Upgrade omniauth-microsoft_graph to 2.0.0 or later.

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

Is CVE-2024-21632 being exploited?

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

Sources

Also known as GHSA-5g66-628f-7cvj.

Is CVE-2024-21632 in your software?

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

Check your SBOMs for free