CVE-2021-26701
JSON

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 packageVersionsReported by
Microsoft .NET Core 2.1from 2.1 before publicationCVE List
Microsoft .NET Core 3.1from 3.1 before publicationCVE List
Microsoft .NET 5.0from 5.0.0 before publicationCVE List
Microsoft Microsoft Visual Studio 2019 version 16.4 (includes 16.0 - 16.3)from 16.0 before publicationCVE List
Microsoft Microsoft Visual Studio 2017 version 15.9 (includes 15.0 - 15.8)from 15.9.0 before publicationCVE List
Microsoft Microsoft Visual Studio 2019 version 16.7 (includes 16.0 – 16.6)from 16.0.0 before publicationCVE List
Microsoft Visual Studio 2019 for Macfrom 8.0.0 before publicationCVE List
Microsoft Microsoft Visual Studio 2019 version 16.8 (includes 16.0 - 16.7)from 16.0 before publicationCVE List
Microsoft Microsoft Visual Studio 2019 version 16.9 (includes 16.0 - 16.8)from 15.0.0 before publicationCVE List
Microsoft PowerShell Core 7.1from 7.1.0 before publicationCVE List
Microsoft PowerShell Core 7.0from 7.0.0 before publicationCVE 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.1GitHub Advisory Database

All scores

microsoft8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C
GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P
Bitnami Vulnerability Databasecritical 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 NameVulnerable VersionsSecure Versions
System.Text.Encodings.Web4.0.0 - 4.5.04.5.1
System.Text.Encodings.Web4.6.0-4.7.14.7.2
System.Text.Encodings.Web5.0.05.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

https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-26701advisory, patch, vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XPUKFHIGP5YNJRRFWKDJ2XRS4WTFJNNK/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TW3ZSJTTMZAFKGW7NJWTVVFZUYYU2SJZ/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WA5WQJVHUL5C4XMJTLY3C67R4WP35EF4/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YLFATXASXW4OV2ZBSRP4G55HJH73QPBP/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UBOSSX7U6BSHV5RI74FCOW4ITJ5RRJR5/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S2AZOUKMCHT2WBHR7MYDTYXWOBHZW5P5/vendor-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2021-26701advisory, web
https://github.com/dotnet/announcements/issues/178web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S2AZOUKMCHT2WBHR7MYDTYXWOBHZW5P5web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TW3ZSJTTMZAFKGW7NJWTVVFZUYYU2SJZweb
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UBOSSX7U6BSHV5RI74FCOW4ITJ5RRJR5web

Sources

SourceRecordLicence
CVE ListCVE-2021-26701 changed 2026-05-28CVE Terms of Use
GitHub Advisory DatabaseGHSA-ghhp-997w-qr28 changed 2024-12-07CC-BY-4.0
NVDCVE-2021-26701 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-DOTNET-2021-26701 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-DOTNET-SDK-2021-26701 changed 2026-09-08Apache-2.0