CVE-2024-21319 Microsoft Identity Denial of service vulnerability

Medium 6.8 Published Updated

Attackers can cause a denial of service in applications using Microsoft Identity Model libraries by exploiting improper input validation.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-21319?

CVE-2024-21319 is a medium-severity denial of service vulnerability in Microsoft .Net, published on 9 Jan 2024. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

Microsoft Identity Denial of service vulnerability

Weakness: CWE-20

Which versions are affected by CVE-2024-21319?

14 open source packages ship an affected version, including Microsoft.IdentityModel.JsonWebTokens, dotnet and dotnet-sdk. It affects 3 products.

PackageAffectedFixed in
Microsoft.IdentityModel.JsonWebTokens NuGetAll versions5.7.0
Microsoft.IdentityModel.JsonWebTokens NuGetAll versions5.7.0
Microsoft.IdentityModel.JsonWebTokens NuGetFrom 6.5.06.34.0
Microsoft.IdentityModel.JsonWebTokens NuGetFrom 6.5.06.34.0
Microsoft.IdentityModel.JsonWebTokens NuGetFrom 7.0.0-preview7.1.2
Microsoft.IdentityModel.JsonWebTokens NuGetFrom 7.0.0-preview7.1.2
8 more packages
dotnet BitnamiFrom 6.0.06.0.26, 7.0.15, 8.0.1
dotnet-sdk BitnamiFrom 6.0.06.0.26, 7.0.15, 8.0.1
System.IdentityModel.Tokens.Jwt NuGetAll versions5.7.0
System.IdentityModel.Tokens.Jwt NuGetAll versions5.7.0
System.IdentityModel.Tokens.Jwt NuGetFrom 6.5.06.34.0
System.IdentityModel.Tokens.Jwt NuGetFrom 6.5.06.34.0
System.IdentityModel.Tokens.Jwt NuGetFrom 7.0.0-preview7.1.2
System.IdentityModel.Tokens.Jwt NuGetFrom 7.0.0-preview7.1.2

Products include Microsoft .Net, Microsoft Identity Model, Microsoft Visual Studio 2022.

How do I fix CVE-2024-21319?

Upgrade Microsoft.IdentityModel.JsonWebTokens to a fixed version for your release line: 5.7.0, 6.34.0 or 7.1.2.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2024-21319 being exploited?

There is no known exploitation of CVE-2024-21319 in the wild and no public exploit code.

All Microsoft .Net vulnerabilities

Sources

Also known as BIT-dotnet-2024-21319, BIT-dotnet-sdk-2024-21319, CLEANSTART-2025-WW90034, GHSA-59j7-ghrg-fj52, UBUNTU-CVE-2024-21319.

Is CVE-2024-21319 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free