Advisory

GHSA-2865-hh9g-w894

Also known as: BIT-aspnet-core-2025-24070, CVE-2025-24070

Summary

Microsoft Security Advisory CVE-2025-24070: .NET Elevation of Privilege Vulnerability

Details

Microsoft Security Advisory CVE-2025-24070: .NET Elevation of Privilege Vulnerability

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, ASP.NET Core 6.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

Mitigation factors

Microsoft has not identified any mitigating factors for this vulnerability.

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 application running on ASP.NET Core 6.0.36 or earlier.
  • Any ASP.NET Core 2.x application consuming the package Microsoft.AspNetCore.Identity version 2.3.0 or earlier.

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 |

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 |
| Microsoft.AspNetCore.App.Runtime.linux-musl-arm | >= 9.0.0, <= 9.0.2 | 9.0.3 |
| Microsoft.AspNetCore.App.Runtime.linux-musl-arm64 | >= 9.0.0, <= 9.0.2 | 9.0.3 |
| Microsoft.AspNetCore.App.Runtime.linux-musl-x64 | >= 9.0.0, <= 9.0.2 | 9.0.3 |
| Microsoft.AspNetCore.App.Runtime.linux-x64 | >= 9.0.0, <= 9.0.2 | 9.0.3 |
| Microsoft.AspNetCore.App.Runtime.osx-arm64 | >= 9.0.0, <= 9.0.2 | 9.0.3 |
| Microsoft.AspNetCore.App.Runtime.osx-x64 | >= 9.0.0, <= 9.0.2 | 9.0.3 |
| Microsoft.AspNetCore.App.Runtime.win-arm | >= 9.0.0, <= 9.0.2 | 9.0.3 |
| Microsoft.AspNetCore.App.Runtime.win-arm64 | >= 9.0.0, <= 9.0.2 | 9.0.3 |
| Microsoft.AspNetCore.App.Runtime.win-x64 | >= 9.0.0, <= 9.0.2 | 9.0.3 |
| Microsoft.AspNetCore.App.Runtime.win-x86 | >= 9.0.0, <= 9.0.2 | 9.0.3 |

ASP.NET Core 8

| Package name | Affected version | Patched version |
| --- | --- | --- |
| Microsoft.AspNetCore.App.Runtime.linux-arm | >= 8.0.0, <= 8.0.13 | 8.0.14 |
| Microsoft.AspNetCore.App.Runtime.linux-arm64 | >= 8.0.0, <= 8.0.13 | 8.0.14 |
| Microsoft.AspNetCore.App.Runtime.linux-musl-arm | >= 8.0.0, <= 8.0.13 | 8.0.14 |
| Microsoft.AspNetCore.App.Runtime.linux-musl-arm64 | >= 8.0.0, <= 8.0.13 | 8.0.14 |
| Microsoft.AspNetCore.App.Runtime.linux-musl-x64 | >= 8.0.0, <= 8.0.13 | 8.0.14 |
| Microsoft.AspNetCore.App.Runtime.linux-x64 | >= 8.0.0, <= 8.0.13 | 8.0.14 |
| Microsoft.AspNetCore.App.Runtime.osx-arm64 | >= 8.0.0, <= 8.0.13 | 8.0.14 |
| Microsoft.AspNetCore.App.Runtime.osx-x64 | >= 8.0.0, <= 8.0.13 | 8.0.14 |
| Microsoft.AspNetCore.App.Runtime.win-arm | >= 8.0.0, <= 8.0.13 | 8.0.14 |
| Microsoft.AspNetCore.App.Runtime.win-arm64 | >= 8.0.0, <= 8.0.13 | 8.0.14 |
| Microsoft.AspNetCore.App.Runtime.win-x64 | >= 8.0.0, <= 8.0.13 | 8.0.14 |
| Microsoft.AspNetCore.App.Runtime.win-x86 | >= 8.0.0, <= 8.0.13 | 8.0.14 |

ASP.NET Core 6

| Package name | Affected version | Patched version |
| --- | --- | --- |
| Microsoft.AspNetCore.App.Runtime.linux-arm | >= 6.0.0, <= 6.0.36 | none |
| Microsoft.AspNetCore.App.Runtime.linux-arm64 | >= 6.0.0, <= 6.0.36 | none |
| Microsoft.AspNetCore.App.Runtime.linux-musl-arm | >= 6.0.0, <= 6.0.36 | none |
| Microsoft.AspNetCore.App.Runtime.linux-musl-arm64 | >= 6.0.0, <= 6.0.36 | none |
| Microsoft.AspNetCore.App.Runtime.linux-musl-x64 | >= 6.0.0, <= 6.0.36 | none |
| Microsoft.AspNetCore.App.Runtime.linux-x64 | >= 6.0.0, <= 6.0.36 | none |
| Microsoft.AspNetCore.App.Runtime.osx-arm64 | >= 6.0.0, <= 6.0.36 | none |
| Microsoft.AspNetCore.App.Runtime.osx-x64 | >= 6.0.0, <= 6.0.36 | none |
| Microsoft.AspNetCore.App.Runtime.win-arm | >= 6.0.0, <= 6.0.36 | none |
| Microsoft.AspNetCore.App.Runtime.win-arm64 | >= 6.0.0, <= 6.0.36 | none |
| Microsoft.AspNetCore.App.Runtime.win-x64 | >= 6.0.0, <= 6.0.36 | none |
| Microsoft.AspNetCore.App.Runtime.win-x86 | >= 6.0.0, <= 6.0.36 | none |

Severity

High Basis: The source's own band: HIGH

Dates

