CVE-2024-21386

CVE-2024-21386 is a high-severity uncontrolled resource consumption vulnerability in Microsoft.AspNetCore.App.Runtime.linux-arm (nuget), affecting versions <= 6.0.26. It is fixed in 6.0.27, 7.0.16, 8.0.2.

Does this CVE actually affect you?

Kodem shows which CVEs are reachable and running in your applications, so you fix what's exploitable, not just what's listed.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Runtime intelligence, not another scanner.

Summary

Microsoft Security Advisory CVE-2024-21386: .NET Denial of Service Vulnerability

Microsoft Security Advisory CVE-2024-21386: .NET Denial of Service Vulnerability

Executive summary

Microsoft is releasing this security advisory to provide information about a vulnerability in ASP.NET 6.0, ASP.NET 7.0 and, ASP.NET 8.0 . This advisory also provides guidance on what developers can do to update their applications to address this vulnerability.

A vulnerability exists in ASP.NET applications using SignalR where a malicious client can result in a denial-of-service.

Announcement

Announcement for this issue can be found at https://github.com/dotnet/announcements/issues/295

Mitigation factors

Microsoft has not identified any mitigating factors for this vulnerability.

Affected software

  • Any .NET 6.0 application running on .NET 6.0.26 or earlier.
  • Any .NET 7.0 application running on .NET 7.0.15 or earlier.
  • Any .NET 8.0 application running on .NET 8.0.1 or earlier.

Affected Packages

The vulnerability affects any Microsoft .NET Core project if it uses any of affected packages versions listed below

ASP.NET 6.0

ASP.NET 7.0

ASP.NET 8.0

Advisory FAQ

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 or affected packages , you're exposed to the vulnerability.

How do I fix the issue?

  • To fix the issue please install the latest version of .NET 8.0 or .NET 7.0 or .NET 6.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 --info command. You will see output like the following;
.NET Core SDK (reflecting any global.json):

 Version:   6.0.200
 Commit:    8473146e7d

Runtime Environment:

 OS Name:     Windows
 OS Version:  10.0.18363
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\6.0.300\

Host (useful for support):

  Version: 6.0.5
  Commit:  8473146e7d

.NET Core SDKs installed:

  6.0.200 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:

  Microsoft.AspNetCore.App 6.0.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 6.0.5 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

.NET 6.0, .NET 7.0 and, .NET 8.0 updates are also available from Microsoft Update. To access this either type "Check for updates" in your Windows search, or open Settings, choose Update & Security and then click Check for Updates.

Once you have installed the updated runtime or SDK, restart your apps for the update to take effect.

Additionally, if you've deployed self-contained applications targeting any of the impacted versions, these applications are also vulnerable and must be recompiled and redeployed.

Other Information

Reporting Security Issues

If you have found a potential security issue in .NET 8.0 or .NET 7.0 or .NET 6.0, please email details to [email protected]. Reports may qualify for the Microsoft .NET Core & .NET 5 Bounty. Details of the Microsoft .NET Bounty Program including terms and conditions are at https://aka.ms/corebounty.

Support

You can ask questions about this issue on GitHub in the .NET GitHub organization. The main repos are located at https://github.com/dotnet/runtime and https://github.com/dotnet/aspnet/. The Announcements repo (https://github.com/dotnet/Announcements) will contain this bulletin as an issue and will include a link to a discussion issue. You can ask questions in the linked discussion issue.

Disclaimer

The information provided in this advisory is provided "as is" without warranty of any kind. Microsoft disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Microsoft Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Microsoft Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.

External Links

CVE-2024-21386

Revisions

V1.0 (February 13, 2024): Advisory published.

Version 1.0

Last Updated 2024-02-13

Impact

Crafted input forces the application to consume excessive CPU, memory, or other resources, degrading or denying service. Typical impact: denial of service.

CVE-2024-21386 has a CVSS score of 7.5 (High). The vector is network-reachable, no privileges required, and no user interaction. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (6.0.27, 7.0.16, 8.0.2); upgrading removes the vulnerable code path.

Affected versions

