Miggo Logo

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

6.8

CVSS Score
3.1

Basic Information

EPSS Score
0.54676%
Published
1/9/2024
Updated
4/11/2024
KEV Status
No
Technology
TechnologyC#

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
System.IdentityModel.Tokens.Jwtnuget< 5.7.05.7.0
System.IdentityModel.Tokens.Jwtnuget>= 6.5.0, < 6.34.06.34.0
System.IdentityModel.Tokens.Jwtnuget>= 7.0.0-preview, < 7.1.27.1.2
Microsoft.IdentityModel.JsonWebTokensnuget< 5.7.05.7.0
Microsoft.IdentityModel.JsonWebTokensnuget>= 6.5.0, < 6.34.06.34.0
Microsoft.IdentityModel.JsonWebTokensnuget>= 7.0.0-preview, < 7.1.27.1.2

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from improper handling of compressed JWE tokens in authentication flow. Key functions involved in JWT/JWE processing were identified through: 1) The advisory's focus on JWT-based authentication components 2) CWE-400's resource consumption pattern 3) Microsoft's guidance to update specific authentication packages 4) The attack vector requiring token decompression. These functions handle critical decompression operations without proper size validation, allowing small malicious inputs to cause massive memory allocations. The high confidence comes from the direct correlation between these functions' responsibilities and the described vulnerability mechanism.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

# Mi*roso*t S**urity **visory *V*-****-*****: .N*T **ni*l o* S*rvi** Vuln*r**ility ## *x**utiv* summ*ry Mi*roso*t is r*l**sin* t*is s**urity **visory to provi** in*orm*tion **out * vuln*r**ility in t** *SP.N*T *or* proj**t t*mpl*t*s. T*is **visory

Reasoning

T** vuln*r**ility st*ms *rom improp*r **n*lin* o* *ompr*ss** JW* tok*ns in *ut**nti**tion *low. K*y *un*tions involv** in JWT/JW* pro**ssin* w*r* i**nti*i** t*rou**: *) T** **visory's *o*us on JWT-**s** *ut**nti**tion *ompon*nts *) *W*-***'s r*sour**