Microsoft Security Advisory CVE-2025-24070: .NET Elevation of Privilege Vulnerability
<a name="executive-summary"></a>Executive summary
Microsoft is releasing this security advisory to provide information about a vulnerability in ASP.NET Core 9.0 , ASP.NET Core 8.0, and ASP.NET Core 2.3. This advisory also provides guidance on what developers can do to update their applications to address this vulnerability.
A vulnerability exists in ASP.NET Core applications calling RefreshSignInAsync with an improperly authenticated user parameter that could allow an attacker to sign into another user's account, resulting in Elevation of Privilege.
Announcement
Announcement for this issue can be found at https://github.com/dotnet/announcements/issues/348
<a name="mitigation-factors"></a>Mitigation factors
Microsoft has not identified any mitigating factors for this vulnerability.
<a name="affected-software"></a>Affected software
- Any ASP.NET Core 9.0 application running on ASP.NET Core 9.0.2 or earlier.
- Any ASP.NET Core application running on ASP.NET Core 8.0.13 or earlier.
- Any ASP.NET Core 2.x application consuming the package Microsoft.AspNetCore.Identity version 2.3.0 or earlier.
<a name="affected-packages"></a>Affected Packages
The vulnerability affects any Microsoft .NET Core project if it uses any of affected packages versions listed below
Package name | Affected version | Patched version
------------ | ---------------- | -------------------------
Microsoft.AspNetCore.Identity | 2.3.0 | 2.3.1
<a name="ASP.NET Core 9"></a>ASP.NET Core 9
Package name | Affected version | Patched version
------------ | ---------------- | -------------------------
Microsoft.AspNetCore.App.Runtime.linux-arm | >= 9.0.0, <= 9.0.2 | 9.0.3
Microsoft.AspNetCore.App.Runtime.linux-arm64 | >= 9.0.0, <= 9.0.2 | 9.0.3
| >= 9.0.0, <= 9.0.2 | 9.0.3
| >= 9.0.0, <= 9.0.2 | 9.0.3
| >= 9.0.0, <= 9.0.2 | 9.0.3
| >= 9.0.0, <= 9.0.2 | 9.0.3
| >= 9.0.0, <= 9.0.2 | 9.0.3
| >= 9.0.0, <= 9.0.2 | 9.0.3
| >= 9.0.0, <= 9.0.2 | 9.0.3
| >= 9.0.0, <= 9.0.2 | 9.0.3
| >= 9.0.0, <= 9.0.2 | 9.0.3
| >= 9.0.0, <= 9.0.2 | 9.0.3