Microsoft.AspNetCore.App.Runtime.linux-arm (<= 6.0.26) Microsoft.AspNetCore.App.Runtime.linux-arm64 (<= 6.0.26) Microsoft.AspNetCore.App.Runtime.linux-musl-arm (<= 6.0.26) Microsoft.AspNetCore.App.Runtime.linux-musl-arm64 (<= 6.0.26) Microsoft.AspNetCore.App.Runtime.linux-musl-x64 (<= 6.0.26) Microsoft.AspNetCore.App.Runtime.linux-x64 (<= 6.0.26) Microsoft.AspNetCore.App.Runtime.osx-arm64 (<= 6.0.26) Microsoft.AspNetCore.App.Runtime.osx-x64 (<= 6.0.26) Microsoft.AspNetCore.App.Runtime.win-arm (<= 6.0.26) Microsoft.AspNetCore.App.Runtime.win-arm64 (<= 6.0.26) Microsoft.AspNetCore.App.Runtime.win-x64 (<= 6.0.26) Microsoft.AspNetCore.App.Runtime.win-x86 (<= 6.0.26) Microsoft.AspNetCore.App.Runtime.linux-arm (>= 7.0.0, <= 7.0.15) Microsoft.AspNetCore.App.Runtime.linux-arm64 (>= 7.0.0, <= 7.0.15) Microsoft.AspNetCore.App.Runtime.linux-musl-arm (>= 7.0.0, <= 7.0.15) Microsoft.AspNetCore.App.Runtime.linux-musl-arm64 (>= 7.0.0, <= 7.0.15) Microsoft.AspNetCore.App.Runtime.linux-musl-x64 (>= 7.0.0, <= 7.0.15) Microsoft.AspNetCore.App.Runtime.linux-x64 (>= 7.0.0, <= 7.0.15) Microsoft.AspNetCore.App.Runtime.osx-arm64 (>= 7.0.0, <= 7.0.15) Microsoft.AspNetCore.App.Runtime.osx-x64 (>= 7.0.0, <= 7.0.15) Microsoft.AspNetCore.App.Runtime.win-arm (>= 7.0.0, <= 7.0.15) Microsoft.AspNetCore.App.Runtime.win-arm64 (>= 7.0.0, <= 7.0.15) Microsoft.AspNetCore.App.Runtime.win-x64 (>= 7.0.0, <= 7.0.15) Microsoft.AspNetCore.App.Runtime.win-x86 (>= 7.0.0, <= 7.0.15) Microsoft.AspNetCore.App.Runtime.linux-arm (>= 8.0.0, <= 8.0.1) Microsoft.AspNetCore.App.Runtime.linux-arm64 (>= 8.0.0, <= 8.0.1) Microsoft.AspNetCore.App.Runtime.linux-musl-arm (>= 8.0.0, <= 8.0.1) Microsoft.AspNetCore.App.Runtime.linux-musl-arm64 (>= 8.0.0, <= 8.0.1) Microsoft.AspNetCore.App.Runtime.linux-musl-x64 (>= 8.0.0, <= 8.0.1) Microsoft.AspNetCore.App.Runtime.linux-x64 (>= 8.0.0, <= 8.0.1) Microsoft.AspNetCore.App.Runtime.osx-arm64 (>= 8.0.0, <= 8.0.1) Microsoft.AspNetCore.App.Runtime.osx-x64 (>= 8.0.0, <= 8.0.1) Microsoft.AspNetCore.App.Runtime.win-arm (>= 8.0.0, <= 8.0.1) Microsoft.AspNetCore.App.Runtime.win-arm64 (>= 8.0.0, <= 8.0.1) Microsoft.AspNetCore.App.Runtime.win-x64 (>= 8.0.0, <= 8.0.1) Microsoft.AspNetCore.App.Runtime.win-x86 (>= 8.0.0, <= 8.0.1)

Security releases

