CVE-2024-21643: Microsoft.IdentityModel.Protocols.SignedHttpRequest remote code execution vulnerability
7.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.69343%
CWE
Published
1/9/2024
Updated
2/5/2024
KEV Status
No
Technology
C#
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| Microsoft.IdentityModel.Protocols.SignedHttpRequest | nuget | < 6.34.0 | 6.34.0 |
| Microsoft.IdentityModel.Protocols.SignedHttpRequest | nuget | >= 7.0.0-preview, < 7.1.2 | 7.1.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the default trust of the 'jku' claim in the SignedHttpRequest validation process. The ValidateAsync() function in SignedHttpRequestValidator would handle this claim resolution, and prior to patched versions, it did not enforce domain restrictions or require explicit opt-in for 'jku' processing. The CWE-94 classification confirms this is a code injection vector via uncontrolled data (the 'jku' URL). The patch introduced 'AllowResolvingPopKeyFromJku' (default: false) and 'AllowedDomainsForJkuRetrieval' parameters, indicating the vulnerable code path was in the 'jku'-based key resolution logic within the validator.