8.1high
.NET Core Remote Code Execution Vulnerability
- Severity
- 8.1high CVSS:3.1 by microsoft
- Exploit likelihood
- 30.1% (higher than 98% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- microsoft
- Also known as
- GHSA-ghhp-997w-qr28BIT-DOTNET-2021-26701BIT-DOTNET-SDK-2021-26701
Description
.NET Core Remote Code Execution Vulnerability
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Microsoft .NET Core 2.1 | from 2.1 before publication | CVE List |
| Microsoft .NET Core 3.1 | from 3.1 before publication | CVE List |
| Microsoft .NET 5.0 | from 5.0.0 before publication | CVE List |
| Microsoft Microsoft Visual Studio 2019 version 16.4 (includes 16.0 - 16.3) | from 16.0 before publication | CVE List |
| Microsoft Microsoft Visual Studio 2017 version 15.9 (includes 15.0 - 15.8) | from 15.9.0 before publication | CVE List |
| Microsoft Microsoft Visual Studio 2019 version 16.7 (includes 16.0 – 16.6) | from 16.0.0 before publication | CVE List |
| Microsoft Visual Studio 2019 for Mac | from 8.0.0 before publication | CVE List |
| Microsoft Microsoft Visual Studio 2019 version 16.8 (includes 16.0 - 16.7) | from 16.0 before publication | CVE List |
| Microsoft Microsoft Visual Studio 2019 version 16.9 (includes 16.0 - 16.8) | from 15.0.0 before publication | CVE List |
| Microsoft PowerShell Core 7.1 | from 7.1.0 before publication | CVE List |
| Microsoft PowerShell Core 7.0 | from 7.0.0 before publication | CVE List |
| System.Text.Encodings.Web (NuGet) | from 4.0.0 before 4.5.1, from 4.6.0 before 4.7.2, from 5.0.0 before 5.0.1 | GitHub Advisory Database |
| microsoft .net | from 5.0 before 5.0.4 | NVD |
| microsoft .net_core | from 2.1 before 2.1.28, from 3.1 before 3.1.15 | NVD |
| microsoft powershell_core | 7.0, 7.1 | NVD |
| microsoft visual_studio_2019 | from 16.0 up to 16.9 | NVD |
| fedoraproject fedora | 32, 33, 34 | NVD |
| dotnet (Bitnami) | from 5.0.0 before 5.0.4 | Bitnami Vulnerability Database |
| dotnet-sdk (Bitnami) | from 5.0.0 before 5.0.4 | Bitnami Vulnerability Database |
All scores
| microsoft | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C |
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| Bitnami Vulnerability Database | critical rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
.NET Core Remote Code Execution Vulnerability
GitHub Advisory Database
.NET Core Remote Code Execution Vulnerability This CVE ID is unique from CVE-2021-24112.
Executive summary
Microsoft is releasing this security advisory to provide information about a vulnerability in .NET 5.0, .NET Core 3.1, and .NET Core 2.1. This advisory also provides guidance on what developers can do to update their applications to remove this vulnerability.
A remote code execution vulnerability exists in .NET 5 and .NET Core due to how text encoding is performed.
Discussion
Discussion for this issue can be found at dotnet/runtime#49377
Mitigation factors
Microsoft has not identified any mitigating factors for this vulnerability.
Affected software
The vulnerable package is System.Text.Encodings.Web . Upgrading your package and redeploying your app should be sufficient to address this vulnerability.
Vulnerable package versions:
Any .NET 5, .NET Core, or .NET Framework based application that uses the System.Text.Encodings.Web package with a vulnerable version listed below.
| Package Name | Vulnerable Versions | Secure Versions |
|---|---|---|
| System.Text.Encodings.Web | 4.0.0 - 4.5.0 | 4.5.1 |
| System.Text.Encodings.Web | 4.6.0-4.7.1 | 4.7.2 |
| System.Text.Encodings.Web | 5.0.0 | 5.0.1 |
Please validate that each of the .NET versions you are using is in support. Security updates are only provided for supported .NET versions.
NVD (es)
Una Vulnerabilidad de Ejecución de Código Remota de .NET Core. Este ID de CVE es diferente de CVE-2021-24112
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-26701 changed 2026-05-28 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-ghhp-997w-qr28 changed 2024-12-07 | CC-BY-4.0 |
| NVD | CVE-2021-26701 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-DOTNET-2021-26701 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-DOTNET-SDK-2021-26701 changed 2026-09-08 | Apache-2.0 |