Microsoft.AspNetCore.App.Runtime.linux-arm → 6.0.27 (nuget) Microsoft.AspNetCore.App.Runtime.linux-arm64 → 6.0.27 (nuget) Microsoft.AspNetCore.App.Runtime.linux-musl-arm → 6.0.27 (nuget) Microsoft.AspNetCore.App.Runtime.linux-musl-arm64 → 6.0.27 (nuget) Microsoft.AspNetCore.App.Runtime.linux-musl-x64 → 6.0.27 (nuget) Microsoft.AspNetCore.App.Runtime.linux-x64 → 6.0.27 (nuget) Microsoft.AspNetCore.App.Runtime.osx-arm64 → 6.0.27 (nuget) Microsoft.AspNetCore.App.Runtime.osx-x64 → 6.0.27 (nuget) Microsoft.AspNetCore.App.Runtime.win-arm → 6.0.27 (nuget) Microsoft.AspNetCore.App.Runtime.win-arm64 → 6.0.27 (nuget) Microsoft.AspNetCore.App.Runtime.win-x64 → 6.0.27 (nuget) Microsoft.AspNetCore.App.Runtime.win-x86 → 6.0.27 (nuget) Microsoft.AspNetCore.App.Runtime.linux-arm → 7.0.16 (nuget) Microsoft.AspNetCore.App.Runtime.linux-arm64 → 7.0.16 (nuget) Microsoft.AspNetCore.App.Runtime.linux-musl-arm → 7.0.16 (nuget) Microsoft.AspNetCore.App.Runtime.linux-musl-arm64 → 7.0.16 (nuget) Microsoft.AspNetCore.App.Runtime.linux-musl-x64 → 7.0.16 (nuget) Microsoft.AspNetCore.App.Runtime.linux-x64 → 7.0.16 (nuget) Microsoft.AspNetCore.App.Runtime.osx-arm64 → 7.0.16 (nuget) Microsoft.AspNetCore.App.Runtime.osx-x64 → 7.0.16 (nuget) Microsoft.AspNetCore.App.Runtime.win-arm → 7.0.16 (nuget) Microsoft.AspNetCore.App.Runtime.win-arm64 → 7.0.16 (nuget) Microsoft.AspNetCore.App.Runtime.win-x64 → 7.0.16 (nuget) Microsoft.AspNetCore.App.Runtime.win-x86 → 7.0.16 (nuget) Microsoft.AspNetCore.App.Runtime.linux-arm → 8.0.2 (nuget) Microsoft.AspNetCore.App.Runtime.linux-arm64 → 8.0.2 (nuget) Microsoft.AspNetCore.App.Runtime.linux-musl-arm → 8.0.2 (nuget) Microsoft.AspNetCore.App.Runtime.linux-musl-arm64 → 8.0.2 (nuget) Microsoft.AspNetCore.App.Runtime.linux-musl-x64 → 8.0.2 (nuget) Microsoft.AspNetCore.App.Runtime.linux-x64 → 8.0.2 (nuget) Microsoft.AspNetCore.App.Runtime.osx-arm64 → 8.0.2 (nuget) Microsoft.AspNetCore.App.Runtime.osx-x64 → 8.0.2 (nuget) Microsoft.AspNetCore.App.Runtime.win-arm → 8.0.2 (nuget) Microsoft.AspNetCore.App.Runtime.win-arm64 → 8.0.2 (nuget) Microsoft.AspNetCore.App.Runtime.win-x64 → 8.0.2 (nuget) Microsoft.AspNetCore.App.Runtime.win-x86 → 8.0.2 (nuget)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

Already deployed Kodem?

See it in your environmentNew to Kodem? Get a demo →

Remediation advice

Upgrade the following packages to resolve this vulnerability:

Microsoft.AspNetCore.App.Runtime.linux-arm to 6.0.27 or later; Microsoft.AspNetCore.App.Runtime.linux-arm64 to 6.0.27 or later; Microsoft.AspNetCore.App.Runtime.linux-musl-arm to 6.0.27 or later; Microsoft.AspNetCore.App.Runtime.linux-musl-arm64 to 6.0.27 or later; Microsoft.AspNetCore.App.Runtime.linux-musl-x64 to 6.0.27 or later; Microsoft.AspNetCore.App.Runtime.linux-x64 to 6.0.27 or later; Microsoft.AspNetCore.App.Runtime.osx-arm64 to 6.0.27 or later; Microsoft.AspNetCore.App.Runtime.osx-x64 to 6.0.27 or later; Microsoft.AspNetCore.App.Runtime.win-arm to 6.0.27 or later; Microsoft.AspNetCore.App.Runtime.win-arm64 to 6.0.27 or later; Microsoft.AspNetCore.App.Runtime.win-x64 to 6.0.27 or later; Microsoft.AspNetCore.App.Runtime.win-x86 to 6.0.27 or later; Microsoft.AspNetCore.App.Runtime.linux-arm to 7.0.16 or later; Microsoft.AspNetCore.App.Runtime.linux-arm64 to 7.0.16 or later; Microsoft.AspNetCore.App.Runtime.linux-musl-arm to 7.0.16 or later; Microsoft.AspNetCore.App.Runtime.linux-musl-arm64 to 7.0.16 or later; Microsoft.AspNetCore.App.Runtime.linux-musl-x64 to 7.0.16 or later; Microsoft.AspNetCore.App.Runtime.linux-x64 to 7.0.16 or later; Microsoft.AspNetCore.App.Runtime.osx-arm64 to 7.0.16 or later; Microsoft.AspNetCore.App.Runtime.osx-x64 to 7.0.16 or later; Microsoft.AspNetCore.App.Runtime.win-arm to 7.0.16 or later; Microsoft.AspNetCore.App.Runtime.win-arm64 to 7.0.16 or later; Microsoft.AspNetCore.App.Runtime.win-x64 to 7.0.16 or later; Microsoft.AspNetCore.App.Runtime.win-x86 to 7.0.16 or later; Microsoft.AspNetCore.App.Runtime.linux-arm to 8.0.2 or later; Microsoft.AspNetCore.App.Runtime.linux-arm64 to 8.0.2 or later; Microsoft.AspNetCore.App.Runtime.linux-musl-arm to 8.0.2 or later; Microsoft.AspNetCore.App.Runtime.linux-musl-arm64 to 8.0.2 or later; Microsoft.AspNetCore.App.Runtime.linux-musl-x64 to 8.0.2 or later; Microsoft.AspNetCore.App.Runtime.linux-x64 to 8.0.2 or later; Microsoft.AspNetCore.App.Runtime.osx-arm64 to 8.0.2 or later; Microsoft.AspNetCore.App.Runtime.osx-x64 to 8.0.2 or later; Microsoft.AspNetCore.App.Runtime.win-arm to 8.0.2 or later; Microsoft.AspNetCore.App.Runtime.win-arm64 to 8.0.2 or later; Microsoft.AspNetCore.App.Runtime.win-x64 to 8.0.2 or later; Microsoft.AspNetCore.App.Runtime.win-x86 to 8.0.2 or later

Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.

