CWE
20
EPSS
0.227%
Advisory Published
CVE Published
CVE Published
Advisory Published
Updated

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

First published: Wed 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](https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-0057)

Credit: secure@microsoft.com secure@microsoft.com

Affected SoftwareAffected VersionHow to fix
Microsoft .NET Framework=3.5=4.8.1
Microsoft .NET Framework=2.0
Microsoft .NET Framework=3.5=4.8.1
Microsoft .NET Framework=4.8
Microsoft .NET Framework=4.8
Microsoft .NET Framework=3.5=4.7.2
Microsoft .NET Framework=3.5=4.8
Microsoft .NET Framework=3.5=4.7.2
Microsoft .NET Framework=3.0
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=4.6.2=4.7=4.7.1=4.7.2
Microsoft .NET Framework=3.5=4.8.1
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.6.2=4.7=4.7.1=4.7.2
Microsoft .NET 6.0
Microsoft .NET 8.0
Microsoft PowerShell 7.2
Microsoft PowerShell 7.3
Microsoft Visual Studio 2022=17.4
Microsoft Visual Studio 2022=17.8
Microsoft Visual Studio 2022=17.2
Microsoft .NET 7.0
Microsoft .NET Framework=3.5=4.8
Microsoft .NET Framework=3.5=4.8
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 2019 (includes 16.0 - 16.10)=16.11
Microsoft NuGet 17.4.0
Microsoft NuGet 5.11.0
Microsoft NuGet 17.8.0
Microsoft Nuget 17.6.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
Microsoft PowerShell 7.4
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 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
Microsoft .NET Framework>=4.8<4.8.04690.02
Any of
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
Microsoft .NET Framework>=4.8<4.8.04690.01
Microsoft Windows Server 2008=r2-sp1
All of
Any of
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
Microsoft Windows Server 2008=r2-sp1
Microsoft Windows Server 2012
Microsoft Windows Server 2012=r2
All of
Any of
Microsoft .NET Framework=3.5
Microsoft .NET Framework=4.8.1
Any of
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
Any of
Microsoft .NET Framework>=4.8<4.8.04690.02
Microsoft .NET Framework=3.5
Any of
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
Any of
Microsoft .NET Framework=3.5
Microsoft .NET Framework=4.7.2
Any of
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
Any of
Microsoft .NET Framework=2.0-sp2
Microsoft .NET Framework=3.0-sp2
Any of
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

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Parent vulnerabilities

(Appears in the following advisories)

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.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203