Advisory
GHSA-7vw9-cfwx-9gx9
Also known as: BIT-dotnet-2024-38229, BIT-dotnet-sdk-2024-38229, CVE-2024-38229
Summary
Microsoft Security Advisory CVE-2024-38229 | .NET Remote Code Execution Vulnerability
Details
Microsoft Security Advisory CVE-2024-38229 | .NET Remote Code Execution Vulnerability
<a name="executive-summary"></a>Executive summary
Microsoft is releasing this security advisory to provide information about a vulnerability in .NET 8.0 and .NET 9.0. This advisory also provides guidance on what developers can do to update their applications to remove this vulnerability.
A vulnerability exists in ASP.NET when closing an HTTP/3 stream while application code is writing to the response body, a race condition may lead to use-after-free.
Note: HTTP/3 is experimental in .NET 6.0. If you are on .NET 6.0 and using HTTP/3, please upgrade to .NET 8.0.10. .NET 6.0 will not receive a security patch for this vulnerability.
Announcement
Announcement for this issue can be found at https://github.com/dotnet/announcements/issues/326
<a name="mitigation-factors"></a>Mitigation factors
HTTP/3 support is not enabled by default in ASP.NET Core applications. For more information on how to configure HTTP/3 support please visit https://learn.microsoft.com/aspnet/core/fundamentals/servers/kestrel/http3?view=aspnetcore-8.0#getting-started and https://learn.microsoft.com/aspnet/core/fundamentals/servers/kestrel/endpoints?view=aspnetcore-8.0#configure-http-protocols-in-appsettingsjson.
<a name="affected-software"></a>Affected software
- Any ASP.NET 8.0 application running on .NET 8.0.8 or earlier.
- Any ASP.NET 9.0 application running on .NET 9.0.0.RC.1 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
<a name="ASP.NET 9"></a>ASP.NET 9
Package name | Affected version | Patched version
------------ | ---------------- | -------------------------
Microsoft.AspNetCore.App.Runtime.linux-arm | >=9.0.0-preview.1.24081.5, <= 9.0.0-rc.1.24452.1 | 9.0.0-rc.2.24474.3
Microsoft.AspNetCore.App.Runtime.linux-arm64 | >=9.0.0-preview.1.24081.5, <= 9.0.0-rc.1.24452.1 | 9.0.0-rc.2.24474.3
Microsoft.AspNetCore.App.Runtime.linux-musl-arm | >=9.0.0-preview.1.24081.5, <= 9.0.0-rc.1.24452.1 | 9.0.0-rc.2.24474.3
Microsoft.AspNetCore.App.Runtime.linux-musl-arm64 | >=9.0.0-preview.1.24081.5, <= 9.0.0-rc.1.24452.1 | 9.0.0-rc.2.24474.3
Microsoft.AspNetCore.App.Runtime.linux-musl-x64 | >=9.0.0-preview.1.24081.5, <= 9.0.0-rc.1.24452.1 | 9.0.0-rc.2.24474.3
Microsoft.AspNetCore.App.Runtime.linux-x64 | >=9.0.0-preview.1.24081.5, <= 9.0.0-rc.1.24452.1 | 9.0.0-rc.2.24474.3
Microsoft.AspNetCore.App.Runtime.osx-arm64 | >=9.0.0-preview.1.24081.5, <= 9.0.0-rc.1.24452.1 | 9.0.0-rc.2.24474.3
Microsoft.AspNetCore.App.Runtime.osx-x64 | >=9.0.0-preview.1.24081.5, <= 9.0.0-rc.1.24452.1 | 9.0.0-rc.2.24474.3
Microsoft.AspNetCore.App.Runtime.win-arm | >=9.0.0-preview.1.24081.5, <= 9.0.0-rc.1.24452.1 | 9.0.0-rc.2.24474.3
Microsoft.AspNetCore.App.Runtime.win-arm64 | >=9.0.0-preview.1.24081.5, <= 9.0.0-rc.1.24452.1 | 9.0.0-rc.2.24474.3
Microsoft.AspNetCore.App.Runtime.win-x64 | >=9.0.0-preview.1.24081.5, <= 9.0.0-rc.1.24452.1 | 9.0.0-rc.2.24474.3
Microsoft.AspNetCore.App.Runtime.win-x86 | >=9.0.0-preview.1.24081.5, <= 9.0.0-rc.1.24452.1 | 9.0.0-rc.2.24474.3
<a name="ASP.NET 8"></a>ASP.NET 8
Package name | Affected version | Patched version
------------ | ---------------- | -------------------------
Microsoft.AspNetCore.App.Runtime.linux-arm | >=8.0.0, <= 8.0.8 | 8.0.10
Microsoft.AspNetCore.App.Runtime.linux-arm64 | >=8.0.0, <= 8.0.8 | 8.0.10
Microsoft.AspNetCore.App.Runtime.linux-musl-arm | >=8.0.0, <= 8.0.8 | 8.0.10
Microsoft.AspNetCore.App.Runtime.linux-musl-arm64 | >=8.0.0, <= 8.0.8 | 8.0.10
Microsoft.AspNetCore.App.Runtime.linux-musl-x64 | >=8.0.0, <= 8.0.8 | 8.0.10
Microsoft.AspNetCore.App.Runtime.linux-x64 | >=8.0.0, <= 8.0.8 | 8.0.10
Microsoft.AspNetCore.App.Runtime.osx-arm64 | >=8.0.0, <= 8.0.8 | 8.0.10
Microsoft.AspNetCore.App.Runtime.osx-x64 | >=8.0.0, <= 8.0.8 | 8.0.10
Microsoft.AspNetCore.App.Runtime.win-arm | >=8.0.0, <= 8.0.8 | 8.0.10
Microsoft.AspNetCore.App.Runtime.win-arm64 | >=8.0.0, <= 8.0.8 | 8.0.10
Microsoft.AspNetCore.App.Runtime.win-x64 | >=8.0.0, <= 8.0.8 | 8.0.10
Microsoft.AspNetCore.App.Runtime.win-x86 | >=8.0.0, <= 8.0.8 | 8.0.10
Advisory FAQ
<a name="how-affected"></a>How do I know if I am affected?
If you have a runtime or SDK with a version listed, or an affected package listed in [affected software](#affected-packages) or [affected packages](#affected-software), you're exposed to the vulnerability.
<a name="how-fix"></a>How do I fix the issue?
- To fix the issue please install the latest version of .NET 9.0 or .NET 8.0. If you have installed one or more .NET SDKs through Visual Studio, Visual Studio will prompt you to update Visual Studio, which will also update your .NET SDKs.
- If you have .NET 6.0 or greater installed, you can list the versions you have installed by running the
dotnet --infocommand. You will see output like the following;
Severity
High Basis: The source's own band: HIGH
Dates
- Published
- 2024-10-08 17:43 UTC
- Modified
- 2025-05-06 19:35 UTC
Affected packages and fixes
| Package | Affected | Fix |
|---|---|---|
| Microsoft.AspNetCore.App.Runtime.linux-arm | introduced 9.0.0-preview.1.24081.5, fixed 9.0.0-rc.2.24474.3 | The export has no generic command for this ecosystem. |
| Microsoft.AspNetCore.App.Runtime.linux-arm | introduced 8.0.0, fixed 8.0.10 | The export has no generic command for this ecosystem. |
| Microsoft.AspNetCore.App.Runtime.linux-arm64 | introduced 9.0.0-preview.1.24081.5, fixed 9.0.0-rc.2.24474.3 | The export has no generic command for this ecosystem. |
| Microsoft.AspNetCore.App.Runtime.linux-arm64 | introduced 8.0.0, fixed 8.0.10 | The export has no generic command for this ecosystem. |
| Microsoft.AspNetCore.App.Runtime.linux-musl-arm | introduced 9.0.0-preview.1.24081.5, fixed 9.0.0-rc.2.24474.3 | The export has no generic command for this ecosystem. |
| Microsoft.AspNetCore.App.Runtime.linux-musl-arm | introduced 8.0.0, fixed 8.0.10 | The export has no generic command for this ecosystem. |
| Microsoft.AspNetCore.App.Runtime.linux-musl-arm64 | introduced 9.0.0-preview.1.24081.5, fixed 9.0.0-rc.2.24474.3 | The export has no generic command for this ecosystem. |
| Microsoft.AspNetCore.App.Runtime.linux-musl-arm64 | introduced 8.0.0, fixed 8.0.10 | The export has no generic command for this ecosystem. |
| Microsoft.AspNetCore.App.Runtime.linux-musl-x64 | introduced 9.0.0-preview.1.24081.5, fixed 9.0.0-rc.2.24474.3 | The export has no generic command for this ecosystem. |
| Microsoft.AspNetCore.App.Runtime.linux-musl-x64 | introduced 8.0.0, fixed 8.0.10 | The export has no generic command for this ecosystem. |
| Microsoft.AspNetCore.App.Runtime.linux-x64 | introduced 9.0.0-preview.1.24081.5, fixed 9.0.0-rc.2.24474.3 | The export has no generic command for this ecosystem. |
| Microsoft.AspNetCore.App.Runtime.linux-x64 | introduced 8.0.0, fixed 8.0.10 | The export has no generic command for this ecosystem. |
| Microsoft.AspNetCore.App.Runtime.osx-arm64 | introduced 9.0.0-preview.1.24081.5, fixed 9.0.0-rc.2.24474.3 | The export has no generic command for this ecosystem. |
| Microsoft.AspNetCore.App.Runtime.osx-arm64 | introduced 8.0.0, fixed 8.0.10 | The export has no generic command for this ecosystem. |
| Microsoft.AspNetCore.App.Runtime.osx-x64 | introduced 9.0.0-preview.1.24081.5, fixed 9.0.0-rc.2.24474.3 | The export has no generic command for this ecosystem. |
| Microsoft.AspNetCore.App.Runtime.osx-x64 | introduced 8.0.0, fixed 8.0.10 | The export has no generic command for this ecosystem. |
| Microsoft.AspNetCore.App.Runtime.win-arm | introduced 9.0.0-preview.1.24081.5, fixed 9.0.0-rc.2.24474.3 | The export has no generic command for this ecosystem. |
| Microsoft.AspNetCore.App.Runtime.win-arm | introduced 8.0.0, fixed 8.0.10 | The export has no generic command for this ecosystem. |
| Microsoft.AspNetCore.App.Runtime.win-arm64 | introduced 9.0.0-preview.1.24081.5, fixed 9.0.0-rc.2.24474.3 | The export has no generic command for this ecosystem. |
| Microsoft.AspNetCore.App.Runtime.win-arm64 | introduced 8.0.0, fixed 8.0.10 | The export has no generic command for this ecosystem. |
| Microsoft.AspNetCore.App.Runtime.win-x64 | introduced 9.0.0-preview.1.24081.5, fixed 9.0.0-rc.2.24474.3 | The export has no generic command for this ecosystem. |
| Microsoft.AspNetCore.App.Runtime.win-x64 | introduced 8.0.0, fixed 8.0.10 | The export has no generic command for this ecosystem. |
| Microsoft.AspNetCore.App.Runtime.win-x86 | introduced 9.0.0-preview.1.24081.5, fixed 9.0.0-rc.2.24474.3 | The export has no generic command for this ecosystem. |
| Microsoft.AspNetCore.App.Runtime.win-x86 | introduced 8.0.0, fixed 8.0.10 | The export has no generic command for this ecosystem. |
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
Links
- https://github.com/dotnet/aspnetcore/security/advisories/GHSA-7vw9-cfwx-9gx9
- https://nvd.nist.gov/vuln/detail/CVE-2024-38229
- https://github.com/dotnet/announcements/issues/326
- https://github.com/dotnet/aspnetcore/issues/58297
- https://github.com/dotnet/aspnetcore
- https://learn.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel/endpoints?view=aspnetcore-8.0#configure-http-protocols-in-appsettingsjson
- https://learn.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel/http3?view=aspnetcore-8.0#getting-started
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-38229
- https://www.herodevs.com/vulnerability-directory/cve-2024-38229
Source
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0