CVE-2024-0056 Microsoft.Data.SqlClient and System.Data.SqlClient SQL Data Provider Security Feature Bypass Vulnerability
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.
| Package | Affected | Fixed in |
|---|---|---|
Microsoft.Data.SqlClient NuGet | All versions | 2.1.7 |
Microsoft.Data.SqlClient NuGet | All versions | 2.1.7 |
Microsoft.Data.SqlClient NuGet | From 3.0.0 | 3.1.5 |
Microsoft.Data.SqlClient NuGet | From 3.0.0 | 3.1.5 |
Microsoft.Data.SqlClient NuGet | From 4.0.0 | 4.0.5 |
Microsoft.Data.SqlClient NuGet | From 4.0.0 | 4.0.5 |
6 more packages
Microsoft.Data.SqlClient NuGet | From 5.0.0 | 5.1.3 |
Microsoft.Data.SqlClient NuGet | From 5.0.0 | 5.1.3 |
dotnet Bitnami | From 6.0.0 | 6.0.26, 7.0.15, 8.0.1 |
dotnet-sdk Bitnami | From 6.0.0 | 6.0.26, 7.0.15, 8.0.1 |
System.Data.SqlClient NuGet | All versions | 4.8.6 |
System.Data.SqlClient NuGet | All versions | 4.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.
Other vulnerabilities in Microsoft .Net
- CVE-2024-43498 .NET and Visual Studio Remote Code Execution Vulnerability
- CVE-2024-0057 NET, .NET Framework, and Visual Studio Security Feature Bypass Vulnerability
- CVE-2026-96957 .NET Security Feature Bypass Vulnerability
- CVE-2026-69439 .NET and Visual Studio Elevation of Privilege Vulnerability
- CVE-2026-71328 .NET and Visual Studio Remote Code Execution Vulnerability
Sources
Also known as BIT-dotnet-2024-0056, BIT-dotnet-sdk-2024-0056, CLEANSTART-2025-ZI95026, GHSA-98g6-xh36-x2p7.