Advisory

GHSA-ghhp-997w-qr28

Also known as: BIT-dotnet-2021-26701, BIT-dotnet-sdk-2021-26701, CVE-2021-26701

Summary

.NET Core Remote Code Execution Vulnerability

Details

.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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2021-04-21 19:38 UTC
Modified
2024-12-07 05:45 UTC

Affected packages and fixes

System.Text.Encodings.Web

NuGet · All systems

Affected

  • introduced 4.0.0, fixed 4.5.1 (ecosystem)

Fixed versions

4.5.1

Fix

The export has no generic command for this ecosystem.

System.Text.Encodings.Web

NuGet · All systems

Affected

  • introduced 4.6.0, fixed 4.7.2 (ecosystem)

Fixed versions

4.7.2

Fix

The export has no generic command for this ecosystem.

System.Text.Encodings.Web

NuGet · All systems

Affected

  • introduced 5.0.0, fixed 5.0.1 (ecosystem)

Fixed versions

5.0.1

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences