CVE-2024-21319 Microsoft Identity Denial of service vulnerability
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.
| Package | Affected | Fixed in |
|---|---|---|
Microsoft.IdentityModel.JsonWebTokens NuGet | All versions | 5.7.0 |
Microsoft.IdentityModel.JsonWebTokens NuGet | All versions | 5.7.0 |
Microsoft.IdentityModel.JsonWebTokens NuGet | From 6.5.0 | 6.34.0 |
Microsoft.IdentityModel.JsonWebTokens NuGet | From 6.5.0 | 6.34.0 |
Microsoft.IdentityModel.JsonWebTokens NuGet | From 7.0.0-preview | 7.1.2 |
Microsoft.IdentityModel.JsonWebTokens NuGet | From 7.0.0-preview | 7.1.2 |
8 more packages
dotnet Bitnami | From 6.0.0 | 6.0.26, 7.0.15, 8.0.1 |
dotnet-sdk Bitnami | From 6.0.0 | 6.0.26, 7.0.15, 8.0.1 |
System.IdentityModel.Tokens.Jwt NuGet | All versions | 5.7.0 |
System.IdentityModel.Tokens.Jwt NuGet | All versions | 5.7.0 |
System.IdentityModel.Tokens.Jwt NuGet | From 6.5.0 | 6.34.0 |
System.IdentityModel.Tokens.Jwt NuGet | From 6.5.0 | 6.34.0 |
System.IdentityModel.Tokens.Jwt NuGet | From 7.0.0-preview | 7.1.2 |
System.IdentityModel.Tokens.Jwt NuGet | From 7.0.0-preview | 7.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.
Other vulnerabilities in Microsoft .Net
- CVE-2024-43498 .NET and Visual Studio Remote Code Execution Vulnerability
- CVE-2024-0057 NET, .NET Framework, and Visual Studio Security Feature Bypass Vulnerability
- CVE-2026-96957 .NET Security Feature Bypass Vulnerability
- CVE-2026-69439 .NET and Visual Studio Elevation of Privilege Vulnerability
- CVE-2026-71328 .NET and Visual Studio Remote Code Execution Vulnerability
Sources
Also known as BIT-dotnet-2024-21319, BIT-dotnet-sdk-2024-21319, CLEANSTART-2025-WW90034, GHSA-59j7-ghrg-fj52, UBUNTU-CVE-2024-21319.