GHSA-8g9c-28fc-mcx2: Duplicate Advisory Denial of Service Vulnerability
MODERATEGHSA-8g9c-28fc-mcx2 is a MODERATE (CVSS 6.8) denial of service vulnerability (CWE-20: Improper Input Validation) affecting Duplicate Advisory libraries in the NuGet ecosystem. The issue involves microsoft identity denial of service vulnerability. Remediation is available by upgrading affected packages to version 5.7.0, 6.34.0, 7.1.2.
GHSA-8g9c-28fc-mcx2 at a Glance
Security Impact
CVSS: 6.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H).
How to Fix GHSA-8g9c-28fc-mcx2
To remediate this vulnerability, upgrade all affected Duplicate Advisory 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 Microsoft.IdentityModel.JsonWebTokens to 5.7.0
Upgrade Microsoft.IdentityModel.JsonWebTokens to 6.34.0
Upgrade Microsoft.IdentityModel.JsonWebTokens to 7.1.2
Upgrade System.IdentityModel.Tokens.Jwt to 5.7.0
Upgrade System.IdentityModel.Tokens.Jwt to 6.34.0
Upgrade System.IdentityModel.Tokens.Jwt to 7.1.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for Microsoft.IdentityModel.JsonWebTokens
How to Check if You Are Affected
To determine whether your application is affected by GHSA-8g9c-28fc-mcx2, inspect your project dependencies for Duplicate Advisory:
inspect dependencies for Microsoft.IdentityModel.JsonWebTokens
Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.7.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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Duplicate Advisory, 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
GHSA-8g9c-28fc-mcx2 Affected Duplicate Advisory Versions
6 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
Microsoft.IdentityModel.JsonWebTokens
|
NuGet |
< 5.7.0
|
5.7.0
|
|
Microsoft.IdentityModel.JsonWebTokens
|
NuGet |
≥ 6.5.0
< 6.34.0
|
6.34.0
|
|
Microsoft.IdentityModel.JsonWebTokens
|
NuGet |
≥ 7.0.0-preview
< 7.1.2
|
7.1.2
|
|
System.IdentityModel.Tokens.Jwt
|
NuGet |
< 5.7.0
|
5.7.0
|
|
System.IdentityModel.Tokens.Jwt
|
NuGet |
≥ 6.5.0
< 6.34.0
|
6.34.0
|
|
System.IdentityModel.Tokens.Jwt
|
NuGet |
≥ 7.0.0-preview
< 7.1.2
|
7.1.2
|
References
Frequently Asked Questions
What is GHSA-8g9c-28fc-mcx2?
Which Duplicate Advisory versions are affected?
What version fixes GHSA-8g9c-28fc-mcx2?
Is Microsoft.IdentityModel.JsonWebTokens affected?
Is System.IdentityModel.Tokens.Jwt affected?
What is the CVSS score of GHSA-8g9c-28fc-mcx2?
What CWE is associated with GHSA-8g9c-28fc-mcx2?
How can I check NuGet dependencies for GHSA-8g9c-28fc-mcx2?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8g9c-28fc-mcx2",
"modified" : "2024-04-15T19:42:18Z",
"published" : "2024-01-09T18:28:03Z",
"withdrawn" : "2024-04-11T20:42:09Z",
"aliases" : [ ],
"summary" : "Duplicate Advisory: Microsoft Identity Denial of service vulnerability",
"details" : "### Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-59j7-ghrg-fj52. This link is maintained to preserve external references.\n\n### Original Description\n\n### Impact\nAn attacker could exploit this vulnerability by crafting a malicious JSON Web Encryption (JWE) token with a high compression ratio. This token, when processed by a server, leads to excessive memory allocation and processing time during decompression, causing a denial-of-service (DoS) condition.\n\nIt's important to note that the attacker must have access to the public encrypt key registered with the IDP(Entra ID) for successful exploitation.\n\n_According to the CVSS metric, a successful exploitation could lead to a scope change (S:C). What does this mean for this vulnerability?_\nA scope change (S:C) in the CVSS metric indicates that successful exploitation of this vulnerability could extend beyond the immediate processing of malicious tokens, affecting the overall availability of the system by causing a denial-of-service (DoS) condition.\n\n### Patches\nThe vulnerability has been fixed. Users should update **all** their Microsoft.IdentityModel versions to 7.1.2 (for 7x) or higher, 6.34.0 (for 6x) or higher, and 5.7.0 (for 5x).\n\n### Workarounds\nNo, users must upgrade.\n\n### References\nhttps://aka.ms/IdentityModel/Jan2024/zip",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "NuGet",
"name" : "Microsoft.IdentityModel.JsonWebTokens"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.7.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Microsoft.IdentityModel.JsonWebTokens"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.5.0"
}, {
"fixed" : "6.34.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Microsoft.IdentityModel.JsonWebTokens"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.0.0-preview"
}, {
"fixed" : "7.1.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "System.IdentityModel.Tokens.Jwt"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.7.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "System.IdentityModel.Tokens.Jwt"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.5.0"
}, {
"fixed" : "6.34.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "System.IdentityModel.Tokens.Jwt"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.0.0-preview"
}, {
"fixed" : "7.1.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/security/advisories/GHSA-8g9c-28fc-mcx2"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-21319"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet"
}, {
"type" : "WEB",
"url" : "https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/releases/tag/5.7.0"
}, {
"type" : "WEB",
"url" : "https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/releases/tag/6.34.0"
}, {
"type" : "WEB",
"url" : "https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/releases/tag/7.1.2"
}, {
"type" : "WEB",
"url" : "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-21319"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-01-09T18:28:03Z",
"nvd_published_at" : "2024-01-09T19:15:12Z"
}
}