CVE-2019-0564: Microsoft.AspNetCore.WebSockets Denial of Service Vulnerability
HIGHCVE-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.
CVE-2019-0564 at a Glance
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).
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.
Upgrade Microsoft.AspNetCore.WebSockets to 2.2.1
Upgrade Microsoft.AspNetCore.WebSockets to 2.1.7
Upgrade Microsoft.AspNetCore.Server.Kestrel.Core to 2.1.7
Upgrade System.Net.WebSockets.WebSocketProtocol to 4.5.3
Upgrade Microsoft.NETCore.App to 2.2.1
Upgrade Microsoft.NETCore.App to 2.1.7
Upgrade Microsoft.AspNetCore.App to 2.2.1
Upgrade Microsoft.AspNetCore.App to 2.1.7
Upgrade Microsoft.AspNetCore.All to 2.2.1
Upgrade Microsoft.AspNetCore.All to 2.1.7
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
CVE-2019-0564 Affected Microsoft.AspNetCore.WebSockets Versions
10 component(s)| 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?
Which Microsoft.AspNetCore.WebSockets versions are affected?
What version fixes CVE-2019-0564?
Is Microsoft.AspNetCore.WebSockets affected?
Is Microsoft.AspNetCore.Server.Kestrel.Core affected?
What is the CVSS score of CVE-2019-0564?
What CWE is associated with CVE-2019-0564?
How can I check NuGet dependencies for CVE-2019-0564?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}