GHSA-cgpw-2gph-2r9g: Microsoft.AspNetCore.Server.Kestrel.Core Moderate Severity Vulnerability That Affects Vulnerability

MODERATE
Published
Advisory Summary

GHSA-cgpw-2gph-2r9g is a MODERATE moderate severity vulnerability that affects vulnerability (General Security Weakness) affecting Microsoft.AspNetCore.Server.Kestrel.Core libraries in the NuGet ecosystem. The issue involves moderate severity vulnerability that affects microsoft.aspnetcore.all, microsoft.aspnetcore.app, and microsoft.aspnetcore.server.kestrel.core. Remediation is available by upgrading affected packages to version 2.0.4, 2.0.9, 2.1.2.

GHSA-cgpw-2gph-2r9g at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-cgpw-2gph-2r9g
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Microsoft.AspNetCore.Server.Kestrel.Core
Package Ecosystem NuGet
Published Date
Last Updated

How to Fix GHSA-cgpw-2gph-2r9g

To remediate this vulnerability, upgrade all affected Microsoft.AspNetCore.Server.Kestrel.Core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

Microsoft.AspNetCore.Server.Kestrel.Core fixed: 2.0.4
Upgrade Microsoft.AspNetCore.Server.Kestrel.Core to 2.0.4
Microsoft.AspNetCore.All fixed: 2.0.9
Upgrade Microsoft.AspNetCore.All to 2.0.9
Microsoft.AspNetCore.App fixed: 2.1.2
Upgrade Microsoft.AspNetCore.App to 2.1.2
Microsoft.AspNetCore.Server.Kestrel.Core fixed: 2.1.2
Upgrade Microsoft.AspNetCore.Server.Kestrel.Core to 2.1.2
Microsoft.AspNetCore.All fixed: 2.1.2
Upgrade Microsoft.AspNetCore.All to 2.1.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for Microsoft.AspNetCore.Server.Kestrel.Core

How to Check if You Are Affected

To determine whether your application is affected by GHSA-cgpw-2gph-2r9g, inspect your project dependencies for Microsoft.AspNetCore.Server.Kestrel.Core:

inspect dependencies for Microsoft.AspNetCore.Server.Kestrel.Core

Analyze the terminal output to locate any version of Microsoft.AspNetCore.Server.Kestrel.Core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.4), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Microsoft.AspNetCore.Server.Kestrel.Core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

GHSA-cgpw-2gph-2r9g Affected Microsoft.AspNetCore.Server.Kestrel.Core Versions

5 component(s)
Fixed Versions:
2.0.42.0.92.1.2
Product / Package Ecosystem Affected Versions Fixed Version
Microsoft.AspNetCore.Server.Kestrel.Core
NuGet
≥ 2.0.0
< 2.0.4
2.0.4
Microsoft.AspNetCore.All
NuGet
≥ 2.0.0
< 2.0.9
2.0.9
Microsoft.AspNetCore.App
NuGet
≥ 2.1.0
< 2.1.2
2.1.2
Microsoft.AspNetCore.Server.Kestrel.Core
NuGet
≥ 2.1.0
< 2.1.2
2.1.2
Microsoft.AspNetCore.All
NuGet
≥ 2.1.0
< 2.1.2
2.1.2

References

Frequently Asked Questions

What is GHSA-cgpw-2gph-2r9g?
GHSA-cgpw-2gph-2r9g is a security vulnerability in Microsoft.AspNetCore.Server.Kestrel.Core involving Moderate severity vulnerability that affects Microsoft.AspNetCore.All, Microsoft.AspNetCore.App, and Microsoft.AspNetCore.Server.Kestrel.Core under General Security Weakness.
Which Microsoft.AspNetCore.Server.Kestrel.Core versions are affected?
Affected versions include releases prior to 2.0.4, 2.0.9, 2.1.2 across affected packages: Microsoft.AspNetCore.Server.Kestrel.Core, Microsoft.AspNetCore.All, Microsoft.AspNetCore.App.
What version fixes GHSA-cgpw-2gph-2r9g?
Upgrading to 2.0.4, 2.0.9, 2.1.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Microsoft.AspNetCore.Server.Kestrel.Core affected?
Yes, Microsoft.AspNetCore.Server.Kestrel.Core is affected in releases prior to 2.0.4, 2.1.2. Upgrade your dependency to 2.0.4, 2.1.2 or later.
Is Microsoft.AspNetCore.All affected?
Yes, Microsoft.AspNetCore.All is affected in releases prior to 2.0.9, 2.1.2. Upgrade your dependency to 2.0.9, 2.1.2 or later.
What CWE is associated with GHSA-cgpw-2gph-2r9g?
GHSA-cgpw-2gph-2r9g is classified under General Security Weakness.
How can I check NuGet dependencies for GHSA-cgpw-2gph-2r9g?
Run the dependency tree command: 'inspect dependencies for Microsoft.AspNetCore.Server.Kestrel.Core'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-cgpw-2gph-2r9g",
  "modified" : "2021-12-03T14:28:10Z",
  "published" : "2018-10-16T19:59:59Z",
  "aliases" : [ ],
  "summary" : "Moderate severity vulnerability that affects Microsoft.AspNetCore.All, Microsoft.AspNetCore.App, and Microsoft.AspNetCore.Server.Kestrel.Core",
  "details" : "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.\n\nThe update addresses the vulnerability by correcting how ASP.NET Core handles such requests.\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.Server.Kestrel.Core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.0.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.All"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.0.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.App"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.1.0"
      }, {
        "fixed" : "2.1.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.Server.Kestrel.Core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.1.0"
      }, {
        "fixed" : "2.1.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.All"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.1.0"
      }, {
        "fixed" : "2.1.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/aspnet/Announcements/issues/311"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-cgpw-2gph-2r9g"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:31:39Z",
    "nvd_published_at" : null
  }
}