Vulnerabilities in pkg:nuget/System.Net.WebSockets.WebSocketProtocol

PACKAGE
Advisory Identifier: GHSA-6px8-22w5-w334
Advisory Summary

CVE-2019-0564 is a HIGH (CVSS 7.5) denial of service vulnerability (General Security Weakness) affecting Microsoft.AspNetCore.WebSockets 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.2.1, 2.1.7, 4.5.3.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:nuget/System.Net.WebSockets.WebSocketProtocol

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:nuget/System.Net.WebSockets.WebSocketProtocol. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-6px8-22w5-w334 CVE-2019-0564 HIGH Denial of service in ASP.NET Core

CVE-2019-0564 at a Glance

CVE Identifier CVE-2019-0564
GHSA Identifier GHSA-6px8-22w5-w334
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification General Security Weakness
Affected Product Microsoft.AspNetCore.WebSockets
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.0/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-2019-0564

To remediate this vulnerability, upgrade all affected Microsoft.AspNetCore.WebSockets 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.WebSockets fixed: 2.2.1
Upgrade Microsoft.AspNetCore.WebSockets to 2.2.1
Microsoft.AspNetCore.WebSockets fixed: 2.1.7
Upgrade Microsoft.AspNetCore.WebSockets to 2.1.7
Microsoft.AspNetCore.Server.Kestrel.Core fixed: 2.1.7
Upgrade Microsoft.AspNetCore.Server.Kestrel.Core to 2.1.7
System.Net.WebSockets.WebSocketProtocol fixed: 4.5.3
Upgrade System.Net.WebSockets.WebSocketProtocol to 4.5.3
Microsoft.NETCore.App fixed: 2.2.1
Upgrade Microsoft.NETCore.App to 2.2.1
Microsoft.NETCore.App fixed: 2.1.7
Upgrade Microsoft.NETCore.App to 2.1.7
Microsoft.AspNetCore.App fixed: 2.2.1
Upgrade Microsoft.AspNetCore.App to 2.2.1
Microsoft.AspNetCore.App fixed: 2.1.7
Upgrade Microsoft.AspNetCore.App to 2.1.7
Microsoft.AspNetCore.All fixed: 2.2.1
Upgrade Microsoft.AspNetCore.All to 2.2.1
Microsoft.AspNetCore.All fixed: 2.1.7
Upgrade Microsoft.AspNetCore.All to 2.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.WebSockets

How to Check if You Are Affected

To determine whether your application is affected by CVE-2019-0564, inspect your project dependencies for Microsoft.AspNetCore.WebSockets:

inspect dependencies for Microsoft.AspNetCore.WebSockets

Analyze the terminal output to locate any version of Microsoft.AspNetCore.WebSockets in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.2.1), 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.WebSockets, 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." This affects ASP.NET Core 2.1. This CVE ID is unique from CVE-2019-0548.

CVE-2019-0564 Affected Microsoft.AspNetCore.WebSockets Versions

10 component(s)
Fixed Versions:
2.2.12.1.74.5.3
Product / Package Ecosystem Affected Versions Fixed Version
Microsoft.AspNetCore.WebSockets
NuGet
≥ 2.2.0
< 2.2.1
All 1 versions
2.2.0
2.2.1
Microsoft.AspNetCore.WebSockets
NuGet
≥ 2.1.0
< 2.1.7
2.1.7
Microsoft.AspNetCore.Server.Kestrel.Core
NuGet
≥ 2.1.0
< 2.1.7
2.1.7
System.Net.WebSockets.WebSocketProtocol
NuGet
≥ 4.5.0
< 4.5.3
4.5.3
Microsoft.NETCore.App
NuGet
≥ 2.2.0
< 2.2.1
All 1 versions
2.2.0
2.2.1
Microsoft.NETCore.App
NuGet
≥ 2.1.0
< 2.1.7
2.1.7
Microsoft.AspNetCore.App
NuGet
≥ 2.2.0
< 2.2.1
All 1 versions
2.2.0
2.2.1
Microsoft.AspNetCore.App
NuGet
≥ 2.1.0
< 2.1.7
2.1.7
Microsoft.AspNetCore.All
NuGet
≥ 2.2.0
< 2.2.1
All 1 versions
2.2.0
2.2.1
Microsoft.AspNetCore.All
NuGet
≥ 2.1.0
< 2.1.7
2.1.7

References

Frequently Asked Questions

What is CVE-2019-0564?
CVE-2019-0564 is a security vulnerability in Microsoft.AspNetCore.WebSockets involving Denial of service in ASP.NET Core under General Security Weakness.
Which Microsoft.AspNetCore.WebSockets versions are affected?
Affected versions include releases prior to 2.2.1, 2.1.7, 4.5.3 across affected packages: Microsoft.AspNetCore.WebSockets, Microsoft.AspNetCore.Server.Kestrel.Core, System.Net.WebSockets.WebSocketProtocol, Microsoft.NETCore.App, Microsoft.AspNetCore.App, Microsoft.AspNetCore.All.
What version fixes CVE-2019-0564?
Upgrading to 2.2.1, 2.1.7, 4.5.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Microsoft.AspNetCore.WebSockets affected?
Yes, Microsoft.AspNetCore.WebSockets is affected in releases prior to 2.2.1, 2.1.7. Upgrade your dependency to 2.2.1, 2.1.7 or later.
Is Microsoft.AspNetCore.Server.Kestrel.Core affected?
Yes, Microsoft.AspNetCore.Server.Kestrel.Core is affected in releases prior to 2.1.7. Upgrade your dependency to 2.1.7 or later.
What is the CVSS score of CVE-2019-0564?
CVE-2019-0564 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2019-0564?
CVE-2019-0564 is classified under General Security Weakness.
How can I check NuGet dependencies for CVE-2019-0564?
Run the dependency tree command: 'inspect dependencies for Microsoft.AspNetCore.WebSockets'. 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-6px8-22w5-w334",
  "modified" : "2022-07-08T19:32:43Z",
  "published" : "2022-05-14T01:41:32Z",
  "aliases" : [ "CVE-2019-0564" ],
  "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.\" This affects ASP.NET Core 2.1. This CVE ID is unique from CVE-2019-0548.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.WebSockets"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.2.0"
      }, {
        "fixed" : "2.2.1"
      } ]
    } ],
    "versions" : [ "2.2.0" ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.WebSockets"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.1.0"
      }, {
        "fixed" : "2.1.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.Server.Kestrel.Core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.1.0"
      }, {
        "fixed" : "2.1.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "System.Net.WebSockets.WebSocketProtocol"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.5.0"
      }, {
        "fixed" : "4.5.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.NETCore.App"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.2.0"
      }, {
        "fixed" : "2.2.1"
      } ]
    } ],
    "versions" : [ "2.2.0" ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.NETCore.App"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.1.0"
      }, {
        "fixed" : "2.1.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.App"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.2.0"
      }, {
        "fixed" : "2.2.1"
      } ]
    } ],
    "versions" : [ "2.2.0" ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.App"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.1.0"
      }, {
        "fixed" : "2.1.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.All"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.2.0"
      }, {
        "fixed" : "2.2.1"
      } ]
    } ],
    "versions" : [ "2.2.0" ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.All"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.1.0"
      }, {
        "fixed" : "2.1.7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-0564"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/aspnet/Announcements/issues/334"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/github/advisory-database/issues/302"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:0040"
  }, {
    "type" : "WEB",
    "url" : "https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2019-0564"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/106413"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-07-08T19:32:43Z",
    "nvd_published_at" : "2019-01-08T21:29:00Z"
  }
}