CVE-2022-21986 — Microsoft.AspNetCore.App.…
HIGHCVE-2022-21986 is a high-severity (CVSS 7.5) vulnerability in Microsoft.AspNetCore.App.Runtime.win-x64. A fix is available for Microsoft.AspNetCore.App.Runtime.win-x64 — see the affected versions and patch details below.
.NET Denial of Service Vulnerability
Exploitation Status
No confirmed exploitation observed yet
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2022-21986.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
Microsoft.AspNetCore.App.Runtime.win-x64.NETMicrosoft.AspNetCore.App.Runtime.linux-x64.NETMicrosoft.AspNetCore.App.Runtime.win-x86.NETMicrosoft.AspNetCore.App.Runtime.osx-x64.NETMicrosoft.AspNetCore.App.Runtime.linux-musl-x64.NETMicrosoft.AspNetCore.App.Runtime.linux-arm64.NETMicrosoft.AspNetCore.App.Runtime.linux-arm.NETMicrosoft.AspNetCore.App.Runtime.win-arm64+15 moreReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects NuGet packages — download data is not available via public APIs for these ecosystems.
Description
Microsoft is releasing this security advisory to provide information about a vulnerability in .NET 6.0 and .NET 5.0. This advisory also provides guidance on what developers can do to update their applications to remove this vulnerability.
A Denial of Service vulnerability exists in .NET 6.0 and .NET 5.0 when the Kestrel web server processes certain HTTP/2 and HTTP/3 requests.
Affected Software
- Any .NET 6.0 application running on .NET 6.0.1 or lower.
- Any .NET 5.0 application running on .NET 5.0.13 or lower.
Patches
To fix the issue, please install the latest version of .NET 6.0 or .NET 5.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're using .NET Core 6.0, you should download and install Runtime 6.0.2 or SDK 6.0.102 (for Visual Studio 2022 v17.1) from https://dotnet.microsoft.com/download/dotnet-core/6.0.
-
If you're using .NET 5.0, you should download and install Runtime 5.0.14 or SDK 5.0.114 (for Visual Studio 2019 v16.8) or SDK 5.0.405 (for Visual Studio 2011 v16.11) from https://dotnet.microsoft.com/download/dotnet-core/5.0.
.NET 6.0 and .NET 5.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.
Other Details
- Announcement for this issue can be found at https://github.com/dotnet/announcements/issues/207
- An Issue for this can be found at https://github.com/dotnet/aspnetcore/issues/40072
- MSRC details for this can be found at https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2022-21986
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| .NETNuGet | Microsoft.AspNetCore.App.Runtime.win-x64 | ≥ 5.0.0&&< 5.0.14 | 5.0.14dotnet add package Microsoft.AspNetCore.App.Runtime.win-x64 --version 5.0.14 |
| .NETNuGet | Microsoft.AspNetCore.App.Runtime.linux-x64 | ≥ 5.0.0&&< 5.0.14 | 5.0.14dotnet add package Microsoft.AspNetCore.App.Runtime.linux-x64 --version 5.0.14 |
| .NETNuGet | Microsoft.AspNetCore.App.Runtime.win-x86 | ≥ 5.0.0&&< 5.0.14 | 5.0.14dotnet add package Microsoft.AspNetCore.App.Runtime.win-x86 --version 5.0.14 |
| .NETNuGet | Microsoft.AspNetCore.App.Runtime.osx-x64 | ≥ 5.0.0&&< 5.0.14 | 5.0.14dotnet add package Microsoft.AspNetCore.App.Runtime.osx-x64 --version 5.0.14 |
| .NETNuGet | Microsoft.AspNetCore.App.Runtime.linux-musl-x64 | ≥ 5.0.0&&< 5.0.14 | 5.0.14dotnet add package Microsoft.AspNetCore.App.Runtime.linux-musl-x64 --version 5.0.14 |
| .NETNuGet | Microsoft.AspNetCore.App.Runtime.linux-arm64 | ≥ 5.0.0&&< 5.0.14 | 5.0.14dotnet add package Microsoft.AspNetCore.App.Runtime.linux-arm64 --version 5.0.14 |
Affected Products
fedorafedoraproject.netmicrosoftvisual studio 2019microsoftvisual studio 2022microsoftDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for Microsoft.AspNetCore.App.Runtime.win-x64, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update Microsoft.AspNetCore.App.Runtime.win-x64 to 5.0.14 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2022-21986 is resolved across your whole dependency graph.
Workarounds
Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
| Product | Fixed in | Advisory |
|---|---|---|
| .NET Core on Red Hat Enterprise Linux | rh-dotnet50-dotnet-0:5.0.211-1.el7_9 | RHSA-2022:0499 |
| .NET Core on Red Hat Enterprise Linux | rh-dotnet60-dotnet-0:6.0.102-1.el7_9 | RHSA-2022:0500 |
| Red Hat Enterprise Linux 8 | dotnet5.0-0:5.0.211-1.el8_5 | RHSA-2022:0495 |
| Red Hat Enterprise Linux 8 | dotnet6.0-0:6.0.102-1.el8_5 | RHSA-2022:0496 |
Frequently Asked Questions
Is CVE-2022-21986 in your dependencies?
Find it across NuGet, including transitive dependencies.