Advisory Database
  • Advisories
  • Dependency Scanning
  1. nuget
  2. ›
  3. Microsoft.IdentityModel.JsonWebTokens
  4. ›
  5. CVE-2024-21319

CVE-2024-21319: Microsoft ASP.NET Core project templates vulnerable to denial of service

January 9, 2024 (updated June 4, 2025)

A Denial of Service vulnerability exists in ASP.NET Core project templates which utilize JWT-based authentication tokens. This vulnerability allows an unauthenticated client to consume arbitrarily large amounts of server memory, potentially triggering an out-of-memory condition on the server and making the server no longer able to respond to legitimate requests.

References

  • github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/security/advisories/GHSA-8g9c-28fc-mcx2
  • github.com/advisories/GHSA-59j7-ghrg-fj52
  • github.com/dotnet/announcements/issues/290
  • github.com/dotnet/aspnetcore
  • github.com/dotnet/aspnetcore/security/advisories/GHSA-59j7-ghrg-fj52
  • nvd.nist.gov/vuln/detail/CVE-2024-21319

Code Behaviors & Features

Detect and mitigate CVE-2024-21319 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.7.0, all versions starting from 6.5.0 before 6.34.0, all versions starting from 7.0.0-preview before 7.1.2

Fixed versions

  • 5.7.0
  • 6.34.0
  • 7.1.2

Solution

Upgrade to versions 5.7.0, 6.34.0, 7.1.2 or above.

Impact 6.8 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

nuget/Microsoft.IdentityModel.JsonWebTokens/CVE-2024-21319.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 01 Sep 2025 12:19:13 +0000.