Skip to main content
Mallory
← Back to News
identity-authentication-vulnerabilitywidely-deployed-product-advisorypatch-regressionopen-source-dependency-vulnerability

Microsoft Issues Emergency Patch for ASP.NET Core Data Protection Privilege Escalation

Vulnerability Disclosure · 13 sources · Updated 5mo ago · First seen Apr 22, 2026

Microsoft Issues Emergency Patch for ASP.NET Core Data Protection Privilege Escalation

Microsoft released an out-of-band update for Microsoft.AspNetCore.DataProtection 10.0.7 to fix CVE-2026-40372, a critical ASP.NET Core elevation-of-privilege flaw caused by improper verification of cryptographic signatures (CWE-347). The regression affects package versions 10.0.0 through 10.0.6 and was uncovered while Microsoft investigated customer-reported decryption failures after the .NET 10.0.6 Patch Tuesday release. Microsoft said the bug in the managed authenticated encryptor could let unauthenticated attackers bypass HMAC validation, forge authentication cookies and other protected payloads, decrypt some protected data, and potentially authenticate as privileged users.

The vulnerability primarily affects applications running the vulnerable NuGet package at runtime on Linux, macOS, and other non-Windows systems, with some net462 and netstandard2.0 consumers also exposed; Microsoft said Windows deployments and the 8.0.x and 9.0.x branches are not affected under the described conditions. Because ASP.NET Core Data Protection is widely used for cookies, tokens, anti-forgery protections, TempData, and similar application state, successful exploitation can enable file disclosure and data modification without impacting availability. Microsoft urged organizations to upgrade to 10.0.7, rebuild and redeploy affected applications, rotate the DataProtection key ring, and audit long-lived tokens, API keys, password reset links, and logs because legitimately signed artifacts issued during exploitation may remain valid after patching.

Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

5 events · Apr 21, 2026
  1. Apr 21, 20267mo ago

    Microsoft releases emergency .NET 10.0.7 out-of-band security update

    On April 21, 2026, Microsoft released the out-of-band .NET 10.0.7 and Microsoft.AspNetCore.DataProtection 10.0.7 update to fix CVE-2026-40372. Customers were urged to upgrade immediately, rebuild and redeploy affected applications, and verify runtime versions after installation.

  2. Apr 21, 20267mo ago

    Technical exploitation details for CVE-2026-40372 become public

    Public reporting described how an unauthenticated attacker could tamper with a DataProtection payload, replace the final 32-byte HMAC with null bytes, and exploit flawed MAC validation to decrypt modified claims. The technique could produce forged principals and enable elevated or administrative access.

  3. Apr 21, 20267mo ago

    Microsoft publishes advisory and remediation guidance for affected apps

    Microsoft's advisory identified the issue as CWE-347 with CVSS 8.1, noted that Linux, macOS, and some net462/netstandard2.0 consumers were primarily affected, and said Windows deployments and 8.0.x/9.0.x branches were not affected under the described conditions. It recommended upgrading to 10.0.7 or later, rotating the DataProtection key ring, and auditing long-lived tokens and logs for abuse.

  4. Apr 21, 20267mo ago

    Microsoft discloses CVE-2026-40372 in ASP.NET Core Data Protection

    On April 21, 2026, Microsoft disclosed CVE-2026-40372, an ASP.NET Core elevation of privilege vulnerability affecting Microsoft.AspNetCore.DataProtection versions 10.0.0 through 10.0.6. Microsoft said the flaw could let attackers forge authentication cookies, decrypt some protected payloads, and gain privileged access in affected deployments.

  5. Apr 21, 20267mo ago

    Users report decryption failures after .NET 10.0.6 Patch Tuesday update

    Microsoft began investigating customer-reported decryption failures that appeared after installation of the .NET 10.0.6 Patch Tuesday update. The investigation led to discovery of a regression in ASP.NET Core Data Protection.

Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.