Skip to content
IT
Cybersecurity

Critical ASP.NET Core Vulnerability: Microsoft Releases Urgent Patch for CVE-2026-40372

Privilege escalation and cookie forgery: update to DataProtection 10.0.7 immediately

Published on By Sebastiano, GoYou.it 5 min read
Flash briefing Audio summary · 2:14

KEY TAKEAWAYS

  • CVE-2026-40372 vulnerability allows privilege escalation and forgery of encrypted payloads
  • Urgent patch for Microsoft.AspNetCore.DataProtection 10.0.7 needed to block attacks
  • Risk of legitimate token compromise and privileged access during the vulnerability window
  • Microsoft warns to update and redeploy applications to invalidate forged payloads
  • Previous vulnerability CVE-2025-55315 in the Kestrel server had a record severity rating

Microsoft fixes critical vulnerability in ASP.NET Core with out-of-band update

Microsoft has released an out-of-band security update to fix a critical privilege escalation vulnerability in ASP.NET Core (CVE-2026-40372), discovered in the Data Protection encryption module. The error, rated as "severe" in the vendor's evaluation system, allows unauthenticated attackers to obtain SYSTEM privileges on vulnerable devices by creating forged authentication cookies.

Quick Response

The vulnerability CVE-2026-40372 affects the cryptographic APIs of ASP.NET Core Data Protection. It allows privilege escalation through forged cookies. Updating to version 10.0.7 of the Microsoft.AspNetCore.DataProtection package is essential for mitigation. Tokens issued during the vulnerable period remain valid until key rotation.

A cryptographic validation issue

The anomaly lies in a regression in versions 10.0.0-10.0.6 of the NuGet package Microsoft.AspNetCore.DataProtection, which causes the validation HMAC to be incorrectly calculated on the wrong portions of the payload. In some cases, the validation error allows attackers to create payloads that bypass authenticity checks, enabling the decryption of protected data in authentication cookies, anti-forgery tokens, and other sensitive elements.

Impact on application security

According to the security advisory published on Tuesday, exploiting the vulnerability could allow attackers to obtain valid tokens signed by the application, such as session tokens, API keys, or password reset links. These tokens remain valid even after updating to version 10.0.7, unless DataProtection key rotation is performed. Additionally, the vulnerability could allow file disclosure and data modification, but it does not affect system availability.

Recommendations for immediate mitigation

Microsoft strongly recommends that administrators immediately update the Microsoft.AspNetCore.DataProtection package to version 10.0.7 and rebuild applications to fix the validation routine. Rahul Bhandari, senior program manager at Microsoft, emphasized the importance of updating the package and rebuilding applications to ensure that any forged payloads are automatically rejected.

History: the HTTP request smuggling vulnerability

In October, Microsoft fixed another critical vulnerability in ASP.NET Core, identified as CVE-2025-55315. This HTTP request smuggling flaw in the Kestrel web server was classified with the "highest severity level ever assigned" to an ASP.NET Core vulnerability. A successful exploit of this vulnerability could have allowed authenticated attackers to steal other users' credentials, bypass front-end security controls, or crash the server.

Considerations on business impact

The fix for this vulnerability is particularly critical for organizations using ASP.NET Core for sensitive web applications. Privilege escalation by unauthenticated attackers could completely compromise application security, putting sensitive data and critical systems at risk. The need for out-of-band updates underscores the importance of actively monitoring security advisories and implementing fixes in a timely manner.

Additional resources and documentation

For more details on affected platforms, packages, and application configurations, you can consult the original announcement published on GitHub. Microsoft has provided detailed instructions on how to apply the update and rebuild applications to ensure maximum security. Administrators are advised to carefully follow the instructions provided in the official release notes to ensure effective mitigation.

The impact on organizations and best practices for response

The vulnerability CVE-2026-40372 represents a significant risk for organizations that rely on ASP.NET Core for their web applications. The possibility of privilege escalation by unauthenticated attackers can compromise the security of sensitive data and critical systems. For companies, this means not only the need to immediately update their infrastructures but also to review their overall security strategies.

Best practices for responding to this vulnerability include:

  • Continuous monitoring of security advisories: Organizations should implement an active monitoring system for security alerts, both from Microsoft and other reliable sources, to always be informed about the latest threats.
  • Timely updates: Security updates must be applied as soon as they are available, especially for critical vulnerabilities like this one. Procrastination can leave applications exposed to potential attacks.
  • Encryption key rotation: After the update, it is essential to perform DataProtection key rotation to invalidate any tokens issued during the vulnerable period.
  • Impact assessment: Organizations should conduct a comprehensive assessment of the impact of the vulnerability on their specific applications to fully understand the risk and plan the necessary actions.
  • Staff training: It is essential that administrators and developers are properly trained on security procedures and incident response practices.

The implications for web application developers

For developers using ASP.NET Core, this vulnerability underscores the importance of secure design and rigorous validation of cryptographic operations. The discovery of a regression in a fundamental library like Microsoft.AspNetCore.DataProtection highlights the need for constant attention to security by developers and system administrators.

The frequency with which critical vulnerabilities are discovered in ASP.NET Core underscores the importance of a proactive approach to software security. Organizations and developers must be prepared to quickly respond to new threats and implement effective mitigation measures to protect their applications and data.

Resources and tools for security

To effectively address vulnerabilities like CVE-2026-40372, a series of resources and tools are available that can help administrators and developers keep their applications secure. Microsoft provides detailed instructions on how to apply updates and rebuild applications to ensure maximum security. Additionally, there are security analysis tools and secure development frameworks that can help identify and fix vulnerabilities before they can be exploited.

Useful resources include:

  • Microsoft Security Response Center (MSRC): Provides security alerts and guidance on how to address vulnerabilities.
  • GitHub Advisory Database: Contains information on known vulnerabilities and suggestions for fixes.
  • Static and dynamic analysis tools: Tools like Roslyn Analyzers and OWASP ZAP can help identify vulnerabilities in code and applications.
  • Secure development frameworks: Frameworks like Azure Security Center and Microsoft Defender for Cloud can provide advanced protection and continuous monitoring.

The fix for the vulnerability CVE-2026-40372 in ASP.NET Core is a critical reminder of the importance of keeping applications updated and adopting robust security practices. For organizations and developers, this means not only applying security updates in a timely manner but also adopting a proactive approach to security management. By carefully monitoring security advisories, performing comprehensive security tests, and implementing effective mitigation measures, the risk of attacks can be significantly reduced, and critical data and systems can be protected.

Editorial Note and Disclaimer

The guides and content published on GoYou are the result of independent research and analysis activities, for informational, educational, and in-depth purposes.

GoYou does not constitute a journalistic publication or an editorial product pursuant to Law No. 62/2001 and does not provide real-time information.

The GoYou project does not provide professional, technical, legal, or financial advice and disclaims all responsibility for the improper use of the information published.

In the Crypto sector, every investment involves risks: readers are invited to always inform themselves independently before making any decision.

Source: bleepingcomputer.com · GoYou.it is not a registered news outlet; all content is for informational and educational purposes.

Listen GoYou Cybersecurityevery article read in full
Go to the channel

You may also like

Behind every article is the work of our passion. If you enjoy GoYou.it, you can support its development and continuity.

Support with PayPal