CVE-2024-0057: NET, .NET Framework, and Visual Studio Security Feature Bypass Vulnerability

Published Dec 20, 2023
·
Updated

Description Microsoft is releasing this security advisory to provide information about a vulnerability in .NET 6.0, .NET 7.0 and .NET 8.0. This advisory also provides guidance on what developers can do to update their applications to address this vulnerability.

A security feature bypass vulnerability exists when Microsoft .NET Framework-based applications use X.509 chain building APIs but do not completely validate the X.509 certificate due to a logic flaw. An attacker could present an arbitrary untrusted certificate with malformed signatures, triggering a bug in the framework. The framework will correctly report that X.509 chain building failed, but it will return an incorrect reason code for the failure. Applications which utilize this reason code to make their own chain building trust decisions may inadvertently treat this scenario as a successful chain build. This could allow an adversary to subvert the app's typical authentication logic.

Affected software NuGet & NuGet Packages - Any NuGet.exe, NuGet.CommandLine, NuGet.Packaging 6.8.0 version or earlier. - Any NuGet.exe, NuGet.CommandLine, NuGet.Packaging 6.7.0 version or earlier. - Any NuGet.exe, NuGet.CommandLine, NuGet.Packaging 6.6.1 version or earlier. - Any NuGet.exe, NuGet.CommandLine, NuGet.Packaging 6.4.2 version or earlier. - Any NuGet.exe, NuGet.CommandLine, NuGet.Packaging 6.3.3 version or earlier. - Any NuGet.exe, NuGet.CommandLine, NuGet.Packaging 6.0.5 version or earlier. - Any NuGet.exe, NuGet.CommandLine, NuGet.Packaging 5.11.5 version or earlier.

.NET SDK(s) - Any .NET SDK 6.0.126 or earlier, or 6.0.418 or earlier. - Any .NET SDK 7.0.115 or earlier, or 7.0.312 or earlier, or 7.0.405 or earlier. - Any .NET SDK 8.0.101 or earlier. Patches To fix the issue, please install the latest version of .NET 6.0, .NET 7.0 or .NET 8.0 and NuGet (NuGet.exe, NuGet.CommandLine, NuGet. Packaging versions). If you have installed one or more .NET SDKs through Visual Studio, Visual Studio will prompt you to update Visual Studio, which will also update your .NET SDKs. - If you're using NuGet.exe 6.8.0 or lower, you should download and install 6.8.1 from https://dist.nuget.org/win-x86-commandline/v6.8.1/nuget.exe. - If you're using NuGet.exe 6.7.0 or lower, you should download and install 6.7.1 from https://dist.nuget.org/win-x86-commandline/v6.7.1/nuget.exe. - If you're using NuGet.exe 6.6.1 or lower, you should download and install 6.6.2 from https://dist.nuget.org/win-x86-commandline/v6.6.2/nuget.exe. - If you're using NuGet.exe 6.4.2 or lower, you should download and install 6.4.3 from https://dist.nuget.org/win-x86-commandline/v6.4.3/nuget.exe. - If you're using NuGet.exe 6.3.3 or lower, you should download and install 6.3.4 from https://dist.nuget.org/win-x86-commandline/v6.3.4/nuget.exe. - If you're using NuGet.exe 6.0.5 or lower, you should download and install 6.0.6 from https://dist.nuget.org/win-x86-commandline/v6.0.6/nuget.exe. - If you're using NuGet.exe 5.11.5 or lower, you should download and install 5.11.6 from https://dist.nuget.org/win-x86-commandline/v5.11.6/nuget.exe. - If you're using .NET 8.0, you should download and install .NET 8.0.102 SDK (for Visual Studio 2022 v17.8) from https://dotnet.microsoft.com/download/dotnet-core/8.0 . - If you're using .NET 7.0, you should download and install SDK 7.0.116 (for Visual Studio 2022 v17.4), or SDK 7.0.313 (for Visual Studio 2022 v17.6), or 7.0.406 (for Visual Studio 2022 v17.7) from https://dotnet.microsoft.com/download/dotnet-core/7.0 . - If you're using .NET 6.0, you should download and install SDK 6.0.127 or SDK 6.0.419 (for Visual Studio 2022 v17.3) from https://dotnet.microsoft.com/download/dotnet-core/6.0 .

Other details Announcement for this issue can be found at https://github.com/NuGet/Announcements/issues/71

MSRC details for this can be found at CVE-2024-0057 - Security Update Guide - Microsoft - NET, .NET Framework, and Visual Studio Security Feature Bypass Vulnerability

Other sources

