CVE-2021-31957
JSON

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 packageVersionsReported by
Microsoft Microsoft Visual Studio 2019 version 16.4 (includes 16.0 - 16.3)from 16.0 before 16.4.23CVE List
Microsoft Microsoft Visual Studio 2019 version 16.7 (includes 16.0 – 16.6)from 16.0.0 before 16.7.16CVE List
Microsoft Microsoft Visual Studio 2019 version 16.9 (includes 16.0 - 16.8)from 15.0.0 before 16.9.7CVE List
Microsoft Microsoft Visual Studio 2019 version 16.10 (includes 16.0 - 16.9)from 16.10.0 before 16.10.1CVE List
Microsoft Visual Studio 2019 for Mac version 8.10from 8.1.0 before 8.10.1CVE List
Microsoft .NET Core 3.1from 3.1 before 3.1.16CVE List
Microsoft .NET 5.0from 5.0.0 before 5.0.7CVE List
Microsoft.NETCore.App.Ref (NuGet)before 3.1.16, from 5.0.0 before 5.0.7GitHub Advisory Database
microsoft .netfrom 5.0 up to 5.0.6NVD
microsoft .net_corefrom 3.1 up to 3.1.15NVD
microsoft visual_studio_2019from 16.0 up to 16.10, 8.10NVD
fedoraproject fedora33, 34NVD

All scores

microsoft5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H/E:U/RL:O/RC:C
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:N/A:P
Bitnami Vulnerability Databasehigh rating

Classification

CWE-400

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
Other Details
NVD (es)

Una vulnerabilidad de Denegación de Servicio en ASP.NET

References

https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-31957advisory, patch, vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PMHWHRRYDHKM6BIINW5V7OCSW4SDWB4W/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4PRVVLXXQEF4SEJOBV3VRJHGX7YHY2CG/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VMAO4NG2OQ4PCXUQWMNSCMYWLIJJY6UY/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CVCDYIP4A6DDRT7G6P3ZW6PKNK2DNWJ2/vendor-advisory, web
https://github.com/dotnet/aspnetcore/security/advisories/GHSA-mcwm-2wmc-6hv4web
https://nvd.nist.gov/vuln/detail/CVE-2021-31957advisory, web
https://github.com/dotnet/aspnetcorepackage
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4PRVVLXXQEF4SEJOBV3VRJHGX7YHY2CGweb
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CVCDYIP4A6DDRT7G6P3ZW6PKNK2DNWJ2web
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PMHWHRRYDHKM6BIINW5V7OCSW4SDWB4Wweb
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VMAO4NG2OQ4PCXUQWMNSCMYWLIJJY6UYweb

Sources

SourceRecordLicence
CVE ListCVE-2021-31957 changed 2026-10-07CVE Terms of Use
GitHub Advisory DatabaseGHSA-mcwm-2wmc-6hv4 changed 2026-09-10CC-BY-4.0
NVDCVE-2021-31957 changed 2026-10-07Public domain
Bitnami Vulnerability DatabaseBIT-DOTNET-2021-31957 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-DOTNET-SDK-2021-31957 changed 2026-09-08Apache-2.0