Moderate severity vulnerability that affects Microsoft.AspNetCore.All, Microsoft.AspNetCore.App, and Microsoft.AspNetCore.Server.Kestrel.CoreGHSA-cgpw-2gph-2r9g
GHSA-cgpw-2gph-2r9g is a security vulnerability in Microsoft.AspNetCore.Server.Kestrel.Core. A fix is available for Microsoft.AspNetCore.Server.Kestrel.Core — see the affected versions and patch details below.
Real-World Exposure
Microsoft.AspNetCore.Server.Kestrel.Core.NETMicrosoft.AspNetCore.All.NETMicrosoft.AspNetCore.App.NETMicrosoft.AspNetCore.Server.Kestrel.Core.NETMicrosoft.AspNetCore.AllReal-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 aware of a denial of service vulnerability in ASP.NET Core when a malformed request is terminated. An attacker who successfully exploited this vulnerability could cause a denial of service attack.
The update addresses the vulnerability by correcting how ASP.NET Core handles such requests.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| .NETNuGet | Microsoft.AspNetCore.Server.Kestrel.Core | ≥ 2.0.0&&< 2.0.4 | 2.0.4dotnet add package Microsoft.AspNetCore.Server.Kestrel.Core --version 2.0.4 |
| .NETNuGet | Microsoft.AspNetCore.All | ≥ 2.0.0&&< 2.0.9 | 2.0.9dotnet add package Microsoft.AspNetCore.All --version 2.0.9 |
| .NETNuGet | Microsoft.AspNetCore.App | ≥ 2.1.0&&< 2.1.2 | 2.1.2dotnet add package Microsoft.AspNetCore.App --version 2.1.2 |
| .NETNuGet | Microsoft.AspNetCore.Server.Kestrel.Core | ≥ 2.1.0&&< 2.1.2 | 2.1.2dotnet add package Microsoft.AspNetCore.Server.Kestrel.Core --version 2.1.2 |
| .NETNuGet | Microsoft.AspNetCore.All | ≥ 2.1.0&&< 2.1.2 | 2.1.2dotnet add package Microsoft.AspNetCore.All --version 2.1.2 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for Microsoft.AspNetCore.Server.Kestrel.Core, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update Microsoft.AspNetCore.Server.Kestrel.Core to 2.0.4 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-cgpw-2gph-2r9g 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.
Frequently Asked Questions
Is GHSA-cgpw-2gph-2r9g in your dependencies?
Find it across NuGet, including transitive dependencies.