CVE-2020-0602: Microsoft.AspNetCore.All Denial of Service Vulnerability

MODERATE
Advisory Identifier: GHSA-23cv-jh4v-vffm
CWE-400
Published
Advisory Summary

CVE-2020-0602 is a MODERATE denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Microsoft.AspNetCore.All libraries in the NuGet ecosystem. The issue involves denial of service in asp.net core. Remediation is available by upgrading affected packages to version 2.1.15, 3.1.1, 3.0.1, 1.0.15.

CVE-2020-0602 at a Glance

CVE Identifier CVE-2020-0602
GHSA Identifier GHSA-23cv-jh4v-vffm
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Microsoft.AspNetCore.All
Package Ecosystem NuGet
Published Date
Last Updated

How to Fix CVE-2020-0602

To remediate this vulnerability, upgrade all affected Microsoft.AspNetCore.All 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.All fixed: 2.1.15
Upgrade Microsoft.AspNetCore.All to 2.1.15
Microsoft.AspNetCore.App fixed: 3.1.1
Upgrade Microsoft.AspNetCore.App to 3.1.1
Microsoft.AspNetCore.App fixed: 3.0.1
Upgrade Microsoft.AspNetCore.App to 3.0.1
Microsoft.AspNetCore.App fixed: 2.1.15
Upgrade Microsoft.AspNetCore.App to 2.1.15
Microsoft.AspNetCore.Http.Connections fixed: 1.0.15
Upgrade Microsoft.AspNetCore.Http.Connections to 1.0.15
Microsoft.AspNetCore.App.Runtime.linux-arm fixed: 3.1.1
Upgrade Microsoft.AspNetCore.App.Runtime.linux-arm to 3.1.1
Microsoft.AspNetCore.App.Runtime.linux-arm64 fixed: 3.1.1
Upgrade Microsoft.AspNetCore.App.Runtime.linux-arm64 to 3.1.1
Microsoft.AspNetCore.App.Runtime.linux-musl-x64 fixed: 3.1.1
Upgrade Microsoft.AspNetCore.App.Runtime.linux-musl-x64 to 3.1.1
Microsoft.AspNetCore.App.Runtime.linux-x64 fixed: 3.1.1
Upgrade Microsoft.AspNetCore.App.Runtime.linux-x64 to 3.1.1
Microsoft.AspNetCore.App.Runtime.osx-x64 fixed: 3.1.1
Upgrade Microsoft.AspNetCore.App.Runtime.osx-x64 to 3.1.1
Microsoft.AspNetCore.App.Runtime.win-arm fixed: 3.1.1
Upgrade Microsoft.AspNetCore.App.Runtime.win-arm to 3.1.1
Microsoft.AspNetCore.App.Runtime.win-x64 fixed: 3.1.1
Upgrade Microsoft.AspNetCore.App.Runtime.win-x64 to 3.1.1
Microsoft.AspNetCore.App.Runtime.win-x86 fixed: 3.1.1
Upgrade Microsoft.AspNetCore.App.Runtime.win-x86 to 3.1.1
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.All

How to Check if You Are Affected

To determine whether your application is affected by CVE-2020-0602, inspect your project dependencies for Microsoft.AspNetCore.All:

inspect dependencies for Microsoft.AspNetCore.All

Analyze the terminal output to locate any version of Microsoft.AspNetCore.All in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.1.15), 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 CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Microsoft.AspNetCore.All, 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

A denial of service vulnerability exists when ASP.NET Core improperly handles web requests, aka 'ASP.NET Core Denial of Service Vulnerability'.

CVE-2020-0602 Affected Microsoft.AspNetCore.All Versions

13 component(s)
Fixed Versions:
2.1.153.1.13.0.11.0.15
Product / Package Ecosystem Affected Versions Fixed Version
Microsoft.AspNetCore.All
NuGet
≥ 2.1.0
< 2.1.15
2.1.15
Microsoft.AspNetCore.App
NuGet
≥ 3.1.0
< 3.1.1
All 1 versions
3.1.0
3.1.1
Microsoft.AspNetCore.App
NuGet
≥ 3.0.0
< 3.0.1
All 1 versions
3.0.0
3.0.1
Microsoft.AspNetCore.App
NuGet
≥ 2.1.0
< 2.1.15
2.1.15
Microsoft.AspNetCore.Http.Connections
NuGet
≥ 1.0.0
< 1.0.15
1.0.15
Microsoft.AspNetCore.App.Runtime.linux-arm
NuGet
≥ 3.1.0
< 3.1.1
3.1.1
Microsoft.AspNetCore.App.Runtime.linux-arm64
NuGet
≥ 3.1.0
< 3.1.1
3.1.1
Microsoft.AspNetCore.App.Runtime.linux-musl-x64
NuGet
≥ 3.1.0
< 3.1.1
3.1.1
Microsoft.AspNetCore.App.Runtime.linux-x64
NuGet
≥ 3.1.0
< 3.1.1
3.1.1
Microsoft.AspNetCore.App.Runtime.osx-x64
NuGet
≥ 3.1.0
< 3.1.1
3.1.1
Microsoft.AspNetCore.App.Runtime.win-arm
NuGet
≥ 3.1.0
< 3.1.1
3.1.1
Microsoft.AspNetCore.App.Runtime.win-x64
NuGet
≥ 3.1.0
< 3.1.1
3.1.1
Microsoft.AspNetCore.App.Runtime.win-x86
NuGet
≥ 3.1.0
< 3.1.1
3.1.1

References

Frequently Asked Questions

What is CVE-2020-0602?
CVE-2020-0602 is a security vulnerability in Microsoft.AspNetCore.All involving Denial of service in ASP.NET Core under CWE-400: Uncontrolled Resource Consumption.
Which Microsoft.AspNetCore.All versions are affected?
Affected versions include releases prior to 2.1.15, 3.1.1, 3.0.1, 1.0.15 across affected packages: Microsoft.AspNetCore.All, Microsoft.AspNetCore.App, Microsoft.AspNetCore.Http.Connections, Microsoft.AspNetCore.App.Runtime.linux-arm, Microsoft.AspNetCore.App.Runtime.linux-arm64, Microsoft.AspNetCore.App.Runtime.linux-musl-x64, Microsoft.AspNetCore.App.Runtime.linux-x64, Microsoft.AspNetCore.App.Runtime.osx-x64, Microsoft.AspNetCore.App.Runtime.win-arm, Microsoft.AspNetCore.App.Runtime.win-x64, Microsoft.AspNetCore.App.Runtime.win-x86.
What version fixes CVE-2020-0602?
Upgrading to 2.1.15, 3.1.1, 3.0.1, 1.0.15 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Microsoft.AspNetCore.All affected?
Yes, Microsoft.AspNetCore.All is affected in releases prior to 2.1.15. Upgrade your dependency to 2.1.15 or later.
Is Microsoft.AspNetCore.App affected?
Yes, Microsoft.AspNetCore.App is affected in releases prior to 3.1.1, 3.0.1, 2.1.15. Upgrade your dependency to 3.1.1, 3.0.1, 2.1.15 or later.
What CWE is associated with CVE-2020-0602?
CVE-2020-0602 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check NuGet dependencies for CVE-2020-0602?
Run the dependency tree command: 'inspect dependencies for Microsoft.AspNetCore.All'. 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-23cv-jh4v-vffm",
  "modified" : "2022-07-07T23:10:46Z",
  "published" : "2022-05-24T17:06:16Z",
  "aliases" : [ "CVE-2020-0602" ],
  "summary" : "Denial of service in ASP.NET Core",
  "details" : "A denial of service vulnerability exists when ASP.NET Core improperly handles web requests, aka 'ASP.NET Core Denial of Service Vulnerability'.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.All"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.1.0"
      }, {
        "fixed" : "2.1.15"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.App"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.1.1"
      } ]
    } ],
    "versions" : [ "3.1.0" ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.App"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.0.1"
      } ]
    } ],
    "versions" : [ "3.0.0" ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.App"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.1.0"
      }, {
        "fixed" : "2.1.15"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.Http.Connections"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "1.0.15"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.App.Runtime.linux-arm"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.1.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.App.Runtime.linux-arm64"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.1.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.App.Runtime.linux-musl-x64"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.1.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.App.Runtime.linux-x64"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.1.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.App.Runtime.osx-x64"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.1.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.App.Runtime.win-arm"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.1.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.App.Runtime.win-x64"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.1.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.App.Runtime.win-x86"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.1.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-0602"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/aspnet/Announcements/issues/402"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/github/advisory-database/issues/302"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2020:0130"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2020:0134"
  }, {
    "type" : "WEB",
    "url" : "https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2020-0602"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-07-07T23:10:46Z",
    "nvd_published_at" : "2020-01-14T23:15:00Z"
  }
}