Vulnerabilities in pkg:gem/omniauth-microsoft_graph
PACKAGECVE-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.
pkg:gem/omniauth-microsoft_graph
Vulnerability advisories affecting package pkg:gem/omniauth-microsoft_graph. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-5g66-628f-7cvj | CVE-2024-21632 | HIGH | Omniauth::MicrosoftGraph Account takeover (nOAuth) |
CVE-2024-21632 at a Glance
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).
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.
Upgrade omniauth-microsoft_graph to 2.0.0
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
CVE-2024-21632 Affected Omniauth Versions
1 component(s)| 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?
Which Omniauth versions are affected?
What version fixes CVE-2024-21632?
Is omniauth-microsoft_graph affected?
What is the CVSS score of CVE-2024-21632?
What CWE is associated with CVE-2024-21632?
How can I check RubyGems dependencies for CVE-2024-21632?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}