Frequently Asked Questions

  1. What is CVE-2024-21386? CVE-2024-21386 is a high-severity uncontrolled resource consumption vulnerability in Microsoft.AspNetCore.App.Runtime.linux-arm (nuget), affecting versions <= 6.0.26. It is fixed in 6.0.27, 7.0.16, 8.0.2. Crafted input forces the application to consume excessive CPU, memory, or other resources, degrading or denying service.
  2. How severe is CVE-2024-21386? CVE-2024-21386 has a CVSS score of 7.5 (High). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
  3. Which packages are affected by CVE-2024-21386?
    • Microsoft.AspNetCore.App.Runtime.linux-arm (nuget) (versions <= 6.0.26)
    • Microsoft.AspNetCore.App.Runtime.linux-arm64 (nuget) (versions <= 6.0.26)
    • Microsoft.AspNetCore.App.Runtime.linux-musl-arm (nuget) (versions <= 6.0.26)
    • Microsoft.AspNetCore.App.Runtime.linux-musl-arm64 (nuget) (versions <= 6.0.26)
    • Microsoft.AspNetCore.App.Runtime.linux-musl-x64 (nuget) (versions <= 6.0.26)
    • Microsoft.AspNetCore.App.Runtime.linux-x64 (nuget) (versions <= 6.0.26)
    • Microsoft.AspNetCore.App.Runtime.osx-arm64 (nuget) (versions <= 6.0.26)
    • Microsoft.AspNetCore.App.Runtime.osx-x64 (nuget) (versions <= 6.0.26)
    • Microsoft.AspNetCore.App.Runtime.win-arm (nuget) (versions <= 6.0.26)
    • Microsoft.AspNetCore.App.Runtime.win-arm64 (nuget) (versions <= 6.0.26)
    • Microsoft.AspNetCore.App.Runtime.win-x64 (nuget) (versions <= 6.0.26)
    • Microsoft.AspNetCore.App.Runtime.win-x86 (nuget) (versions <= 6.0.26)
  4. Is there a fix for CVE-2024-21386? Yes. CVE-2024-21386 is fixed in 6.0.27, 7.0.16, 8.0.2. Upgrade to this version or later.
  5. Is CVE-2024-21386 exploitable, and should I be worried? Whether CVE-2024-21386 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  6. What actually determines whether CVE-2024-21386 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  7. How do I fix CVE-2024-21386?
    • Upgrade Microsoft.AspNetCore.App.Runtime.linux-arm to 6.0.27 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.linux-arm64 to 6.0.27 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.linux-musl-arm to 6.0.27 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.linux-musl-arm64 to 6.0.27 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.linux-musl-x64 to 6.0.27 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.linux-x64 to 6.0.27 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.osx-arm64 to 6.0.27 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.osx-x64 to 6.0.27 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.win-arm to 6.0.27 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.win-arm64 to 6.0.27 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.win-x64 to 6.0.27 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.win-x86 to 6.0.27 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.linux-arm to 7.0.16 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.linux-arm64 to 7.0.16 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.linux-musl-arm to 7.0.16 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.linux-musl-arm64 to 7.0.16 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.linux-musl-x64 to 7.0.16 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.linux-x64 to 7.0.16 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.osx-arm64 to 7.0.16 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.osx-x64 to 7.0.16 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.win-arm to 7.0.16 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.win-arm64 to 7.0.16 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.win-x64 to 7.0.16 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.win-x86 to 7.0.16 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.linux-arm to 8.0.2 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.linux-arm64 to 8.0.2 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.linux-musl-arm to 8.0.2 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.linux-musl-arm64 to 8.0.2 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.linux-musl-x64 to 8.0.2 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.linux-x64 to 8.0.2 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.osx-arm64 to 8.0.2 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.osx-x64 to 8.0.2 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.win-arm to 8.0.2 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.win-arm64 to 8.0.2 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.win-x64 to 8.0.2 or later
    • Upgrade Microsoft.AspNetCore.App.Runtime.win-x86 to 8.0.2 or later

Other vulnerabilities in Microsoft.AspNetCore.App.Runtime.linux-arm

Stop the waste.
Protect your environment with Kodem.