Skip to content
OpenAdvisories
High MSRC-CVE-2024-0056 1 CVE

Microsoft.Data.SqlClient and System.Data.SqlClient SQL Data Provider Security Feature Bypass Vulnerability

Published Jan 9, 2024 · Updated Feb 13, 2024 · Revision 4

Summary

Impact: Security Feature Bypass. Microsoft rating: Important. Not known to be exploited — Exploitation Less Likely. Customer action: Required.

Details

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.
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.
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
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.
5033592: 5033592, Security update for SQL Server 2022 CU10+GDR: Security update for SQL Server 2022 CU10+GDR, 16.0.4003.1 - 16.0.4095.4: 16.0.4003.1 - 16.0.4095.4, KB 5031778 - SQL2022 RTM CU10: KB 5031778 - SQL2022 RTM CU10, 5032968: 5032968, Security update for SQL Server 2022 RTM+GDR: Security update for SQL Server 2022 RTM+GDR, 16.0.1000.6 - 16.0.1105.1: 16.0.1000.6 - 16.0.1105.1, KB 5029379 - Previous SQL2022 RTM GDR: KB 5029379 - Previous SQL2022 RTM GDR
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.
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.

Security updates
16.0.1110.1 — https://support.microsoft.com/help/5032968
6.0.26 — https://support.microsoft.com/help/5033733
7.0.15 — https://support.microsoft.com/help/5033734
8.0.1 — https://support.microsoft.com/help/5033741
2.1.7 — https://github.com/dotnet/SqlClient/blob/main/release-notes/2.1/2.1.7.md
3.1.5 — https://github.com/dotnet/SqlClient/blob/main/release-notes/3.1/3.1.5.md
4.0.5 — https://github.com/dotnet/SqlClient/blob/main/release-notes/4.0/4.0.5.md
5.1.3 — https://github.com/dotnet/SqlClient/blob/main/release-notes/5.1/5.1.3.md
4.8.6 — https://github.com/dotnet/core/tree/main/release-notes
17.2.23 — https://docs.microsoft.com/en-us/visualstudio/releases/2022/release-notes
17.4.15 — https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-notes
16.0.4100.1 — https://support.microsoft.com/help/5033592
4.8.04690.02 — https://support.microsoft.com/help/5033910
4.8.04690.02 — https://support.microsoft.com/help/5034277
4.8.04690.01 — https://support.microsoft.com/help/5034269
4.8.04690.02 — https://support.microsoft.com/help/5034278
4.8.04690.02 — https://support.microsoft.com/help/5034279
4.8.04690.02 — https://support.microsoft.com/help/5034273
4.8.04690.02 — https://support.microsoft.com/help/5034272
4.8.04690.02 — https://support.microsoft.com/help/5034276
4.8.04690.02 — https://support.microsoft.com/help/5034274
4.8.04690.02 — https://support.microsoft.com/help/5034275
10.0.14393.6614 — https://support.microsoft.com/help/5034119
4.8.09214.01 — https://support.microsoft.com/help/5033920
3.0.50727.8976 — https://support.microsoft.com/help/5034280

Vulnerabilities 1

Revision history

  1. #4

    To address a known issue with a broken link, corrected Download links in the Security Updates table. This is an informational change only.

  2. #3

    Corrected Download links in the Security Updates table. This is an informational change only.

  3. #2

    Corrected Download and Article links in the Security Updates table. This is an informational change only.

  4. #1

    Information published.

References