
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-40372 is a critical elevation of privilege vulnerability in ASP.NET Core caused by improper verification of cryptographic signatures in the Microsoft.AspNetCore.DataProtection package. It allows an unauthenticated remote attacker to forge authentication cookies and decrypt protected payloads, effectively escalating privileges over a network without any user interaction. The vulnerability affects ASP.NET Core 10.0 versions 10.0.0 through 10.0.6, and was disclosed on April 21, 2026, with a patch released the same day as an out-of-band emergency update. It carries a CVSS v3.1 base score of 9.1 (Critical) (MSRC, GitHub Advisory).
The root cause is classified as CWE-347 (Improper Verification of Cryptographic Signature). A defect introduced during .NET 10.0 development in the Microsoft.AspNetCore.DataProtection package causes the HMAC validation routine to accept forged payloads — specifically, payloads carrying all-zero HMAC bytes — as valid. This flaw is primarily exploitable on Linux and macOS (non-Windows) when the application loads the affected NuGet binary at runtime (i.e., it does not rely on the correct shared framework copy), or on any OS when the net462/netstandard2.0 target framework asset is consumed. The attack is analogous to MS10-070, which exploited a padding-oracle condition in ASP.NET's legacy encryption infrastructure, and is mapped to CAPEC-463 (Padding Oracle Crypto Attack) and CAPEC-475 (Signature Spoofing by Improper Validation) (GitHub Advisory, Red Hat Bugzilla).
Successful exploitation allows an unauthenticated attacker to forge authentication cookies and potentially decrypt protected payloads, resulting in complete compromise of confidentiality and integrity with no availability impact. An attacker who authenticates as a privileged user during the vulnerable window may cause the application to issue legitimately-signed long-lived tokens — such as session refresh tokens, API keys, and password reset links — that remain valid even after patching unless the DataProtection key ring is rotated. Additionally, secrets stored inside IDataProtector.Protect output (e.g., database connection strings, third-party API keys) may be exposed (GitHub Advisory, MSRC).
As of the time of disclosure, there is no public proof-of-concept exploit and no evidence of in-the-wild exploitation (GitHub Advisory). The EPSS score is approximately 0.039% (0.000390), indicating a low near-term exploitation probability. The vulnerability has not been added to the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported. However, the high CVSS score (9.1), network accessibility, and zero authentication requirement make it a high-priority patching target (Feedly).
Microsoft.AspNetCore.DataProtection versions 10.0.0–10.0.6 (e.g., via HTTP response headers, error pages, or framework fingerprinting tools).Microsoft.NET.Sdk.Web SDK or lacks a Microsoft.AspNetCore.App framework reference, or when targeting net462/netstandard2.0.Microsoft.AspNetCore.DataProtection 10.0.0–10.0.6 was deployed).Microsoft.AspNetCore.DataProtection NuGet package versions 10.0.0–10.0.6 in application dependency manifests on Linux or macOS hosts (GitHub Advisory).The primary remediation is to upgrade Microsoft.AspNetCore.DataProtection to version 10.0.7 or later and redeploy the application; this corrects the HMAC validation routine and causes forged payloads (identifiable by all-zero HMAC bytes) to be rejected (MSRC, GitHub Advisory). After upgrading, organizations should rotate the DataProtection key ring using IKeyManager.RevokeAllKeys() to invalidate any legitimately-signed tokens that may have been issued to attackers during the vulnerable window. Additionally, audit and rotate any long-lived application-layer artifacts (API keys, refresh tokens, password reset links) issued during the vulnerable period, and rotate secrets stored inside IDataProtector.Protect output. As a temporary measure if immediate patching is not feasible, restrict network access to affected ASP.NET Core 10.0 applications (GitHub Advisory, Microsoft .NET Blog).
Microsoft released an emergency out-of-band patch on April 21, 2026, which generated significant coverage across security media outlets including BleepingComputer, The Hacker News, Ars Technica, CSO Online, and Security Affairs (BleepingComputer, The Hacker News). Duende Software published specific update guidance for IdentityServer users affected by the flaw, noting the DataProtection dependency impact (Duende Software). Community discussion on Reddit, Mastodon, Bluesky, and security forums highlighted the severity and the nuanced affected configurations (Linux/macOS only for the primary path), with some commentary noting the similarity to the historic MS10-070 padding oracle vulnerability. The Canadian Centre for Cyber Security (CCCS) and HKCERT also issued advisories urging immediate patching (CCCS).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."