Summary
Microsoft.AspNetCore.DataProtection 10.0.0 through 10.0.6 can verify HMAC tags over the wrong bytes, letting a remote attacker forge protected payloads. In ASP.NET Core apps that load the vulnerable NuGet package at runtime on Linux, macOS, or other non-Windows systems, forged cookies or tokens can be used to impersonate privileged users and escalate to SYSTEM. The flaw can also expose protected data such as authentication cookies and antiforgery tokens.
Why Planned Fix?
4/6Exploitation Details
Forge protected cookies or tokens to impersonate privileged users and reach SYSTEM-level privilege on the host.
Privilege EscalationAffected Software
| Product | Affected Versions |
|---|---|
| Microsoft.AspNetCore.DataProtection | 10.0.0 through 10.0.6 |
ASP.NET Core is Microsoft's cross-platform web framework for building web apps, APIs, and services on .NET.
Affected ComponentMicrosoft.AspNetCore.DataProtection managed authenticated encryptor and HMAC validation for protected cookies, antiforgery tokens, and similar payloads.
Microsoft.AspNetCore.DataProtection managed authenticated encryptor and HMAC validation for protected cookies, antiforgery tokens, and similar payloads.
Not available
Not available
Upgrade Microsoft.AspNetCore.DataProtection to 10.0.7 or later and rebuild/redeploy applications using the updated package or runtime.
Upgrade Microsoft.AspNetCore.DataProtection to 10.0.7 or later and rebuild/redeploy applications using the updated package or runtime.
Probability of exploitation in the next 30 days
Worse than 12% of all CVEs
No known threat actors
No detection rules available
NVD Data
Description Summary
CVSS Base Score
CVSS Vector (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N)
Sources
| Source | Article |
|---|---|
| msrc.microsoft.com | Security Update Guide: CVE-2026-40372 |
| devblogs.microsoft.com | .NET 10.0.7 Out-of-Band Security Update |
| nvd.nist.gov | CVE-2026-40372 Detail |
| www.tenable.com | CVE-2026-40372 |
| thehackernews.com | Microsoft Patches Critical ASP.NET Core CVE-2026-40372 Privilege Escalation Bug |
Priority History
Initial analysis