CVE-2024-21632: Omniauth :MicrosoftGraph Account Takeover (nOAuth) Vulnerability

HIGH
Advisory Identifier: GHSA-5g66-628f-7cvj
CVSS 8.6
CWE-287
Published
Advisory Summary

CVE-2024-21632 is a HIGH (CVSS 8.6) :microsoftgraph account takeover (noauth) vulnerability (CWE-287: Improper Authentication) affecting Omniauth libraries in the RubyGems ecosystem. The issue involves :microsoftgraph account takeover (noauth). Remediation is available by upgrading affected packages to version 2.0.0.

CVE-2024-21632 at a Glance

CVE Identifier CVE-2024-21632
GHSA Identifier GHSA-5g66-628f-7cvj
Severity HIGH
CVSS v3.1 Base Score 8.6
CWE Classification CWE-287: Improper Authentication
Affected Product Omniauth
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 8.6

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2024-21632

To remediate this vulnerability, upgrade all affected Omniauth dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

omniauth-microsoft_graph fixed: 2.0.0
Upgrade omniauth-microsoft_graph to 2.0.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for omniauth-microsoft_graph

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-21632, inspect your project dependencies for Omniauth:

inspect dependencies for omniauth-microsoft_graph

Analyze the terminal output to locate any version of Omniauth in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Omniauth, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary 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](https://www.descope.com/blog/post/noauth) misconfiguration in cases when the `email` is used as a trusted user identifier

CVE-2024-21632 Affected Omniauth Versions

1 component(s)
Fixed Versions:
2.0.0
Product / Package Ecosystem Affected Versions Fixed Version
omniauth-microsoft_graph
RubyGems
< 2.0.0
2.0.0

References

Frequently Asked Questions

What is CVE-2024-21632?
CVE-2024-21632 is a security vulnerability in Omniauth involving :MicrosoftGraph Account takeover (nOAuth) under CWE-287: Improper Authentication.
Which Omniauth versions are affected?
Affected versions include releases prior to 2.0.0 across affected packages: omniauth-microsoft_graph.
What version fixes CVE-2024-21632?
Upgrading to 2.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is omniauth-microsoft_graph affected?
Yes, omniauth-microsoft_graph is affected in releases prior to 2.0.0. Upgrade your dependency to 2.0.0 or later.
What is the CVSS score of CVE-2024-21632?
CVE-2024-21632 has a CVSS v3.1 base score of 8.6 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L.
What CWE is associated with CVE-2024-21632?
CVE-2024-21632 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check RubyGems dependencies for CVE-2024-21632?
Run the dependency tree command: 'inspect dependencies for omniauth-microsoft_graph'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-5g66-628f-7cvj",
  "modified" : "2024-01-03T21:46:46Z",
  "published" : "2024-01-03T21:46:46Z",
  "aliases" : [ "CVE-2024-21632" ],
  "summary" : "Omniauth::MicrosoftGraph Account takeover (nOAuth)",
  "details" : "### Summary\nThe 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](https://www.descope.com/blog/post/noauth) misconfiguration in cases when the `email` is used as a trusted user identifier\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "omniauth-microsoft_graph"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/synth/omniauth-microsoft_graph/security/advisories/GHSA-5g66-628f-7cvj"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-21632"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/synth/omniauth-microsoft_graph/commit/5ffd62690ca0e46978f2fc7d83b18d28edde7795"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/synth/omniauth-microsoft_graph/commit/f132078389612b797c872b45bd0e0b47382414c1"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/synth/omniauth-microsoft_graph"
  }, {
    "type" : "WEB",
    "url" : "https://www.descope.com/blog/post/noauth"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-287" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-03T21:46:46Z",
    "nvd_published_at" : "2024-01-02T22:15:10Z"
  }
}