CVE-2020-0603: Microsoft.AspNetCore.All Remote Code Execution Vulnerability
HIGHCVE-2020-0603 is a HIGH remote code execution vulnerability (CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer) affecting Microsoft.AspNetCore.All libraries in the NuGet ecosystem. The issue involves remote code execution 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-0603 at a Glance
How to Fix CVE-2020-0603
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.
Upgrade Microsoft.AspNetCore.All to 2.1.15
Upgrade Microsoft.AspNetCore.App to 3.1.1
Upgrade Microsoft.AspNetCore.App to 3.0.1
Upgrade Microsoft.AspNetCore.App to 2.1.15
Upgrade Microsoft.AspNetCore.Http.Connections to 1.0.15
Upgrade Microsoft.AspNetCore.App.Runtime.linux-arm to 3.1.1
Upgrade Microsoft.AspNetCore.App.Runtime.linux-arm64 to 3.1.1
Upgrade Microsoft.AspNetCore.App.Runtime.linux-musl-arm64 to 3.1.1
Upgrade Microsoft.AspNetCore.App.Runtime.linux-musl-x64 to 3.1.1
Upgrade Microsoft.AspNetCore.App.Runtime.linux-x64 to 3.1.1
Upgrade Microsoft.AspNetCore.App.Runtime.osx-x64 to 3.1.1
Upgrade Microsoft.AspNetCore.App.Runtime.win-arm to 3.1.1
Upgrade Microsoft.AspNetCore.App.Runtime.win-x64 to 3.1.1
Upgrade Microsoft.AspNetCore.App.Runtime.win-x86 to 3.1.1
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-0603, 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-119: Improper Restriction of Operations within the Bounds of a Memory Buffer, where the product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. this may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data. 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
CVE-2020-0603 Affected Microsoft.AspNetCore.All Versions
14 component(s)| 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-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-0603?
Which Microsoft.AspNetCore.All versions are affected?
What version fixes CVE-2020-0603?
Is Microsoft.AspNetCore.All affected?
Is Microsoft.AspNetCore.App affected?
What CWE is associated with CVE-2020-0603?
How can I check NuGet dependencies for CVE-2020-0603?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-655q-9gvg-q4cm",
"modified" : "2022-07-07T23:10:27Z",
"published" : "2022-05-24T17:06:16Z",
"aliases" : [ "CVE-2020-0603" ],
"summary" : "Remote code execution in ASP.NET Core",
"details" : "A remote code execution vulnerability exists in ASP.NET Core software when the software fails to handle objects in memory.An attacker who successfully exploited the vulnerability could run arbitrary code in the context of the current user, aka 'ASP.NET Core Remote Code Execution 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-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-0603"
}, {
"type" : "WEB",
"url" : "https://github.com/aspnet/Announcements/issues/403"
}, {
"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-0603"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-119" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-07-07T23:10:27Z",
"nvd_published_at" : "2020-01-14T23:15:00Z"
}
}