A vulnerability was found in .NET Kestrel where a Denial of Service with Client Certificates is possible.

Red Hat

Affected Software

134 affected componentsFixes available
Microsoft .NET 6.0
Microsoft .NET 8.0
Microsoft .NET 7.0
nuget/NuGet.Packaging=6.8.0
6.8.1
nuget/NuGet.CommandLine=6.8.0
6.8.1
nuget/NuGet.Packaging=6.7.0
6.7.1
nuget/NuGet.CommandLine=6.7.0
6.7.1
nuget/NuGet.Packaging>=6.6.0<6.6.2
6.6.2
nuget/NuGet.CommandLine>=6.6.0<6.6.2
6.6.2
nuget/NuGet.Packaging>=6.4.0<6.4.3
6.4.3
nuget/NuGet.CommandLine>=6.4.0<6.4.3
6.4.3
nuget/NuGet.Packaging>=6.3.0<6.3.4
6.3.4
nuget/NuGet.CommandLine>=6.3.0<6.3.4
6.3.4
nuget/NuGet.Packaging>=6.0.0<6.0.6
6.0.6
nuget/NuGet.CommandLine>=6.0.0<6.0.6
6.0.6
nuget/NuGet.Packaging>=4.6.0<5.11.6
5.11.6
nuget/NuGet.CommandLine>=4.6.0<5.11.6
5.11.6
ubuntu/dotnet6<6.0.126-0ubuntu1~22.04.1
6.0.126-0ubuntu1~22.04.1
ubuntu/dotnet6<6.0.126-0ubuntu1~23.04.1
6.0.126-0ubuntu1~23.04.1
ubuntu/dotnet6<6.0.126-0ubuntu1~23.10.1
6.0.126-0ubuntu1~23.10.1
ubuntu/dotnet6<6.0.26
6.0.26
ubuntu/dotnet7<7.0.115-0ubuntu1~22.04.1
7.0.115-0ubuntu1~22.04.1
ubuntu/dotnet7<7.0.115-0ubuntu1~23.04.1
7.0.115-0ubuntu1~23.04.1
ubuntu/dotnet7<7.0.115-0ubuntu1~23.10.1
7.0.115-0ubuntu1~23.10.1
ubuntu/dotnet7<7.0.15
7.0.15
ubuntu/dotnet8<8.0.101-8.0.1-0ubuntu1~23.10.1
8.0.101-8.0.1-0ubuntu1~23.10.1
ubuntu/dotnet8<8.0.1
8.0.1
Microsoft NuGet 17.8.0
Microsoft Nuget 17.6.0
Microsoft NuGet 17.4.0
Microsoft NuGet 5.11.0
Microsoft PowerShell 7.2
Microsoft PowerShell 7.4
Microsoft PowerShell 7.3
Microsoft Visual Studio 2019 (includes 16.0 - 16.10)=16.11
Microsoft .NET Framework=3.0
Microsoft .NET Framework=2.0
Microsoft .NET Framework=4.6.2, =4.7, =4.7.1, =4.7.2
Microsoft .NET Framework=4.8
Microsoft .NET Framework=4.8
Microsoft .NET Framework=4.6.2, =4.7, =4.7.1, =4.7.2
Microsoft .NET Framework=4.8
Microsoft .NET Framework=4.8
Microsoft .NET Framework=3.5, =4.7.2
Microsoft .NET Framework=4.6.2, =4.7, =4.7.1, =4.7.2
Microsoft .NET Framework=3.5, =4.7.2
Microsoft .NET Framework=3.5, =4.8
Microsoft .NET Framework=3.5, =4.8.1
Microsoft .NET Framework=3.5, =4.8
Microsoft .NET Framework=3.5, =4.8
Microsoft .NET Framework=3.5, =4.8.1
Microsoft .NET Framework=3.5, =4.8.1
Microsoft .NET Framework=3.5, =4.8.1
Microsoft .NET Framework=3.5, =4.8
Microsoft .NET Framework=3.5, =4.8.1
redhat/.NET SDK 6.0.126 and .NET Runtime 6.0.26 and .NET SDK 7.0.115 and .NET Runtime<7.0.15
7.0.15
Microsoft Visual Studio 2022=17.2
Microsoft Visual Studio 2022=17.4
Microsoft Visual Studio 2022=17.8
Microsoft PowerShell>=7.2<7.2.18
Microsoft PowerShell>=7.3<7.3.11
Microsoft PowerShell=7.4
Microsoft Visual Studio 2022>=17.2<17.2.23
Microsoft Visual Studio 2022>=17.4<17.4.15
Microsoft Visual Studio 2022>=17.6<17.6.11
Microsoft Visual Studio 2022>=17.8<17.8.4
All of the following
Microsoft .NET Framework>=4.8<4.8.04690.02
Any of the following
Microsoft Windows 10 1607
Microsoft Windows 10 1607
Microsoft Windows Server 2008=r2-sp1
Microsoft Windows Server 2012
Microsoft Windows Server 2012=r2
Microsoft Windows Server 2016
All of the following
Microsoft .NET Framework>=4.8<4.8.04690.01
Microsoft Windows Server 2008=r2-sp1
All of the following
Any of the following
Microsoft .NET Framework=4.6.2
Microsoft .NET Framework=4.7
Microsoft .NET Framework=4.7.1
Microsoft .NET Framework=4.7.2
Any of the following
Microsoft Windows Server 2008=r2-sp1
Microsoft Windows Server 2012
Microsoft Windows Server 2012=r2
All of the following
Any of the following
Microsoft .NET Framework=3.5
Microsoft .NET Framework=4.8.1
Any of the following
Microsoft Windows 10 1809
Microsoft Windows 10 1809
Microsoft Windows 10 21h2
Microsoft Windows 10 21h2
Microsoft Windows 10 21h2
Microsoft Windows 10 22h2
Microsoft Windows 10 22h2
Microsoft Windows 10 22h2
Microsoft Windows 11 21h2
Microsoft Windows 11 21h2
Microsoft Windows 11 22h2
Microsoft Windows 11 22h2
Microsoft Windows 11 23h2
Microsoft Windows 11 23h2
Microsoft Windows Server 2019
Microsoft Windows Server 2022
Microsoft Windows Server 2022 23h2
All of the following
Any of the following
Microsoft .NET Framework>=4.8<4.8.04690.02
Microsoft .NET Framework=3.5
Any of the following
Microsoft Windows 10 1809
Microsoft Windows 10 1809
Microsoft Windows 10 21h2
Microsoft Windows 10 21h2
Microsoft Windows 10 21h2
Microsoft Windows 10 22h2
Microsoft Windows 10 22h2
Microsoft Windows 10 22h2
Microsoft Windows 11 21h2
Microsoft Windows 11 21h2
Microsoft Windows 11 22h2
Microsoft Windows 11 22h2
Microsoft Windows Server 2019
Microsoft Windows Server 2022
Microsoft Windows Server 2022 23h2
All of the following
Any of the following
Microsoft .NET Framework=3.5
Microsoft .NET Framework=4.7.2
Any of the following
Microsoft Windows 10 1607
Microsoft Windows 10 1607
Microsoft Windows 10 1809
Microsoft Windows 10 1809
Microsoft Windows 10 1809
Microsoft Windows Server 2016
Microsoft Windows Server 2019
All of the following
Any of the following
Microsoft .NET Framework=2.0-sp2
Microsoft .NET Framework=3.0-sp2
Any of the following
Microsoft Windows Server 2008=sp2
Microsoft Windows Server 2008=sp2
Microsoft .NET>=6.0.0<6.0.26
Microsoft .NET>=7.0.0<7.0.15
Microsoft .NET=8.0.0

