Loading...
Skip to main content

CVE-2022-21986 — Vulnerability in...

HIGH

.NET Denial of Service Vulnerability

Published October 21, 2022Updated December 4, 2024Source: osv

Summary

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

Advisory Timeline

  • First published October 21, 2022 (1452 days ago).
  • Last revised December 4, 2024 — 774 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

NuGet
Update Microsoft.AspNetCore.App.Runtime.win-x86 to 5.0.14 or later
dotnet add package Microsoft.AspNetCore.App.Runtime.win-x86 --version 5.0.14
NuGet
Update Microsoft.AspNetCore.App.Runtime.win-arm64 to 6.0.2 or later
dotnet add package Microsoft.AspNetCore.App.Runtime.win-arm64 --version 6.0.2
NuGet
Update Microsoft.AspNetCore.App.Runtime.linux-musl-arm to 6.0.2 or later
dotnet add package Microsoft.AspNetCore.App.Runtime.linux-musl-arm --version 6.0.2
NuGet
Update Microsoft.AspNetCore.App.Runtime.linux-musl-x64 to 5.0.14 or later
dotnet add package Microsoft.AspNetCore.App.Runtime.linux-musl-x64 --version 5.0.14
NuGet
Update Microsoft.AspNetCore.App.Runtime.linux-x64 to 6.0.2 or later
dotnet add package Microsoft.AspNetCore.App.Runtime.linux-x64 --version 6.0.2
NuGet
Update Microsoft.AspNetCore.App.Runtime.linux-arm64 to 5.0.14 or later
dotnet add package Microsoft.AspNetCore.App.Runtime.linux-arm64 --version 5.0.14
NuGet
Update Microsoft.AspNetCore.App.Runtime.win-arm64 to 5.0.14 or later
dotnet add package Microsoft.AspNetCore.App.Runtime.win-arm64 --version 5.0.14
NuGet
Update Microsoft.AspNetCore.App.Runtime.linux-musl-arm64 to 5.0.14 or later
dotnet add package Microsoft.AspNetCore.App.Runtime.linux-musl-arm64 --version 5.0.14
NuGet
Update Microsoft.AspNetCore.App.Runtime.win-arm to 6.0.2 or later
dotnet add package Microsoft.AspNetCore.App.Runtime.win-arm --version 6.0.2
NuGet
Update Microsoft.AspNetCore.App.Runtime.linux-arm to 5.0.14 or later
dotnet add package Microsoft.AspNetCore.App.Runtime.linux-arm --version 5.0.14
NuGet
Update Microsoft.AspNetCore.App.Runtime.win-arm to 5.0.14 or later
dotnet add package Microsoft.AspNetCore.App.Runtime.win-arm --version 5.0.14
NuGet
Update Microsoft.AspNetCore.App.Runtime.win-x64 to 5.0.14 or later
dotnet add package Microsoft.AspNetCore.App.Runtime.win-x64 --version 5.0.14
NuGet
Update Microsoft.AspNetCore.App.Runtime.linux-arm64 to 6.0.2 or later
dotnet add package Microsoft.AspNetCore.App.Runtime.linux-arm64 --version 6.0.2
NuGet
Update Microsoft.AspNetCore.App.Runtime.linux-arm to 6.0.2 or later
dotnet add package Microsoft.AspNetCore.App.Runtime.linux-arm --version 6.0.2
NuGet
Update Microsoft.AspNetCore.App.Runtime.osx-x64 to 5.0.14 or later
dotnet add package Microsoft.AspNetCore.App.Runtime.osx-x64 --version 5.0.14
NuGet
Update Microsoft.AspNetCore.App.Runtime.linux-musl-arm64 to 6.0.2 or later
dotnet add package Microsoft.AspNetCore.App.Runtime.linux-musl-arm64 --version 6.0.2
NuGet
Update Microsoft.AspNetCore.App.Runtime.win-x86 to 6.0.2 or later
dotnet add package Microsoft.AspNetCore.App.Runtime.win-x86 --version 6.0.2
NuGet
Update Microsoft.AspNetCore.App.Runtime.linux-x64 to 5.0.14 or later
dotnet add package Microsoft.AspNetCore.App.Runtime.linux-x64 --version 5.0.14
NuGet
Update Microsoft.AspNetCore.App.Runtime.linux-musl-arm to 5.0.14 or later
dotnet add package Microsoft.AspNetCore.App.Runtime.linux-musl-arm --version 5.0.14
NuGet
Update Microsoft.AspNetCore.App.Runtime.win-x64 to 6.0.2 or later
dotnet add package Microsoft.AspNetCore.App.Runtime.win-x64 --version 6.0.2
NuGet
Update Microsoft.AspNetCore.App.Runtime.osx-x64 to 6.0.2 or later
dotnet add package Microsoft.AspNetCore.App.Runtime.osx-x64 --version 6.0.2
NuGet
Update Microsoft.AspNetCore.App.Runtime.osx-arm64 to 6.0.2 or later
dotnet add package Microsoft.AspNetCore.App.Runtime.osx-arm64 --version 6.0.2
NuGet
Update Microsoft.AspNetCore.App.Runtime.linux-musl-x64 to 6.0.2 or later
dotnet add package Microsoft.AspNetCore.App.Runtime.linux-musl-x64 --version 6.0.2

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (23)

