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

· Original article ↗

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

People

Vendors

Products

Related Articles