What’s Vulnerable › Vulnerabilities
CVE-2024-0056: Microsoft.Data.SqlClient and System.Data.SqlClient SQL Data Provider Security Feature Bypass Vulnerability
- Severity: high (CVSS 8.7 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-01-09 · updated 2026-06-17
- Weakness: CWE-319
Description
Microsoft.Data.SqlClient and System.Data.SqlClient SQL Data Provider Security Feature Bypass Vulnerability
Affected products
- Microsoft .NET: from 6.0.0 before 6.0.26; from 7.0.0 before 7.0.15; 8.0.0 — fixed in 6.0.26, 7.0.15
- Microsoft .NET Framework: from 4.8 before 4.8.04690.02; from 4.8 before 4.8.04690.01; 4.6.2, 4.7, 4.7.1, 4.7.2, 3.5, 4.8.1 (+1) — fixed in 4.8.04690.01, 4.8.04690.02
- Microsoft.Data.SqlClient: from 2.1 before 2.1.7; from 3.1 before 3.1.5; from 4.0 before 4.0.5; from 5.1 before 5.1.3 — fixed in 2.1.7, 3.1.5, 4.0.5, 5.1.3
- Microsoft SQL Server: 2022, 2022-cumulative_update_10
- Microsoft System.Data.SqlClient: before 4.8.6 — fixed in 4.8.6
- Microsoft Visual Studio 2022 version 17.14: from 17.2 before 17.2.23; from 17.4 before 17.4.15; from 17.6 before 17.6.11; from 17.8 before 17.8.4 — fixed in 17.2.23, 17.4.15, 17.6.11, 17.8.4
- Microsoft .NET 6.0: from 6.0.0 before 6.0.26 — fixed in 6.0.26
- Microsoft .NET 7.0: from 7.0.0 before 7.0.15 — fixed in 7.0.15
- Microsoft .NET 8.0: from 8.0 before 8.0.1 — fixed in 8.0.1
- Microsoft.Data.SqlClient: from 2.0 before 2.1.7 — fixed in 2.1.7
- Microsoft .NET Framework 2.0 Service Pack 2: from 2.0.0 before 3.0.50727.8976 — fixed in 3.0.50727.8976
- Microsoft .NET Framework 3.5 AND 4.7.2: from 4.7.0 before 4.7.04081.03 — fixed in 4.7.04081.03
- Microsoft .NET Framework 3.5 AND 4.8: from 4.8.0 before 4.8.04690.02 — fixed in 4.8.04690.02
- Microsoft .NET Framework 3.5 AND 4.8.1: from 4.8.1 before 4.8.09214.01 — fixed in 4.8.09214.01
- Microsoft .NET Framework 4.6.2/4.7/4.7.1/4.7.2: from 4.7.0 before 4.7.04081.02 — fixed in 4.7.04081.02
- Microsoft .NET Framework 4.8: from 4.8.0 before 4.8.04690.02 — fixed in 4.8.04690.02
- Microsoft SQL Server 2022 (CU 10): before 16.0.4100.1 — fixed in 16.0.4100.1
- Microsoft SQL Server 2022 (GDR): from 16.0.0 before 16.0.1110.1 — fixed in 16.0.1110.1
- Microsoft Visual Studio 2022 version 17.2: from 17.2.0 before 17.2.23 — fixed in 17.2.23
- Microsoft Visual Studio 2022 version 17.4: from 17.4.0 before 17.4.15 — fixed in 17.4.15
- Microsoft Visual Studio 2022 version 17.6: from 17.6.0 before 17.6.11 — fixed in 17.6.11
- Microsoft Visual Studio 2022 version 17.8: from 17.8.0 before 17.8.4 — fixed in 17.8.4
- Microsoft System.Data.SqlClient: from 1.0 before 4.8.6 — fixed in 4.8.6
How to fix
Upgrade to a fixed version: Microsoft .NET 6.0.26, 7.0.15; Microsoft .NET Framework 4.8.04690.01, 4.8.04690.02; Microsoft.Data.SqlClient 2.1.7, 3.1.5, 4.0.5, 5.1.3; Microsoft System.Data.SqlClient 4.8.6; Microsoft Visual Studio 2022 version 17.14 17.2.23, 17.4.15, 17.6.11, 17.8.4; Microsoft .NET 6.0 6.0.26; Microsoft .NET 7.0 7.0.15; Microsoft .NET 8.0 8.0.1; Microsoft.Data.SqlClient 2.1.7; Microsoft .NET Framework 2.0 Service Pack 2 3.0.50727.8976; Microsoft .NET Framework 3.5 AND 4.7.2 4.7.04081.03; Microsoft .NET Framework 3.5 AND 4.8 4.8.04690.02. Check the vendor advisory for mitigations.
References
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-0056
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-0056
Get alerted when CVE-2024-0056 or the next vulnerability affects your stack