Vulnerabilities in pkg:nuget/Microsoft.AspNetCore.Http
PACKAGECVE-2020-1045 is a HIGH (CVSS 7.5) cookie parsing failure vulnerability (General Security Weakness) affecting Microsoft.AspNetCore.Http libraries in the NuGet ecosystem. The issue involves cookie parsing failure. Remediation is available by upgrading affected packages to version 2.1.22, 4.1.1, 3.1.8.
pkg:nuget/Microsoft.AspNetCore.Http
Vulnerability advisories affecting package pkg:nuget/Microsoft.AspNetCore.Http. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-hxrm-9w7p-39cc | CVE-2020-1045 | HIGH | Cookie parsing failure |
CVE-2020-1045 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.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2020-1045
To remediate this vulnerability, upgrade all affected Microsoft.AspNetCore.Http 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.Http to 2.1.22
Upgrade Microsoft.AspNetCore.App to 2.1.22
Upgrade Microsoft.Owin to 4.1.1
Upgrade Microsoft.AspNetCore.App.Runtime.linux-arm to 3.1.8
Upgrade Microsoft.AspNetCore.App.Runtime.linux-arm64 to 3.1.8
Upgrade Microsoft.AspNetCore.App.Runtime.linux-musl-x64 to 3.1.8
Upgrade Microsoft.AspNetCore.App.Runtime.linux-x64 to 3.1.8
Upgrade Microsoft.AspNetCore.App.Runtime.osx-x64 to 3.1.8
Upgrade Microsoft.AspNetCore.App.Runtime.win-arm to 3.1.8
Upgrade Microsoft.AspNetCore.App.Runtime.win-x64 to 3.1.8
Upgrade Microsoft.AspNetCore.App.Runtime.win-x86 to 3.1.8
Upgrade Microsoft.AspNetCore.App.Runtime.linux-musl-arm64 to 3.1.8
Upgrade Microsoft.AspNetCore.App.Runtime.win-arm64 to 3.1.8
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for Microsoft.AspNetCore.Http
How to Check if You Are Affected
To determine whether your application is affected by CVE-2020-1045, inspect your project dependencies for Microsoft.AspNetCore.Http:
inspect dependencies for Microsoft.AspNetCore.Http
Analyze the terminal output to locate any version of Microsoft.AspNetCore.Http in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.1.22), 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.Http, 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-2020-1045 Affected Microsoft.AspNetCore.Http Versions
13 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
Microsoft.AspNetCore.Http
|
NuGet |
< 2.1.22
|
2.1.22
|
|
Microsoft.AspNetCore.App
|
NuGet |
< 2.1.22
|
2.1.22
|
|
Microsoft.Owin
|
NuGet |
< 4.1.1
|
4.1.1
|
|
Microsoft.AspNetCore.App.Runtime.linux-arm
|
NuGet |
≥ 3.1.0
< 3.1.8
|
3.1.8
|
|
Microsoft.AspNetCore.App.Runtime.linux-arm64
|
NuGet |
≥ 3.1.0
< 3.1.8
|
3.1.8
|
|
Microsoft.AspNetCore.App.Runtime.linux-musl-x64
|
NuGet |
≥ 3.1.0
< 3.1.8
|
3.1.8
|
|
Microsoft.AspNetCore.App.Runtime.linux-x64
|
NuGet |
≥ 3.1.0
< 3.1.8
|
3.1.8
|
|
Microsoft.AspNetCore.App.Runtime.osx-x64
|
NuGet |
≥ 3.1.0
< 3.1.8
|
3.1.8
|
|
Microsoft.AspNetCore.App.Runtime.win-arm
|
NuGet |
≥ 3.1.0
< 3.1.8
|
3.1.8
|
|
Microsoft.AspNetCore.App.Runtime.win-x64
|
NuGet |
≥ 3.1.0
< 3.1.8
|
3.1.8
|
|
Microsoft.AspNetCore.App.Runtime.win-x86
|
NuGet |
≥ 3.1.0
< 3.1.8
|
3.1.8
|
|
Microsoft.AspNetCore.App.Runtime.linux-musl-arm64
|
NuGet |
≥ 3.1.0
< 3.1.8
|
3.1.8
|
|
Microsoft.AspNetCore.App.Runtime.win-arm64
|
NuGet |
≥ 3.1.5
< 3.1.8
|
3.1.8
|
References
Frequently Asked Questions
What is CVE-2020-1045?
Which Microsoft.AspNetCore.Http versions are affected?
What version fixes CVE-2020-1045?
Is Microsoft.AspNetCore.Http affected?
Is Microsoft.AspNetCore.App affected?
What is the CVSS score of CVE-2020-1045?
What CWE is associated with CVE-2020-1045?
How can I check NuGet dependencies for CVE-2020-1045?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hxrm-9w7p-39cc",
"modified" : "2022-07-07T23:06:40Z",
"published" : "2022-05-24T17:27:57Z",
"aliases" : [ "CVE-2020-1045" ],
"summary" : "Cookie parsing failure",
"details" : "A security feature bypass vulnerability exists in the way Microsoft ASP.NET Core parses encoded cookie names.The ASP.NET Core cookie parser decodes entire cookie strings which could allow a malicious attacker to set a second cookie with the name being percent encoded.The security update addresses the vulnerability by fixing the way the ASP.NET Core cookie parser handles encoded names., aka 'Microsoft ASP.NET Core Security Feature Bypass Vulnerability'.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "NuGet",
"name" : "Microsoft.AspNetCore.Http"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.1.22"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Microsoft.AspNetCore.App"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.1.22"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.1.21"
}
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Microsoft.Owin"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.1.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Microsoft.AspNetCore.App.Runtime.linux-arm"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.1.0"
}, {
"fixed" : "3.1.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Microsoft.AspNetCore.App.Runtime.linux-arm64"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.1.0"
}, {
"fixed" : "3.1.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Microsoft.AspNetCore.App.Runtime.linux-musl-x64"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.1.0"
}, {
"fixed" : "3.1.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Microsoft.AspNetCore.App.Runtime.linux-x64"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.1.0"
}, {
"fixed" : "3.1.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Microsoft.AspNetCore.App.Runtime.osx-x64"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.1.0"
}, {
"fixed" : "3.1.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Microsoft.AspNetCore.App.Runtime.win-arm"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.1.0"
}, {
"fixed" : "3.1.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Microsoft.AspNetCore.App.Runtime.win-x64"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.1.0"
}, {
"fixed" : "3.1.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Microsoft.AspNetCore.App.Runtime.win-x86"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.1.0"
}, {
"fixed" : "3.1.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Microsoft.AspNetCore.App.Runtime.linux-musl-arm64"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.1.0"
}, {
"fixed" : "3.1.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Microsoft.AspNetCore.App.Runtime.win-arm64"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.1.5"
}, {
"fixed" : "3.1.8"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-1045"
}, {
"type" : "WEB",
"url" : "https://github.com/dotnet/announcements/issues/165"
}, {
"type" : "WEB",
"url" : "https://github.com/dotnet/aspnetcore/issues/25701"
}, {
"type" : "WEB",
"url" : "https://github.com/dotnet/aspnetcore/issues/25701#issuecomment-689434477"
}, {
"type" : "WEB",
"url" : "https://github.com/github/advisory-database/issues/302"
}, {
"type" : "WEB",
"url" : "https://github.com/dotnet/aspnetcore/pull/24264"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2020:3699"
}, {
"type" : "WEB",
"url" : "https://github.com/dotnet/core/blob/main/release-notes/3.1/3.1.8/3.1.8.md#changes-in-318"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5LN2FUVBSVPGK7AU3NMLO3YR6CGONQPB"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ASICXQXS4M7MTAF6SGQMCLCA63DLCUT3"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5LN2FUVBSVPGK7AU3NMLO3YR6CGONQPB"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ASICXQXS4M7MTAF6SGQMCLCA63DLCUT3"
}, {
"type" : "WEB",
"url" : "https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2020-1045"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-RHEL8-DOTNET-1439600"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-07-07T23:06:40Z",
"nvd_published_at" : "2020-09-11T17:15:00Z"
}
}