TL;DR: CVE-2026-40372 in ASP.NET Core lets unauthenticated attackers forge Data Protection payloads and impersonate privileged users, with Microsoft assigning it CVSS 8.1; CYCOGNITO notes the flaw also leaves issued tokens valid unless the Data Protection key ring is rotated. The issue turns signing trust into an access-control failure, so patching alone is not enough.
At a glance
What this is: CYCOGNITO says CVE-2026-40372 in ASP.NET Core can be exploited without authentication to forge protected payloads and impersonate privileged users.
Why it matters: For IAM and application security teams, this is a reminder that signed tokens and cookies are only trustworthy if the validation path and key lifecycle are controlled end to end.
Context
CVE-2026-40372 is an application security flaw that breaks the trust model behind signed payloads. In practice, a defect in signature verification means the application can accept forged data as legitimate, which turns a cryptographic check into an access-control problem rather than a narrow code defect.
The identity angle is direct because the vulnerable path can affect authentication cookies, antiforgery tokens, session refresh tokens, API keys, and password reset links. That makes the issue relevant to IAM, PAM, and NHI governance where credentials or tokens are issued, reused, or persisted across runtime and deployment boundaries.
The article’s deployment pattern is also typical of modern Linux-hosted .NET estates, where runtime package loading, transitively pulled dependencies, and containerised workloads make it easy to miss what is actually enforcing trust at execution time.
Key questions
Q: What breaks when ASP.NET Core signature verification fails?
A: The application can no longer distinguish a legitimate protected payload from an attacker-forged one. That turns cookies, antiforgery tokens, and similar artifacts into an elevation-of-privilege path because the server trusts signed state that should have been rejected. The operational result is identity abuse, not just data corruption.
Q: Why do patched systems still need key ring rotation after this flaw?
A: Because the patch fixes the validation bug, but it does not automatically invalidate anything the vulnerable code already signed. If an attacker caused the application to issue tokens, links, or keys during the exposure window, those artifacts may continue to work until the signing keys are rotated and the affected trust chain is reset.
Q: What do security teams get wrong about data protection tools?
A: Teams often treat data protection as a separate data team problem, then miss the identity path that enables exposure. DSPM works best when it informs access reviews, privileged access decisions, and detection workflows, because data risk is usually created by access, not storage alone.
Q: How should teams govern signed application state in ASP.NET Core?
A: Treat signed payloads as privileged identity artifacts with ownership, expiry, and revocation rules. That means knowing which services issue them, which users or workflows can trigger issuance, and how quickly those artifacts can be invalidated if the signing path is compromised.
Technical breakdown
How the signature verification failure works
The flaw sits in the Data Protection library’s HMAC validation routine. Instead of rejecting malformed or forged payloads, the defective comparison allows a crafted structure to pass as if it were legitimately signed. That matters because Data Protection is not just a storage wrapper. It is the trust boundary for cookies, tokens, and other protected artifacts the application later relies on for authentication or state. Once that boundary fails, the application becomes unable to distinguish between a genuine protected object and attacker-supplied data.
Practical implication: Treat verification logic as part of your authentication surface, not just a cryptography dependency.
Why forged payloads become access control bypasses
When an application accepts a forged protected payload, the attacker can shape the identity or session data the application reads back. That can let them impersonate a privileged user or trigger issuance of new artifacts under a false identity. This is why the issue is more than token tampering. It is a privilege escalation path that abuses the application’s trust in its own signed state. In identity terms, the system is authenticating the payload format instead of the real identity behind the request.
Practical implication: Map every protected artifact to the privilege it can unlock and treat compromise of that artifact as identity compromise.
Why patching alone may not close the exposure window
The article notes that artifacts issued during the vulnerable window can remain valid after the binary is updated unless the Data Protection key ring is rotated. That creates a persistence problem: the exploit may stop working, but previously issued tokens, keys, or links can still be trusted by the application. For teams running distributed or containerised ASP.NET Core, this is the same lifecycle failure seen with other long-lived secrets and delegated credentials. The control gap is not only code remediation, but invalidation of anything the flawed trust path already signed.
Practical implication: Plan for key ring rotation and artifact revocation as part of the fix, not as an optional follow-up.
Threat narrative
Attacker objective: The attacker’s objective is to impersonate privileged users and preserve usable credentials or signed artifacts long enough to maintain access.
- Entry occurs when an unauthenticated attacker sends HTTP requests to an affected endpoint and supplies a sample protected payload such as an anonymous session cookie.
- Credential abuse follows when the defective HMAC validation accepts a forged Data Protection payload as if it were legitimately signed.
- Escalation happens when the attacker uses the forged identity to obtain privileged access or trigger the application to issue new credentials under that false identity.
- Impact is persistent compromise of trust-bound artifacts, because tokens or links issued during the vulnerable window can remain valid until the Data Protection key ring is rotated.
Breaches seen in the wild
- Azure Key Vault Contributor escalation 2024: Datadog found Azure Key Vault Contributor could add itself to access policies and read every secret, key and certificate in a vault.
- Malwarebytes breach 2021: SolarWinds attackers added a certificate to a dormant email security app's service principal at Malwarebytes and read internal email via Microsoft Graph.
Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Signed payload trust is an identity control, not a cryptography footnote. When an application accepts forged cookies or tokens, the control failure sits at the boundary between authentication and authorisation. That means the governance question is not whether the binary is patched, but whether the trust chain that signs and consumes identity artifacts is lifecycle-managed end to end. Practitioners should treat signed payload verification as part of IAM control design.
Key ring rotation is the decisive containment step when issued artifacts may survive a fix. This article shows the classic problem of standing trust: a vulnerability may be closed while already issued artifacts remain valid. That is a governance gap, not just a remediations gap, because the organisation now has to invalidate trust it already extended. The specific failure mode is a post-patch trust residue window, and that is exactly where attackers keep working.
ASP.NET Core deployments often hide the real trust boundary inside transitive package loading. The article’s Linux and container examples show why asset inventory alone is not enough. Teams need to know which runtime package is actually loaded, which services issue protected artifacts, and which identity flows depend on them. The practical conclusion is simple: if the runtime trust path is opaque, the access model is also opaque.
Application-issued credentials inherit the same governance burden as any NHI secret. API keys, refresh tokens, and password reset links created during the vulnerable window are effectively machine-issued trust artifacts, and they need ownership, expiry, and revocation discipline. That puts this flaw squarely into the overlap between application security and NHI governance. The lesson for practitioners is to govern issuance and invalidation together, not as separate teams.
Privilege escalation here is really a failure of signed-state accountability. The application trusted signed state without proving that the signer, the key ring, and the runtime path still matched the intended policy. That is the precise governance gap this article exposes. Teams should use this pattern to re-evaluate where their systems assume trust persists after a patch, because that assumption is often wrong.
From our research library:
- Patching addresses only about 10% of privilege escalation techniques, while privilege management covers about 65%, according to Verizon's 2026 Data Breach Investigations Report.
What this signals
Trust residue is the hidden risk in many token-signing flaws. A patch may stop new forgeries, but it does not automatically extinguish the authority of artifacts already issued under the broken trust path. That is why identity teams should think in terms of invalidation windows, not just remediation windows.
Signed application state needs the same lifecycle discipline as any privileged secret. If a system can mint API keys, refresh tokens, or reset links from a compromised trust boundary, those artifacts should be governed as credentials with explicit ownership, expiry, and revocation.
ASP.NET Core teams should expect inventory gaps where runtime dependencies are pulled transitively. The practical control problem is not only whether a package is vulnerable, but whether the organisation can see where that package is loaded and what identity flows depend on it.
For practitioners
- Rotate the Data Protection key ring after patching Use key ring rotation to invalidate any tokens, cookies, or links issued while CVE-2026-40372 was exploitable, because the binary fix alone does not revoke previously signed artifacts.
- Inventory every endpoint that consumes protected payloads Identify applications, APIs, and containers that rely on Microsoft.AspNetCore.DataProtection directly or transitively, especially where Redis, EF Core, Azure Key Vault, or Azure Storage integrations load the package at runtime.
- Review post-issue artifacts for unintended persistence Check whether API keys, refresh tokens, or password reset links were issued during the vulnerable window and rotate any downstream credentials that were derived from those flows.
Key takeaways
- CVE-2026-40372 is an elevation-of-privilege issue because forged protected payloads can be accepted as legitimate identity state.
- The exposure does not end with a binary update if tokens, keys, or links were issued during the vulnerable window.
- Effective remediation requires key ring rotation, artifact review, and runtime inventory of affected ASP.NET Core deployments.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST SP 800-53 Rev 5 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-04 — Insecure Authentication | The flaw lets forged signed artifacts be accepted as authentic identity state. |
| NHI-07 — Long-Lived Secrets | Issued artifacts can remain valid after the binary is patched, extending exposure. | |
| Recommendation — Harden signed-payload verification and invalidate any credentials issued through the compromised trust path. Rotate signing keys and revoke surviving artifacts as soon as the vulnerable window closes. | ||
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | Authenticator lifecycle control is directly implicated when signed tokens and keys outlive the fix. |
| Recommendation — Apply IA-5 to rotate, revoke, and reissue authenticators tied to the affected trust chain. | ||
| MITRE ATT&CK | TA0006;TA0004 — Credential Access; Privilege Escalation | The article describes forged artifacts used to gain elevated access and preserve it. |
| Recommendation — Map the exploit to credential access and privilege escalation techniques when tuning detections and response. | ||
| NIST CSF 2.0 | PR.AA-05 — Access Permissions, Entitlements and Authorizations | The issue turns a signing defect into a broken authorisation decision. |
| Recommendation — Review authorization decisions that depend on signed payloads and remove implicit trust in forged state. | ||
Key terms
- Data Protection key ring: A Data Protection key ring is the set of cryptographic keys an application uses to encrypt and authenticate protected state such as cookies or tokens. If the ring is not rotated after compromise, attacker-induced artifacts can remain valid even after the software defect is patched.
- Signed Payload: An update package that includes a cryptographic signature proving where it came from and whether it changed in transit. For connected devices, signature verification is a core integrity control because the device cannot rely on human review to catch malicious or tampered update content.
- Authenticator Lifecycle Management: Authenticator lifecycle management is the governance of a credential from issuance to renewal, replacement, and retirement. For human identity programmes, it ensures that keys, smart cards, and certificates stay tied to the right user and are removed when the user, role, or device is no longer trusted.
- Trust Residue: Trust residue is the security debt left behind when a broken control has already issued valid artifacts before the fix is applied. It is especially dangerous in identity systems because the compromise can survive the patch unless the organisation explicitly invalidates the old trust path.
Deepen your knowledge
NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, secrets management, and workload identity in a practitioner-focused curriculum. It helps security teams connect identity controls to the broader access and lifecycle decisions that shape real-world risk.
Published by the NHIMG editorial team on August 19, 2026.
Updated on October 12, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org