CVE-2024-0056 Microsoft.Data.SqlClient and System.Data.SqlClient SQL Data Provider Security Feature Bypass Vulnerability

High 8.7 Published Updated

Attackers can bypass security features in Microsoft.Data.SqlClient and System.Data.SqlClient, potentially exposing sensitive data or weakening encryption.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-0056?

CVE-2024-0056 is a high-severity vulnerability in Microsoft .Net, published on 9 Jan 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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

Weakness: CWE-319

Which versions are affected by CVE-2024-0056?

12 open source packages ship an affected version, including Microsoft.Data.SqlClient, dotnet and dotnet-sdk. It affects 6 products.

PackageAffectedFixed in
Microsoft.Data.SqlClient NuGetAll versions2.1.7
Microsoft.Data.SqlClient NuGetAll versions2.1.7
Microsoft.Data.SqlClient NuGetFrom 3.0.03.1.5
Microsoft.Data.SqlClient NuGetFrom 3.0.03.1.5
Microsoft.Data.SqlClient NuGetFrom 4.0.04.0.5
Microsoft.Data.SqlClient NuGetFrom 4.0.04.0.5
6 more packages
Microsoft.Data.SqlClient NuGetFrom 5.0.05.1.3
Microsoft.Data.SqlClient NuGetFrom 5.0.05.1.3
dotnet BitnamiFrom 6.0.06.0.26, 7.0.15, 8.0.1
dotnet-sdk BitnamiFrom 6.0.06.0.26, 7.0.15, 8.0.1
System.Data.SqlClient NuGetAll versions4.8.6
System.Data.SqlClient NuGetAll versions4.8.6

Products include Microsoft .Net, Microsoft .Net Framework, Microsoft Microsoft.data.sqlclient, Microsoft Sql Server, Microsoft System.data.sqlclient, Microsoft Visual Studio 2022.

How do I fix CVE-2024-0056?

Upgrade Microsoft.Data.SqlClient to a fixed version for your release line: 2.1.7, 3.1.5, 4.0.5 or 5.1.3.

Is CVE-2024-0056 being exploited?

There is no known exploitation of CVE-2024-0056 in the wild and no public exploit code.

All Microsoft .Net vulnerabilities

Sources

Also known as BIT-dotnet-2024-0056, BIT-dotnet-sdk-2024-0056, CLEANSTART-2025-ZI95026, GHSA-98g6-xh36-x2p7.

Is CVE-2024-0056 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free