cve.bz

CVE-2024-21319 microsoft: Improper Input Validation

6.8 mediumEPSS 2.9%Fix available

Medium (6.8) in microsoft. EPSS 2.9% estimated probability of exploitation activity in the next 30 days. Fixed in System.IdentityModel.Tokens.Jwt 5.7.0, 6.34.0, 7.1.2.

On this page
Microsoft Identity Denial of service vulnerability

Severity

CVSS 3.1

6.8 medium
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H
EPSS
2.9% (unchanged from 2.9% a week ago; 2.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 87th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-05-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-21319 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-21319?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-21319?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-21319 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Microsoft .NET 6.0from 6.0.0 before 6.0.26
Microsoft Visual Studio 2022 version 17.2from 17.2.0 before 17.2.23
Microsoft Visual Studio 2022 version 17.6from 17.6.0 before 17.6.11
Microsoft Visual Studio 2022 version 17.4from 17.4.0 before 17.4.15
Microsoft Visual Studio 2022 version 17.8from 17.8.0 before 17.8.4
Microsoft .NET 7.0from 7.0.0 before 7.0.15
Microsoft .NET 8.0from 8.0 before 8.0.1
Microsoft Identity Model v6.0.0 forNugetfrom 6.0 before 6.34.0
Microsoft Identity Model v7.0.0 for Nugetfrom 7.0 before 7.1.2
Microsoft Identity Model v6.0.0from 6.0 before 6.34.0
Microsoft Identity Model v5.0.0from 5.0 before 5.7.0
Microsoft Identity Model v7.0.0from 7.0 before 7.1.2
Microsoft Identity Model v5.0.0 for Nugetfrom 5.0 before 5.7.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-59j7-ghrg-fj52NuGetSystem.IdentityModel.Tokens.Jwt<5.7.05.7.0
GHSA-59j7-ghrg-fj52NuGetSystem.IdentityModel.Tokens.Jwt>=6.5.0 <6.34.06.34.0
GHSA-59j7-ghrg-fj52NuGetSystem.IdentityModel.Tokens.Jwt>=7.0.0-preview <7.1.27.1.2
GHSA-59j7-ghrg-fj52NuGetMicrosoft.IdentityModel.JsonWebTokens<5.7.05.7.0
GHSA-59j7-ghrg-fj52NuGetMicrosoft.IdentityModel.JsonWebTokens>=6.5.0 <6.34.06.34.0
GHSA-59j7-ghrg-fj52NuGetMicrosoft.IdentityModel.JsonWebTokens>=7.0.0-preview <7.1.27.1.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu22.04:LTSdotnet66.0.126-0ubuntu1~22.04.1UBUNTU-CVE-2024-21319 USN-6578-1
Ubuntu22.04:LTSdotnet77.0.115-0ubuntu1~22.04.1UBUNTU-CVE-2024-21319 USN-6578-1
Red Hatenterprise_linux:8::appstreamdotnet, dotnet8.0, dotnet-sdk-8.0 and 5 more0:8.0.101-1.el8_9RHSA-2024:0150
Red Hatenterprise_linux:8::appstreamdotnet-host, dotnet-hostfxr-8.0, dotnet-runtime-8.0 and 8 more0:8.0.1-1.el8_9RHSA-2024:0150
Red Hatenterprise_linux:8::appstreamdotnet-hostfxr-6.0, dotnet-runtime-6.0, aspnetcore-runtime-6.0 and 6 more0:6.0.26-1.el8_9RHSA-2024:0158
Red Hatenterprise_linux:8::appstreamdotnet-hostfxr-7.0, dotnet-runtime-7.0, aspnetcore-runtime-7.0 and 6 more0:7.0.15-1.el8_9RHSA-2024:0157
Red Hatenterprise_linux:8::appstreamdotnet6.0, dotnet-sdk-6.0, dotnet6.0-debuginfo and 3 more0:6.0.126-1.el8_9RHSA-2024:0158
Red Hatenterprise_linux:8::appstreamdotnet7.0, dotnet-sdk-7.0, dotnet7.0-debuginfo and 3 more0:7.0.115-1.el8_9RHSA-2024:0157
Red Hatenterprise_linux:8::crbdotnet-host-debuginfo, dotnet-hostfxr-8.0-debuginfo, dotnet-runtime-8.0-debuginfo and 1 more0:8.0.1-1.el8_9RHSA-2024:0150
Red Hatenterprise_linux:8::crbdotnet-hostfxr-6.0-debuginfo, dotnet-runtime-6.0-debuginfo, dotnet-apphost-pack-6.0-debuginfo0:6.0.26-1.el8_9RHSA-2024:0158
Red Hatenterprise_linux:8::crbdotnet-hostfxr-7.0-debuginfo, dotnet-runtime-7.0-debuginfo, dotnet-apphost-pack-7.0-debuginfo0:7.0.15-1.el8_9RHSA-2024:0157
Red Hatenterprise_linux:8::crbdotnet6.0-debuginfo, dotnet6.0-debugsource, dotnet-sdk-6.0-debuginfo and 1 more0:6.0.126-1.el8_9RHSA-2024:0158
Red Hatenterprise_linux:8::crbdotnet7.0-debuginfo, dotnet7.0-debugsource, dotnet-sdk-7.0-debuginfo and 1 more0:7.0.115-1.el8_9RHSA-2024:0157
Red Hatenterprise_linux:8::crbdotnet8.0-debuginfo, dotnet8.0-debugsource, dotnet-sdk-8.0-debuginfo and 1 more0:8.0.101-1.el8_9RHSA-2024:0150
14 more for Red Hat in the JSON and on Red Hat's page.
AlmaLinux8dotnet, dotnet-sdk-8.0, dotnet-templates-8.0 and 2 more8.0.101-1.el8_9ALSA-2024:0150
AlmaLinux8dotnet-host, dotnet-hostfxr-8.0, dotnet-runtime-8.0 and 4 more8.0.1-1.el8_9ALSA-2024:0150
AlmaLinux8dotnet-hostfxr-6.0, dotnet-runtime-6.0, aspnetcore-runtime-6.0 and 3 more6.0.26-1.el8_9ALSA-2024:0158
AlmaLinux8dotnet-hostfxr-7.0, dotnet-runtime-7.0, aspnetcore-runtime-7.0 and 3 more7.0.15-1.el8_9ALSA-2024:0157
AlmaLinux8dotnet-sdk-6.0, dotnet-templates-6.0, dotnet-sdk-6.0-source-built-artifacts6.0.126-1.el8_9ALSA-2024:0158
AlmaLinux8dotnet-sdk-7.0, dotnet-templates-7.0, dotnet-sdk-7.0-source-built-artifacts7.0.115-1.el8_9ALSA-2024:0157
AlmaLinux9dotnet-host, dotnet-hostfxr-8.0, dotnet-runtime-8.0 and 4 more8.0.1-1.el9_3ALSA-2024:0152
AlmaLinux9dotnet-hostfxr-6.0, dotnet-runtime-6.0, aspnetcore-runtime-6.0 and 3 more6.0.26-1.el9_3ALSA-2024:0156
AlmaLinux9dotnet-hostfxr-7.0, dotnet-runtime-7.0, aspnetcore-runtime-7.0 and 3 more7.0.15-1.el9_3ALSA-2024:0151
AlmaLinux9dotnet-sdk-6.0, dotnet-templates-6.0, dotnet-sdk-6.0-source-built-artifacts6.0.126-1.el9_3ALSA-2024:0156
AlmaLinux9dotnet-sdk-7.0, dotnet-templates-7.0, dotnet-sdk-7.0-source-built-artifacts7.0.115-1.el9_3ALSA-2024:0151
AlmaLinux9dotnet-sdk-8.0, dotnet-templates-8.0, netstandard-targeting-pack-2.1 and 1 more8.0.101-1.el9_3ALSA-2024:0152
Rocky Linux8dotnet6.00:6.0.126-1.el8_9RLSA-2024:0158
Rocky Linux8dotnet7.00:7.0.115-1.el8_9RLSA-2024:0157
Rocky Linux8dotnet8.00:8.0.101-1.el8_9RLSA-2024:0150
Alpinev3.19dotnet7-build7.0.115-r0ALPINE-CVE-2024-21319
Alpinev3.19dotnet7-runtime7.0.15-r0ALPINE-CVE-2024-21319
Alpinev3.19, v3.20dotnet6-build6.0.126-r0ALPINE-CVE-2024-21319
Alpinev3.19, v3.20dotnet6-runtime6.0.26-r0ALPINE-CVE-2024-21319

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu · Red Hat · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This DoS vulnerability in .NET Core project templates utilizing JWT-based authentication tokens is considered a moderate issue due to its restricted impact. While unauthenticated clients can exploit the server's memory, potentially causing an out-of-memory condition and service disruption, the vulnerability does not lead to remote code execution or compromise sensitive data. Its exploitability is contingent on specific project configurations, limiting the scope of affected systems.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
.NET Core on Red Hat Enterprise Linuxrh-dotnet60-dotnet-0:6.0.126-1.el7_9Fixed 2024-01-15RHSA-2024:0255
Red Hat Enterprise Linux 8dotnet8.0-0:8.0.101-1.el8_9Fixed 2024-01-10RHSA-2024:0150
Red Hat Enterprise Linux 8dotnet7.0-0:7.0.115-1.el8_9Fixed 2024-01-10RHSA-2024:0157
Red Hat Enterprise Linux 8dotnet6.0-0:6.0.126-1.el8_9Fixed 2024-01-10RHSA-2024:0158
Red Hat Enterprise Linux 9dotnet7.0-0:7.0.115-1.el9_3Fixed 2024-01-10RHSA-2024:0151
Red Hat Enterprise Linux 9dotnet8.0-0:8.0.101-1.el9_3Fixed 2024-01-10RHSA-2024:0152
Red Hat Enterprise Linux 9dotnet6.0-0:6.0.126-1.el9_3Fixed 2024-01-10RHSA-2024:0156

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-21319.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-25-100-02Siemens SIDIS Prime2025-04-08Chemical, Critical Manufacturing, Energy, Food and Agriculture, Water and Wastewater SystemsSIDIS Primenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON