GHSA-8g9c-28fc-mcx2: Duplicate Advisory Denial of Service Vulnerability

MODERATE
CVSS 6.8
CWE-20
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-8g9c-28fc-mcx2
Severity MODERATE
CVSS v3.1 Base Score 6.8
CWE Classification CWE-20: Improper Input Validation
Affected Product Duplicate Advisory
Package Ecosystem NuGet
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (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.

Microsoft.IdentityModel.JsonWebTokens fixed: 5.7.0
Upgrade Microsoft.IdentityModel.JsonWebTokens to 5.7.0
Microsoft.IdentityModel.JsonWebTokens fixed: 6.34.0
Upgrade Microsoft.IdentityModel.JsonWebTokens to 6.34.0
Microsoft.IdentityModel.JsonWebTokens fixed: 7.1.2
Upgrade Microsoft.IdentityModel.JsonWebTokens to 7.1.2
System.IdentityModel.Tokens.Jwt fixed: 5.7.0
Upgrade System.IdentityModel.Tokens.Jwt to 5.7.0
System.IdentityModel.Tokens.Jwt fixed: 6.34.0
Upgrade System.IdentityModel.Tokens.Jwt to 6.34.0
System.IdentityModel.Tokens.Jwt fixed: 7.1.2
Upgrade System.IdentityModel.Tokens.Jwt to 7.1.2
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 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

### Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-59j7-ghrg-fj52. This link is maintained to preserve external references. ### Original Description ### Impact An 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. It's important to note that the attacker must have access to the public encrypt key registered with the IDP(Entra ID) for successful exploitation. _According to the CVSS metric, a successful exploitation could lead to a scope change (S:C). What does this mean for this vulnerability?_ A 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. ### Patches The 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). ### Workarounds No, users must upgrade. ### References https://aka.ms/IdentityModel/Jan2024/zip

GHSA-8g9c-28fc-mcx2 Affected Duplicate Advisory Versions

6 component(s)
Fixed Versions:
5.7.06.34.07.1.2
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?
GHSA-8g9c-28fc-mcx2 is a security vulnerability in Duplicate Advisory involving Microsoft Identity Denial of service vulnerability under CWE-20: Improper Input Validation.
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to 5.7.0, 6.34.0, 7.1.2 across affected packages: Microsoft.IdentityModel.JsonWebTokens, System.IdentityModel.Tokens.Jwt.
What version fixes GHSA-8g9c-28fc-mcx2?
Upgrading to 5.7.0, 6.34.0, 7.1.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Microsoft.IdentityModel.JsonWebTokens affected?
Yes, Microsoft.IdentityModel.JsonWebTokens is affected in releases prior to 5.7.0, 6.34.0, 7.1.2. Upgrade your dependency to 5.7.0, 6.34.0, 7.1.2 or later.
Is System.IdentityModel.Tokens.Jwt affected?
Yes, System.IdentityModel.Tokens.Jwt is affected in releases prior to 5.7.0, 6.34.0, 7.1.2. Upgrade your dependency to 5.7.0, 6.34.0, 7.1.2 or later.
What is the CVSS score of GHSA-8g9c-28fc-mcx2?
GHSA-8g9c-28fc-mcx2 has a CVSS v3.1 base score of 6.8 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H.
What CWE is associated with GHSA-8g9c-28fc-mcx2?
GHSA-8g9c-28fc-mcx2 is classified under CWE-20: Improper Input Validation (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.).
How can I check NuGet dependencies for GHSA-8g9c-28fc-mcx2?
Run the dependency tree command: 'inspect dependencies for Microsoft.IdentityModel.JsonWebTokens'. 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-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"
  }
}