Microsoft.Data.SqlClient and System.Data.SqlClient SQL Data Provider Security Feature Bypass Vulnerability
🔗 CVE IDs covered (1)
📋 Description
According to the CVSS metric, the attack complexity is high (AC:H). What does that mean for this vulnerability? The attacker must inject themselves into the logical network path between the target and the resource requested by the victim to read or modify network communications. This is called a machine-in-the-middle (MITM) attack.
If I am using System.Data.SqlClient or Microsoft.Data.SqlClient, what do I need to do to be protected from this vulnerability? Customers developing applications using either the System.Data.SqlClient or Microsoft.Data.SqlClient NuGet Packages need to do the following to be protected: If you are using System.Data.SqlClient on .NET Framework you must install the January 2024 update(s) for .NET Framework If you are using System.Data.SqlClient on .NET 6, .NET 7, or .NET 8 you must update your NuGet package reference to an updated version as listed in the affected packages. If you are using Microsoft.Data.SqlClient, anywhere (.NET 6/7/8, .NET Framework) and you are using a version that is vulnerable you must update your NuGet package reference as listed in the affected packages. Please see Microsoft Security Advisory CVE 2024-0056 | .NET Information Disclosure Vulnerability. Please Note: Customers running applications that install either System.Data.SqlClient.dll or Microsoft.Data.SqlClient.dll should contact the application developer for application updates.
According to the CVSS metric, a successful exploitation could lead to a scope change (S:C). What does this mean for this vulnerability? A successful attack could exploit a vulnerability in the SQL Data Provider which allows the attacker to exploit the SQL Server.
How could an attacker exploit this vulnerability? An attacker who successfully exploited this vulnerability could carry out a machine-in-the-middle (MITM) attack and could decrypt and read or modify TLS traffic between the client and server. There is no impact to the availability of the attacked machine (A:N).
What security feature is bypassed with this vulnerability? An attacker might be able to evade the encryption used in a TLS connection.
I am running SQL Server on my system. What action do I need to take? Update your relevant version of SQL Server. Any applicable driver fixes are included in those updates. I am running my own application on my system. What action do I need to take? Update your application to use Microsoft ODBC Driver 17 (or 18) for SQL Server or Microsoft OLE DB Driver 18 (or 19). Update the drivers to the versions listed on this page, which provide protection against this vulnerability. I am running an application from a software vendor on my system. What action do I need to take? Consult with your application vendor if it is compatible with Microsoft ODBC Driver 17 (or 18) for SQL Server or Microsoft OLE DB Driver 18 (or 19). Update the drivers to the versions listed in this page, which provide protection against this vulnerability There are GDR and/or CU (Cumulative Update) updates offered for my version of SQL Server. How do I know which update to use? First, determine your SQL Server version number. For more information on determining your SQL Server version number, see Microsoft Knowledge Base Article 321185 - How to determine the version, edition, and update level of SQL Server and its components. Second, in the table below, locate your version number or the version range that your version number falls within. The corresponding update is the one you need to install. Note If your SQL Server version number is not represented in the table below, your SQL Server version is no longer supported. Please upgrade to the latest Service Pack or SQL Server product in order to apply this and future security updates. Update Number Title Apply if current product version is… This security update also includes servicing releases up through… 5033592 Security update for SQL Server 2022 CU10+GDR 16.0.4003.1 - 16.0.4095.4 KB 5031778 - SQL2022 RTM CU10 5032968 Security update for SQL Server 2022 RTM+GDR 16.0.1000.6 - 16.0.1105.1 KB 5029379 - Previous SQL2022 RTM GDR What are the GDR and CU update designations and how do they differ? The General Distribution Release (GDR) and Cumulative Update (CU) designations correspond to the two different servicing options in place for SQL Server baseline releases. A baseline can be either an RTM release or a Service Pack release. GDR updates – cumulatively only contain security updates for the given baseline. CU updates – cumulatively contain all functional fixes and security updates for the given baseline. For any given baseline, either the GDR or CU updates could be options (see below). If SQL Server installation is at a baseline version, you can choose either the GDR or CU update. If SQL Server installation has intentionally only installed past GDR updates, then choose to install the GDR update package. If SQL Server installation has intentionally installed previous CU updates, then chose to install the CU security update package. Note: You are allowed to make a change from GDR updates to CU updates ONE TIME. Once a SQL Server CU update is applied to a SQL Server installation, there is NO way to go back to the GDR update path. Can the security updates be applied to SQL Server instances on Windows Azure (IaaS)? Yes. SQL Server instances on Windows Azure (IaaS) can be offered the security updates through Microsoft Update, or customers can download the security updates from Microsoft Download Center and apply them manually.
🎯 Affected products70
- .NET 6.0
- .NET 7.0
- .NET 8.0
- Microsoft .NET Framework 2.0 Service Pack 2 on Windows Server 2008 for 32-bit Systems Service Pack 2
- Microsoft .NET Framework 2.0 Service Pack 2 on Windows Server 2008 for x64-based Systems Service Pack 2
- Microsoft .NET Framework 3.5 AND 4.7.2 on Windows 10 Version 1607 for 32-bit Systems
- Microsoft .NET Framework 3.5 AND 4.7.2 on Windows 10 Version 1607 for x64-based Systems
- Microsoft .NET Framework 3.5 AND 4.7.2 on Windows 10 Version 1809 for 32-bit Systems
- Microsoft .NET Framework 3.5 AND 4.7.2 on Windows 10 Version 1809 for ARM64-based Systems
- Microsoft .NET Framework 3.5 AND 4.7.2 on Windows 10 Version 1809 for x64-based Systems
- Microsoft .NET Framework 3.5 AND 4.7.2 on Windows Server 2016
- Microsoft .NET Framework 3.5 AND 4.7.2 on Windows Server 2016 (Server Core installation)
- Microsoft .NET Framework 3.5 AND 4.7.2 on Windows Server 2019
- Microsoft .NET Framework 3.5 AND 4.7.2 on Windows Server 2019 (Server Core installation)
- Microsoft .NET Framework 3.5 AND 4.8 on Windows 10 Version 1809 for 32-bit Systems
- Microsoft .NET Framework 3.5 AND 4.8 on Windows 10 Version 1809 for x64-based Systems
- Microsoft .NET Framework 3.5 AND 4.8 on Windows 10 Version 21H2 for 32-bit Systems
- Microsoft .NET Framework 3.5 AND 4.8 on Windows 10 Version 21H2 for ARM64-based Systems
- Microsoft .NET Framework 3.5 AND 4.8 on Windows 10 Version 21H2 for x64-based Systems
- Microsoft .NET Framework 3.5 AND 4.8 on Windows 10 Version 22H2 for 32-bit Systems
- Microsoft .NET Framework 3.5 AND 4.8 on Windows 10 Version 22H2 for ARM64-based Systems
- Microsoft .NET Framework 3.5 AND 4.8 on Windows 10 Version 22H2 for x64-based Systems
- Microsoft .NET Framework 3.5 AND 4.8 on Windows 11 version 21H2 for ARM64-based Systems
- Microsoft .NET Framework 3.5 AND 4.8 on Windows 11 version 21H2 for x64-based Systems
- Microsoft .NET Framework 3.5 AND 4.8 on Windows Server 2019
- Microsoft .NET Framework 3.5 AND 4.8 on Windows Server 2019 (Server Core installation)
- Microsoft .NET Framework 3.5 AND 4.8 on Windows Server 2022
- Microsoft .NET Framework 3.5 AND 4.8 on Windows Server 2022 (Server Core installation)
- Microsoft .NET Framework 3.5 AND 4.8.1 on Windows 10 Version 21H2 for 32-bit Systems
- Microsoft .NET Framework 3.5 AND 4.8.1 on Windows 10 Version 21H2 for ARM64-based Systems
- +40 more not shown
✅ Remediation
KB5032968 (Security Update) — fixed build 16.0.1110.1 KB5033733 (Security Update) — fixed build 6.0.26 KB5033734 (Security Update) — fixed build 7.0.15 KB5033741 (Security Update) — fixed build 8.0.1 KBRelease Notes (Security Update) — fixed build 2.1.7 KBRelease Notes (Security Update) — fixed build 3.1.5 KBRelease Notes (Security Update) — fixed build 4.0.5 KBRelease Notes (Security Update) — fixed build 5.1.3 KBRelease Notes (Security Update) — fixed build 4.8.6 KBRelease Notes (Security Update) — fixed build 17.2.23 KBRelease Notes (Security Update) — fixed build 17.4.15 KBRelease Notes (Security Update) — fixed build 17.6.11 KBRelease Notes (Security Update) — fixed build 17.8.4 KB5033592 (Security Update) — fixed build 16.0.4100.1 KB5033910 (Security Update) — fixed build 4.8.04690.02 KB5034277 (Monthly Rollup) — fixed build 4.8.04690.02 KB5034269 (Security Only) — fixed build 4.8.04690.01 KB5034278 (Monthly Rollup) — fixed build 4.8.04690.02 KB5034279 (Monthly Rollup) — fixed build 4.8.04690.02 KB5034273 (Security Update) — fixed build 4.8.04690.02 KB5034272 (Security Update) — fixed build 4.8.04690.02 KB5034276 (Security Update) — fixed build 4.8.04690.02 KB5034274 (Security Update) — fixed build 4.8.04690.02 KB5034275 (Security Update) — fixed build 4.8.04690.02 KB5034273 (Security Update) — fixed build 4.7.04081.03 KB5034119 (Security Update) — fixed build 10.0.14393.6614 KB5034269 (Security Only) — fixed build 4.7.04081.02 KB5034278 (Monthly Rollup) — fixed build 4.7.04081.03 KB5034279 (Monthly Rollup) — fixed build 3.0.50727.8976 KB5034272 (Security Update) — fixed build 4.8.09214.01 KB5034276 (Security Update) — fixed build 4.8.09214.01 KB5034274 (Security Update) — fixed build 4.8.09214.01 KB5033920 (Security Update) — fixed build 4.8.09214.01 KB5034275 (Security Update) — fixed build 4.8.09214.01 KB5034280 (Monthly Rollup) — fixed build 3.0.50727.8976 KB5034270 (Security Only) — fixed build 3.0.50727.8976
🔗 References (61)
- advisoryhttps://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-0056
- patchhttps://www.microsoft.com/download/details.aspx?familyid=7aa8e5e5-86f3-45d9-a539-af03e1ea1f63
- referencehttps://support.microsoft.com/help/5032968
- patchhttps://dotnet.microsoft.com/download/dotnet/6.0
- referencehttps://support.microsoft.com/help/5033733
- patchhttps://dotnet.microsoft.com/en-us/download/dotnet/7.0
- referencehttps://support.microsoft.com/help/5033734
- patchhttps://dotnet.microsoft.com/en-us/download/dotnet/8.0
- referencehttps://support.microsoft.com/help/5033741
- patchhttps://www.nuget.org/packages/Microsoft.Data.SqlClient/2.1.7
- referencehttps://github.com/dotnet/SqlClient/blob/main/release-notes/2.1/2.1.7.md
- patchhttps://www.nuget.org/packages/Microsoft.Data.SqlClient/3.1.5
- referencehttps://github.com/dotnet/SqlClient/blob/main/release-notes/3.1/3.1.5.md
- patchhttps://www.nuget.org/packages/Microsoft.Data.SqlClient/4.0.5
- referencehttps://github.com/dotnet/SqlClient/blob/main/release-notes/4.0/4.0.5.md
- patchhttps://www.nuget.org/packages/Microsoft.Data.SqlClient/5.1.3
- referencehttps://github.com/dotnet/SqlClient/blob/main/release-notes/5.1/5.1.3.md
- patchhttps://www.nuget.org/packages/System.Data.SqlClient/4.8.6
- referencehttps://github.com/dotnet/core/tree/main/release-notes
- patchhttps://my.visualstudio.com/Downloads?q=Visual Studio 2022 version 17.2
- referencehttps://docs.microsoft.com/en-us/visualstudio/releases/2022/release-notes
- patchhttps://my.visualstudio.com/Downloads?q=Visual Studio 2022 version 17.4
- referencehttps://learn.microsoft.com/en-us/visualstudio/releases/2022/release-notes
- patchhttps://my.visualstudio.com/Downloads?q=Visual Studio 2022 version 17.6
- patchhttps://my.visualstudio.com/Downloads?q=Visual Studio 2022 version 17.8
- patchhttps://www.microsoft.com/download/details.aspx?familyid=1c294110-fb8d-4045-9aec-706def6f151b
- referencehttps://support.microsoft.com/help/5033592
- patchhttps://catalog.update.microsoft.com/v7/site/Search.aspx?q=KB5033910
- referencehttps://support.microsoft.com/help/5033910
- patchhttps://catalog.update.microsoft.com/v7/site/Search.aspx?q=KB5033916
- referencehttps://support.microsoft.com/help/5034277
- patchhttps://catalog.update.microsoft.com/v7/site/Search.aspx?q=KB5033948
- referencehttps://support.microsoft.com/help/5034269
- patchhttps://catalog.update.microsoft.com/v7/site/Search.aspx?q=KB5033913
- referencehttps://support.microsoft.com/help/5034278
- patchhttps://catalog.update.microsoft.com/v7/site/Search.aspx?q=KB5033915
- referencehttps://support.microsoft.com/help/5034279
- patchhttps://catalog.update.microsoft.com/v7/site/Search.aspx?q=KB5033911
- referencehttps://support.microsoft.com/help/5034273
- patchhttps://catalog.update.microsoft.com/v7/site/Search.aspx?q=KB5033914
- referencehttps://support.microsoft.com/help/5034272
- patchhttps://catalog.update.microsoft.com/v7/site/Search.aspx?q=KB5033912
- referencehttps://support.microsoft.com/help/5034276
- patchhttps://catalog.update.microsoft.com/v7/site/Search.aspx?q=KB5033909
- referencehttps://support.microsoft.com/help/5034274
- referencehttps://support.microsoft.com/help/5034275
- patchhttps://catalog.update.microsoft.com/v7/site/Search.aspx?q=KB5033904
- patchhttps://catalog.update.microsoft.com/v7/site/Search.aspx?q=KB5034119
- referencehttps://support.microsoft.com/help/5034119
- patchhttps://catalog.update.microsoft.com/v7/site/Search.aspx?q=KB5033947
- patchhttps://catalog.update.microsoft.com/v7/site/Search.aspx?q=KB5033905
- patchhttps://catalog.update.microsoft.com/v7/site/Search.aspx?q=KB5033900
- patchhttps://catalog.update.microsoft.com/v7/site/Search.aspx?q=KB5033922
- patchhttps://catalog.update.microsoft.com/v7/site/Search.aspx?q=KB5033919
- patchhttps://catalog.update.microsoft.com/v7/site/Search.aspx?q=KB5033918
- patchhttps://catalog.update.microsoft.com/v7/site/Search.aspx?q=KB5033920
- referencehttps://support.microsoft.com/help/5033920
- patchhttps://catalog.update.microsoft.com/v7/site/Search.aspx?q=KB5033898
- referencehttps://support.microsoft.com/help/5034280
- patchhttps://catalog.update.microsoft.com/v7/site/Search.aspx?q=KB5033945
- referencehttps://support.microsoft.com/help/5034270