Published
2025-03-11 19:24 UTC
Modified
2025-10-23 20:17 UTC

Affected packages and fixes

37 affected packages; all NuGet · All systems
PackageAffectedFix
Microsoft.AspNetCore.Identityintroduced 2.3.0, fixed 2.3.1The export has no generic command for this ecosystem.
Microsoft.AspNetCore.App.Runtime.linux-armintroduced 9.0.0, fixed 9.0.3The export has no generic command for this ecosystem.
Microsoft.AspNetCore.App.Runtime.linux-armintroduced 8.0.0, fixed 8.0.14The export has no generic command for this ecosystem.
Microsoft.AspNetCore.App.Runtime.linux-arm64introduced 9.0.0, fixed 9.0.3The export has no generic command for this ecosystem.
Microsoft.AspNetCore.App.Runtime.linux-arm64introduced 8.0.0, fixed 8.0.14The export has no generic command for this ecosystem.
Microsoft.AspNetCore.App.Runtime.linux-musl-armintroduced 9.0.0, fixed 9.0.3The export has no generic command for this ecosystem.
Microsoft.AspNetCore.App.Runtime.linux-musl-armintroduced 8.0.0, fixed 8.0.14The export has no generic command for this ecosystem.
Microsoft.AspNetCore.App.Runtime.linux-musl-arm64introduced 9.0.0, fixed 9.0.3The export has no generic command for this ecosystem.
Microsoft.AspNetCore.App.Runtime.linux-musl-arm64introduced 8.0.0, fixed 8.0.14The export has no generic command for this ecosystem.
Microsoft.AspNetCore.App.Runtime.linux-musl-x64introduced 9.0.0, fixed 9.0.3The export has no generic command for this ecosystem.
Microsoft.AspNetCore.App.Runtime.linux-musl-x64introduced 8.0.0, fixed 8.0.14The export has no generic command for this ecosystem.
Microsoft.AspNetCore.App.Runtime.linux-x64introduced 9.0.0, fixed 9.0.3The export has no generic command for this ecosystem.
Microsoft.AspNetCore.App.Runtime.linux-x64introduced 8.0.0, fixed 8.0.14The export has no generic command for this ecosystem.
Microsoft.AspNetCore.App.Runtime.osx-arm64introduced 9.0.0, fixed 9.0.3The export has no generic command for this ecosystem.
Microsoft.AspNetCore.App.Runtime.osx-arm64introduced 8.0.0, fixed 8.0.14The export has no generic command for this ecosystem.
Microsoft.AspNetCore.App.Runtime.osx-x64introduced 9.0.0, fixed 9.0.3The export has no generic command for this ecosystem.
Microsoft.AspNetCore.App.Runtime.osx-x64introduced 8.0.0, fixed 8.0.14The export has no generic command for this ecosystem.
Microsoft.AspNetCore.App.Runtime.win-armintroduced 8.0.0, fixed 8.0.14The export has no generic command for this ecosystem.
Microsoft.AspNetCore.App.Runtime.win-armintroduced 9.0.0, fixed 9.0.3The export has no generic command for this ecosystem.
Microsoft.AspNetCore.App.Runtime.win-arm64introduced 9.0.0, fixed 9.0.3The export has no generic command for this ecosystem.
Microsoft.AspNetCore.App.Runtime.win-arm64introduced 8.0.0, fixed 8.0.14The export has no generic command for this ecosystem.
Microsoft.AspNetCore.App.Runtime.win-x64introduced 9.0.0, fixed 9.0.3The export has no generic command for this ecosystem.
Microsoft.AspNetCore.App.Runtime.win-x64introduced 8.0.0, fixed 8.0.14The export has no generic command for this ecosystem.
Microsoft.AspNetCore.App.Runtime.win-x86introduced 8.0.0, fixed 8.0.14The export has no generic command for this ecosystem.
Microsoft.AspNetCore.App.Runtime.win-x86introduced 9.0.0, fixed 9.0.3The export has no generic command for this ecosystem.
Microsoft.AspNetCore.App.Runtime.linux-armintroduced 6.0.0, last affected 6.0.36No fixed version is listed.
Microsoft.AspNetCore.App.Runtime.linux-arm64introduced 6.0.0, last affected 6.0.36No fixed version is listed.
Microsoft.AspNetCore.App.Runtime.linux-musl-armintroduced 6.0.0, last affected 6.0.36No fixed version is listed.
Microsoft.AspNetCore.App.Runtime.linux-musl-arm64introduced 6.0.0, last affected 6.0.36No fixed version is listed.
Microsoft.AspNetCore.App.Runtime.linux-musl-x64introduced 6.0.0, last affected 6.0.36No fixed version is listed.
Microsoft.AspNetCore.App.Runtime.osx-arm64introduced 6.0.0, last affected 6.0.36No fixed version is listed.
Microsoft.AspNetCore.App.Runtime.osx-x64introduced 6.0.0, last affected 6.0.36No fixed version is listed.
Microsoft.AspNetCore.App.Runtime.win-armintroduced 6.0.0, last affected 6.0.36No fixed version is listed.
Microsoft.AspNetCore.App.Runtime.win-arm64introduced 6.0.0, last affected 6.0.36No fixed version is listed.
Microsoft.AspNetCore.App.Runtime.win-x64introduced 6.0.0, last affected 6.0.36No fixed version is listed.
Microsoft.AspNetCore.App.Runtime.win-x86introduced 6.0.0, last affected 6.0.36No fixed version is listed.
Microsoft.AspNetCore.App.Runtime.linux-x64introduced 6.0.0, last affected 6.0.36No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences