{"id":"CVE-2021-31957","aliases":["CVE-2021-31957","GHSA-mcwm-2wmc-6hv4","BIT-DOTNET-2021-31957","BIT-DOTNET-SDK-2021-31957"],"related":[],"kind":"vulnerability","state":"published","title":"ASP.NET Core Denial of Service Vulnerability","summary":"ASP.NET Core Denial of Service Vulnerability","summarySource":"cvelist","descriptions":[{"lang":"en-US","text":"ASP.NET Core Denial of Service Vulnerability","source":"cvelist"},{"lang":"en","text":"# Withdrawn\n\nThis 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.\n\nThe underlying ASP.NET Core Denial of Service Vulnerability and CVE-2021-31957 remain legitimate.\n\n# Description.\n\nMicrosoft 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.\n\nA 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.\n\n\n### Patches\n\n* 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.\n\n* 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.\n\n\n\n#### Other Details\n\n- Announcement for this issue can be found at https://github.com/dotnet/announcements/issues/188\n- An Issue for this can be found at https://github.com/dotnet/aspnetcore/issues/33369\n- MSRC details for this can be found at https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2021-31957","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una vulnerabilidad de Denegación de Servicio en ASP.NET","source":"nvd"}],"published":"2021-06-08T22:46:26.000Z","modified":"2026-10-07T17:16:42.677Z","severity":{"scorer":"microsoft","scheme":"CVSS:3.1","vector":"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","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"microsoft","scheme":"CVSS:3.1","vector":"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","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"type":"custom","introduced":"16.0","fixed":"16.4.23","status":"affected"}],"vendor":"Microsoft","product":"Microsoft Visual Studio 2019 version 16.4 (includes 16.0 - 16.3)","cpe":"cpe:2.3:a:microsoft:visual_studio_2019:*:*:*:*:*:*:*:*","platforms":["Unknown"],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"16.0.0","fixed":"16.7.16","status":"affected"}],"vendor":"Microsoft","product":"Microsoft Visual Studio 2019 version 16.7 (includes 16.0 – 16.6)","cpe":"cpe:2.3:a:microsoft:visual_studio_2019:*:*:*:*:*:*:*:*","platforms":["Unknown"],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"15.0.0","fixed":"16.9.7","status":"affected"}],"vendor":"Microsoft","product":"Microsoft Visual Studio 2019 version 16.9 (includes 16.0 - 16.8)","cpe":"cpe:2.3:a:microsoft:visual_studio_2019:16.9:*:*:*:*:*:*:*","platforms":["Unknown"],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"16.10.0","fixed":"16.10.1","status":"affected"}],"vendor":"Microsoft","product":"Microsoft Visual Studio 2019 version 16.10 (includes 16.0 - 16.9)","cpe":"cpe:2.3:a:microsoft:visual_studio_2019:*:*:*:*:*:*:*:*","platforms":["Unknown"],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"8.1.0","fixed":"8.10.1","status":"affected"}],"vendor":"Microsoft","product":"Visual Studio 2019 for Mac version 8.10","cpe":"cpe:2.3:a:microsoft:visual_studio_2019:8.10:*:*:*:*:macos:*:*","platforms":["Unknown"],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"3.1","fixed":"3.1.16","status":"affected"}],"vendor":"Microsoft","product":".NET Core 3.1","cpe":"cpe:2.3:a:microsoft:.net_core:*:*:*:*:*:*:*:*","platforms":["Unknown"],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"5.0.0","fixed":"5.0.7","status":"affected"}],"vendor":"Microsoft","product":".NET 5.0","cpe":"cpe:2.3:a:microsoft:.net:*:*:*:*:*:*:*:*","platforms":["Unknown"],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.1.16"}],"ecosystem":"NuGet","package":"Microsoft.NETCore.App.Ref","purl":"pkg:nuget/Microsoft.NETCore.App.Ref","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0","status":"affected","fixed":"5.0.7"}],"ecosystem":"NuGet","package":"Microsoft.NETCore.App.Ref","purl":"pkg:nuget/Microsoft.NETCore.App.Ref","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"5.0","lastAffected":"5.0.6"}],"vendor":"microsoft","product":".net","cpe":"cpe:2.3:a:microsoft:.net:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"3.1","lastAffected":"3.1.15"}],"vendor":"microsoft","product":".net_core","cpe":"cpe:2.3:a:microsoft:.net_core:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"16.0","lastAffected":"16.10"},{"status":"affected","version":"8.10"}],"vendor":"microsoft","product":"visual_studio_2019","cpe":"cpe:2.3:a:microsoft:visual_studio_2019:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"33"},{"status":"affected","version":"34"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"5.0.0","status":"affected","fixed":"5.0.7"}],"ecosystem":"Bitnami","package":"dotnet","purl":"pkg:bitnami/dotnet","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"5.0.0","status":"affected","fixed":"5.0.7"}],"ecosystem":"Bitnami","package":"dotnet-sdk","purl":"pkg:bitnami/dotnet-sdk","source":"bitnami"}],"references":[{"url":"https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-31957","tags":["advisory","patch","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PMHWHRRYDHKM6BIINW5V7OCSW4SDWB4W/","tags":["vendor-advisory","web","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4PRVVLXXQEF4SEJOBV3VRJHGX7YHY2CG/","tags":["vendor-advisory","web","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VMAO4NG2OQ4PCXUQWMNSCMYWLIJJY6UY/","tags":["vendor-advisory","web","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CVCDYIP4A6DDRT7G6P3ZW6PKNK2DNWJ2/","tags":["vendor-advisory","web","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/dotnet/aspnetcore/security/advisories/GHSA-mcwm-2wmc-6hv4","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31957","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/dotnet/aspnetcore","tags":["package"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4PRVVLXXQEF4SEJOBV3VRJHGX7YHY2CG","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CVCDYIP4A6DDRT7G6P3ZW6PKNK2DNWJ2","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PMHWHRRYDHKM6BIINW5V7OCSW4SDWB4W","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VMAO4NG2OQ4PCXUQWMNSCMYWLIJJY6UY","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"microsoft","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-07T16:11:27.626Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-31957","url":"https://www.cve.org/CVERecord?id=CVE-2021-31957","licence":"CVE Terms of Use","modified":"2026-10-07T16:12:06.426Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mcwm-2wmc-6hv4","url":"https://github.com/advisories/GHSA-mcwm-2wmc-6hv4","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:16.891Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-31957","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31957","licence":"Public domain","modified":"2026-10-07T17:16:42.677Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-DOTNET-2021-31957","url":"https://osv.dev/vulnerability/BIT-DOTNET-2021-31957","licence":"Apache-2.0","modified":"2026-09-08T08:46:48.256Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-DOTNET-SDK-2021-31957","url":"https://osv.dev/vulnerability/BIT-DOTNET-SDK-2021-31957","licence":"Apache-2.0","modified":"2026-09-08T08:46:42.879Z"}],"updatedAt":"2026-11-25T22:58:01.710Z","epss":{"score":0.05138,"percentile":0.92583,"date":"2026-12-01T12:00:22.000Z"}}