Affects 1 ecosystem: nuget (12).

PackageEcosystemAffectedFixed In
Microsoft.AspNetCore.App.Runtime.win-x86
nuget
5.0.0, 5.0.1, 5.0.10, 5.0.11 (+10 more)5.0.14
Microsoft.AspNetCore.App.Runtime.win-arm64
nuget
6.0.0, 6.0.16.0.2
Microsoft.AspNetCore.App.Runtime.linux-musl-arm
nuget
6.0.0, 6.0.16.0.2
Microsoft.AspNetCore.App.Runtime.linux-musl-x64
nuget
5.0.0, 5.0.1, 5.0.10, 5.0.11 (+10 more)5.0.14
Microsoft.AspNetCore.App.Runtime.linux-x64
nuget
6.0.0, 6.0.16.0.2
Microsoft.AspNetCore.App.Runtime.linux-arm64
nuget
5.0.0, 5.0.1, 5.0.10, 5.0.11 (+10 more)5.0.14
Microsoft.AspNetCore.App.Runtime.win-arm64
nuget
5.0.0, 5.0.1, 5.0.10, 5.0.11 (+10 more)5.0.14
Microsoft.AspNetCore.App.Runtime.linux-musl-arm64
nuget
5.0.0, 5.0.1, 5.0.10, 5.0.11 (+10 more)5.0.14
Microsoft.AspNetCore.App.Runtime.win-arm
nuget
6.0.0, 6.0.16.0.2
Microsoft.AspNetCore.App.Runtime.linux-arm
nuget
5.0.0, 5.0.1, 5.0.10, 5.0.11 (+10 more)5.0.14
Microsoft.AspNetCore.App.Runtime.win-arm
nuget
5.0.0, 5.0.1, 5.0.10, 5.0.11 (+10 more)5.0.14
Microsoft.AspNetCore.App.Runtime.win-x64
nuget
5.0.0, 5.0.1, 5.0.10, 5.0.11 (+10 more)5.0.14
Microsoft.AspNetCore.App.Runtime.linux-arm64
nuget
6.0.0, 6.0.16.0.2
Microsoft.AspNetCore.App.Runtime.linux-arm
nuget
6.0.0, 6.0.16.0.2
Microsoft.AspNetCore.App.Runtime.osx-x64
nuget
5.0.0, 5.0.1, 5.0.10, 5.0.11 (+10 more)5.0.14
Microsoft.AspNetCore.App.Runtime.linux-musl-arm64
nuget
6.0.0, 6.0.16.0.2
Microsoft.AspNetCore.App.Runtime.win-x86
nuget
6.0.0, 6.0.16.0.2
Microsoft.AspNetCore.App.Runtime.linux-x64
nuget
5.0.0, 5.0.1, 5.0.10, 5.0.11 (+10 more)5.0.14
Microsoft.AspNetCore.App.Runtime.linux-musl-arm
nuget
5.0.1, 5.0.10, 5.0.11, 5.0.12 (+9 more)5.0.14
Microsoft.AspNetCore.App.Runtime.win-x64
nuget
6.0.0, 6.0.16.0.2
Microsoft.AspNetCore.App.Runtime.osx-x64
nuget
6.0.0, 6.0.16.0.2
Microsoft.AspNetCore.App.Runtime.osx-arm64
nuget
6.0.0, 6.0.16.0.2
Microsoft.AspNetCore.App.Runtime.linux-musl-x64
nuget
6.0.0, 6.0.16.0.2

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Frequently Asked Questions

What is CVE-2022-21986?
.NET Denial of Service Vulnerability This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
How do I check if my project is affected by CVE-2022-21986?
CVE-2022-21986 affects Microsoft.AspNetCore.App.Runtime.win-x86, Microsoft.AspNetCore.App.Runtime.win-arm64 and Microsoft.AspNetCore.App.Runtime.linux-musl-arm (and 9 more). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-21986 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
7.5

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-x459-p2rx-f8ff
BIT-dotnet-2022-21986
BIT-dotnet-sdk-2022-21986

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies