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

HIGH
Advisory Identifier: GHSA-f8qx-mjcq-wfgx
CVSS 7.5
CWE-20
Published
Advisory Summary

CVE-2020-1597 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-20: Improper Input Validation) affecting Microsoft.AspNetCore.All libraries in the NuGet ecosystem. The issue involves asp.net core denial of service vulnerability. Remediation is available by upgrading affected packages to version 2.1.21, 3.1.7.

CVE-2020-1597 at a Glance

CVE Identifier CVE-2020-1597
GHSA Identifier GHSA-f8qx-mjcq-wfgx
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-20: Improper Input Validation
Affected Product Microsoft.AspNetCore.All
Package Ecosystem NuGet
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2020-1597

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.21
Upgrade Microsoft.AspNetCore.All to 2.1.21
Microsoft.AspNetCore.App fixed: 2.1.21
Upgrade Microsoft.AspNetCore.App to 2.1.21
Microsoft.AspNetCore.App.Runtime.linux-arm fixed: 3.1.7
Upgrade Microsoft.AspNetCore.App.Runtime.linux-arm to 3.1.7
Microsoft.AspNetCore.App.Runtime.linux-arm64 fixed: 3.1.7
Upgrade Microsoft.AspNetCore.App.Runtime.linux-arm64 to 3.1.7
Microsoft.AspNetCore.App.Runtime.linux-musl-arm64 fixed: 3.1.7
Upgrade Microsoft.AspNetCore.App.Runtime.linux-musl-arm64 to 3.1.7
Microsoft.AspNetCore.App.Runtime.linux-musl-x64 fixed: 3.1.7
Upgrade Microsoft.AspNetCore.App.Runtime.linux-musl-x64 to 3.1.7
Microsoft.AspNetCore.App.Runtime.linux-x64 fixed: 3.1.7
Upgrade Microsoft.AspNetCore.App.Runtime.linux-x64 to 3.1.7
Microsoft.AspNetCore.App.Runtime.osx-x64 fixed: 3.1.7
Upgrade Microsoft.AspNetCore.App.Runtime.osx-x64 to 3.1.7
Microsoft.AspNetCore.App.Runtime.win-arm fixed: 3.1.7
Upgrade Microsoft.AspNetCore.App.Runtime.win-arm to 3.1.7
Microsoft.AspNetCore.App.Runtime.win-arm64 fixed: 3.1.7
Upgrade Microsoft.AspNetCore.App.Runtime.win-arm64 to 3.1.7
Microsoft.AspNetCore.App.Runtime.win-x64 fixed: 3.1.7
Upgrade Microsoft.AspNetCore.App.Runtime.win-x64 to 3.1.7
Microsoft.AspNetCore.App.Runtime.win-x86 fixed: 3.1.7
Upgrade Microsoft.AspNetCore.App.Runtime.win-x86 to 3.1.7
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-1597, 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.21), 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. 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-1597 Affected Microsoft.AspNetCore.All Versions

12 component(s)
Fixed Versions:
2.1.213.1.7
Product / Package Ecosystem Affected Versions Fixed Version
Microsoft.AspNetCore.All
NuGet
≥ 2.1.0
< 2.1.21
2.1.21
Microsoft.AspNetCore.App
NuGet
≥ 2.1.0
< 2.1.21
2.1.21
Microsoft.AspNetCore.App.Runtime.linux-arm
NuGet
≥ 3.1.0
< 3.1.7
3.1.7
Microsoft.AspNetCore.App.Runtime.linux-arm64
NuGet
≥ 3.1.0
< 3.1.7
3.1.7
Microsoft.AspNetCore.App.Runtime.linux-musl-arm64
NuGet
≥ 3.1.0
< 3.1.7
3.1.7
Microsoft.AspNetCore.App.Runtime.linux-musl-x64
NuGet
≥ 3.1.0
< 3.1.7
3.1.7
Microsoft.AspNetCore.App.Runtime.linux-x64
NuGet
≥ 3.1.0
< 3.1.7
3.1.7
Microsoft.AspNetCore.App.Runtime.osx-x64
NuGet
≥ 3.1.0
< 3.1.7
3.1.7
Microsoft.AspNetCore.App.Runtime.win-arm
NuGet
≥ 3.1.0
< 3.1.7
3.1.7
Microsoft.AspNetCore.App.Runtime.win-arm64
NuGet
≥ 3.1.0
< 3.1.7
3.1.7
Microsoft.AspNetCore.App.Runtime.win-x64
NuGet
≥ 3.1.0
< 3.1.7
3.1.7
Microsoft.AspNetCore.App.Runtime.win-x86
NuGet
≥ 3.1.0
< 3.1.7
3.1.7

References

Frequently Asked Questions

What is CVE-2020-1597?
CVE-2020-1597 is a security vulnerability in Microsoft.AspNetCore.All involving ASP.NET Core Denial of Service Vulnerability under CWE-20: Improper Input Validation.
Which Microsoft.AspNetCore.All versions are affected?
Affected versions include releases prior to 2.1.21, 3.1.7 across affected packages: Microsoft.AspNetCore.All, Microsoft.AspNetCore.App, Microsoft.AspNetCore.App.Runtime.linux-arm, Microsoft.AspNetCore.App.Runtime.linux-arm64, Microsoft.AspNetCore.App.Runtime.linux-musl-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-arm64, Microsoft.AspNetCore.App.Runtime.win-x64, Microsoft.AspNetCore.App.Runtime.win-x86.
What version fixes CVE-2020-1597?
Upgrading to 2.1.21, 3.1.7 (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.21. Upgrade your dependency to 2.1.21 or later.
Is Microsoft.AspNetCore.App affected?
Yes, Microsoft.AspNetCore.App is affected in releases prior to 2.1.21. Upgrade your dependency to 2.1.21 or later.
What is the CVSS score of CVE-2020-1597?
CVE-2020-1597 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2020-1597?
CVE-2020-1597 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check NuGet dependencies for CVE-2020-1597?
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-f8qx-mjcq-wfgx",
  "modified" : "2022-10-24T16:40:52Z",
  "published" : "2022-05-24T17:26:01Z",
  "aliases" : [ "CVE-2020-1597" ],
  "summary" : "ASP.NET Core Denial of Service Vulnerability",
  "details" : "A denial of service vulnerability exists when ASP.NET Core improperly handles web requests, aka `ASP.NET Core Denial of Service Vulnerability`.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.App"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.1.0"
      }, {
        "fixed" : "2.1.21"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.All"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.1.0"
      }, {
        "fixed" : "2.1.21"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.App.Runtime.linux-arm"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.1.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.App.Runtime.linux-arm64"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.1.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.App.Runtime.linux-musl-arm64"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.1.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.App.Runtime.linux-musl-x64"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.1.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.App.Runtime.linux-x64"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.1.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.App.Runtime.osx-x64"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.1.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.App.Runtime.win-arm"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.1.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.App.Runtime.win-arm64"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.1.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.App.Runtime.win-x64"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.1.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.App.Runtime.win-x86"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.1.7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-1597"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/dotnet/announcements/issues/162"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WH5FQ5VT3JGHXFXOETHCTBWJUIAPGHHT"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZW4CBI26KSO3PRL3HLVVISXPPOYUHSXO"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WH5FQ5VT3JGHXFXOETHCTBWJUIAPGHHT"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZW4CBI26KSO3PRL3HLVVISXPPOYUHSXO"
  }, {
    "type" : "WEB",
    "url" : "https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2020-1597"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-10-24T16:40:52Z",
    "nvd_published_at" : "2020-08-17T19:15:00Z"
  }
}