5.9medium
ASP.NET Core Denial of Service Vulnerability
- Severity
- 5.9medium CVSS:3.1 by microsoft
- Exploit likelihood
- 5.14% (higher than 92% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- microsoft
- Also known as
- GHSA-mcwm-2wmc-6hv4BIT-DOTNET-2021-31957BIT-DOTNET-SDK-2021-31957
Description
ASP.NET Core Denial of Service Vulnerability
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Microsoft Microsoft Visual Studio 2019 version 16.4 (includes 16.0 - 16.3) | from 16.0 before 16.4.23 | CVE List |
| Microsoft Microsoft Visual Studio 2019 version 16.7 (includes 16.0 – 16.6) | from 16.0.0 before 16.7.16 | CVE List |
| Microsoft Microsoft Visual Studio 2019 version 16.9 (includes 16.0 - 16.8) | from 15.0.0 before 16.9.7 | CVE List |
| Microsoft Microsoft Visual Studio 2019 version 16.10 (includes 16.0 - 16.9) | from 16.10.0 before 16.10.1 | CVE List |
| Microsoft Visual Studio 2019 for Mac version 8.10 | from 8.1.0 before 8.10.1 | CVE List |
| Microsoft .NET Core 3.1 | from 3.1 before 3.1.16 | CVE List |
| Microsoft .NET 5.0 | from 5.0.0 before 5.0.7 | CVE List |
| Microsoft.NETCore.App.Ref (NuGet) | before 3.1.16, from 5.0.0 before 5.0.7 | GitHub Advisory Database |
| microsoft .net | from 5.0 up to 5.0.6 | NVD |
| microsoft .net_core | from 3.1 up to 3.1.15 | NVD |
| microsoft visual_studio_2019 | from 16.0 up to 16.10, 8.10 | NVD |
| fedoraproject fedora | 33, 34 | NVD |
| dotnet (Bitnami) | from 5.0.0 before 5.0.7 | Bitnami Vulnerability Database |
| dotnet-sdk (Bitnami) | from 5.0.0 before 5.0.7 | Bitnami Vulnerability Database |
All scores
| microsoft | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H/E:U/RL:O/RC:C |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
| Bitnami Vulnerability Database | high rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
ASP.NET Core Denial of Service Vulnerability
GitHub Advisory Database
Withdrawn
This advisory was initially published and mapped incorrectly to nuget Microsoft.NETCore.App.Ref. We later reanalyzed this advisory and found it does not have a direct mapping to a NuGet package. Thus we have withdrawn this advisory.
The underlying ASP.NET Core Denial of Service Vulnerability and CVE-2021-31957 remain legitimate.
Description.
Microsoft is releasing this security advisory to provide information about a vulnerability in .NET 5.0 and .NET Core 3.1. This advisory also provides guidance on what developers can do to update their applications to remove this vulnerability.
A denial of service vulnerability exists when ASP.NET Core improperly handles client disconnect. An attacker who successfully exploited this vulnerability could cause a denial of service against an ASP.NET Core web application. The vulnerability can be exploited remotely, without authentication.
Patches
-
If you're using .NET 5.0, you should download and install Runtime 5.0.7 or SDK 5.0.204 (for Visual Studio 2019 v16.8) or SDK 5.0.301 (for Visual Studio 2019 16.10) from https://dotnet.microsoft.com/download/dotnet-core/5.0.
-
If you're using .NET Core 3.1, you should download and install Runtime 3.1.16 or SDK 3.1.116 (for Visual Studio 2019 v16.4) or 3.1.410 (for Visual Studio 2019 v16.5 or later) from https://dotnet.microsoft.com/download/dotnet-core/3.1.
Other Details
- Announcement for this issue can be found at https://github.com/dotnet/announcements/issues/188
- An Issue for this can be found at https://github.com/dotnet/aspnetcore/issues/33369
- MSRC details for this can be found at https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2021-31957
NVD (es)
Una vulnerabilidad de Denegación de Servicio en ASP.NET
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-31957 changed 2026-10-07 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-mcwm-2wmc-6hv4 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2021-31957 changed 2026-10-07 | Public domain |
| Bitnami Vulnerability Database | BIT-DOTNET-2021-31957 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-DOTNET-SDK-2021-31957 changed 2026-09-08 | Apache-2.0 |