Microsoft Patches Critical ASP.NET Core Flaw That Could Enable SYSTEM Privilege Escalation

Summary
CVE-2026-40372 could let unauthenticated attackers forge ASP.NET Core authentication cookies and gain SYSTEM privileges. Microsoft released version 10.0.7; customers should redeploy and rotate DataProtection keys.
Key points
- The flaw affects Microsoft.AspNetCore.DataProtection versions 10.0.0–10.0.6.
- A regression caused the managed authenticated encryptor to compute its HMAC validation tag over the wrong payload bytes and discard the hash in some cases.
- Microsoft says attackers could forge payloads that pass authenticity checks and decrypt previously protected data in items such as authentication cookies and antiforgery tokens.
- Microsoft released version 10.0.7 as an out-of-band fix and urged customers to update and redeploy.
- Rotate the DataProtection key ring: tokens legitimately issued after forged authentication may remain valid after upgrading unless keys are rotated.
- Microsoft says exploitation could disclose files and modify data, but would not affect system availability.
Article Details
- Vulnerability Types
- Privilege escalation
- Cryptographic validation flaw
- Authentication bypass
- Severity
- Critical
- Affected Versions
- Microsoft.AspNetCore.DataProtection 10.0.0–10.0.6
- Exploitation Status
- unknown
- Exploit Availability
- unknown
- Patch Status
- available
- Workarounds
- Rotate the DataProtection key ring to invalidate forged tokens issued during the vulnerable period.
MITRE ATT&CK
CVE
CVE-2025-55315Microsoft · ASP.NET Core 2.3; Microsoft · ASP.NET Core 8.0; +4 moreMicrosoft also addressed a prior Kestrel HTTP request smuggling issue (CVE-2025-55315) and released additional out-of-band Windows Server fixes.CVE-2026-40372Microsoft · ASP.NET Core 10.0; Microsoft · Microsoft Visual Studio 2026 version 18.5Customers are urged to update Microsoft.AspNetCore.DataProtection to 10.0.7, redeploy, and rotate DataProtection keys to invalidate any forged tokens
People
Vendors
Products
ASP.NET CoreMicrosoft released out-of-band security updates to fix a critical privilege escalation bug in the ASP.NET Core Data Protection APIs that allowed forged authentication cookies to grant SYSTEM privileges.KestrelMicrosoft also addressed a prior Kestrel HTTP request smuggling issue (CVE-2025-55315) and released additional out-of-band Windows Server fixes.Microsoft.AspNetCore.DataProtectionCustomers are urged to update Microsoft.AspNetCore.DataProtection to 10.0.7, redeploy, and rotate DataProtection keys to invalidate any forged tokensWindows ServerMicrosoft also addressed a prior Kestrel HTTP request smuggling issue (CVE-2025-55315) and released additional out-of-band Windows Server fixes.
