Microsoft Fixes ASP.NET Core Privilege-Escalation Flaw CVE-2026-40372

· Original article ↗

Summary

Microsoft fixed CVE-2026-40372 in ASP.NET Core 10.0.7. A DataProtection regression could let attackers forge payloads and gain SYSTEM privileges on affected non-Windows applications; rotating the key ring is needed to invalidate tokens issued during the vulnerable perio

Key points

  • CVE-2026-40372 affects Microsoft.AspNetCore.DataProtection NuGet packages 10.0.0–10.0.6; Microsoft fixed it in ASP.NET Core 10.0.7.
  • Microsoft says a regression caused the managed authenticated encryptor to compute HMAC validation tags over the wrong payload bytes and discard the computed hash in some cases.
  • Successful exploitation could allow forged payloads to pass authenticity checks, potentially enabling privilege escalation to SYSTEM, file disclosure, and data modification.
  • The article says exploitation requires the NuGet library to be loaded at runtime and the application to run on Linux, macOS, or another non-Windows system.
  • Microsoft says tokens issued during the vulnerable period can remain valid after upgrading; rotating the DataProtection key ring is needed to invalidate them.

Article Details

Vulnerability Types
  • Improper cryptographic signature verification
  • Privilege escalation
Severity
CVSS 9.1/10.0; Microsoft-rated Important; described as 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 tokens issued during the vulnerable period.

MITRE ATT&CK

CVE

Vendors

Products

Related Articles