Event History

Jan 9, 2024
CVE Published
via Ubuntu·12:00 AM
Data Sourced
via Microsoft·08:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:00 AM
Affected Software
Updated
via Microsoft·08:00 AM
DescriptionWeakness
CVE Published
via MITRE·05:56 PM
Data Sourced
via MITRE·05:56 PM
DescriptionSeverity
Jan 12, 2024
Data Sourced
via Debian·12:29 AM
DescriptionAffected Software
Feb 13, 2024
Advisory Published
via GitHub·09:18 PM
Feb 17, 2024
Data Sourced
via Launchpad·12:52 AM
Description

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-0057?

CVE-2024-0057 has a severity rating that indicates it poses a significant risk to affected .NET versions.

2

How do I fix CVE-2024-0057?

To fix CVE-2024-0057, developers should update their applications to the latest versions of .NET 6.0, 7.0, or 8.0, as recommended by Microsoft.

3

Which versions of .NET are affected by CVE-2024-0057?

CVE-2024-0057 affects .NET versions 6.0, 7.0, and 8.0, requiring prompt updates.

4

Is there a patch available for CVE-2024-0057?

Yes, patches are available for CVE-2024-0057 through the Microsoft update guide.

5

What should developers do to mitigate the risks of CVE-2024-0057?

Developers should immediately apply the available patches and ensure their applications are compliant with the latest security standards.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203