GHSA-cgpw-2gph-2r9g — Microsoft.AspNetCore.Serv…
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.
Moderate severity vulnerability that affects Microsoft.AspNetCore.All, Microsoft.AspNetCore.App, and Microsoft.AspNetCore.Server.Kestrel.Core
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
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like GHSA-cgpw-2gph-2r9g can be triaged on real exposure rather than presence alone.
Tailored to GHSA-cgpw-2gph-2r9g. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Frequently Asked Questions
Is GHSA-cgpw-2gph-2r9g in your dependencies?
O3 Security finds GHSA-cgpw-2gph-2r9g across NuGet dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.