CVE-2024-0056Microsoft.data.sqlclient
High 8.7 No auth needed
Follow: this CVE · Microsoft · Microsoft.data.sqlclient We alert you by email or Slack (account required).
- Priority
- 67
- CVSS 3.1
- 8.7
- EPSS
- 0.9% probability of exploitation in 30 days · percentile 56
- Auth required
- No
- Published
- Jan 9, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Windows
- Weakness (CWE)
- CWE-319
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
What happens
Microsoft.Data.SqlClient and System.Data.SqlClient SQL Data Provider Security Feature Bypass Vulnerability
What to do
- Apply the vendor's security update for Microsoft.data.sqlclient.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| NuGet | Microsoft.Data.SqlClient |
< 2.1.7 |
2.1.7 |
dotnet add package Microsoft.Data.SqlClient --version 2.1.7 |
| NuGet | Microsoft.Data.SqlClient |
≥ 3.0.0 < 3.1.5 |
3.1.5 |
dotnet add package Microsoft.Data.SqlClient --version 3.1.5 |
| NuGet | Microsoft.Data.SqlClient |
≥ 4.0.0 < 4.0.5 |
4.0.5 |
dotnet add package Microsoft.Data.SqlClient --version 4.0.5 |
| NuGet | Microsoft.Data.SqlClient |
≥ 5.0.0 < 5.1.3 |
5.1.3 |
dotnet add package Microsoft.Data.SqlClient --version 5.1.3 |
| NuGet | System.Data.SqlClient |
< 4.8.6 |
4.8.6 |
dotnet add package System.Data.SqlClient --version 4.8.6 |
Per OSV / GitHub Advisories (GHSA-98g6-xh36-x2p7). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| microsoft | microsoft.data.sqlclient | ≥ 2.1 < 2.1.7 |
| microsoft | microsoft.data.sqlclient | ≥ 3.1 < 3.1.5 |
| microsoft | microsoft.data.sqlclient | ≥ 4.0 < 4.0.5 |
| microsoft | microsoft.data.sqlclient | ≥ 5.1 < 5.1.3 |
| microsoft | sql_server | 2022 |
| microsoft | sql_server | 2022 |
| microsoft | system.data.sqlclient | < 4.8.6 |
| microsoft | visual_studio_2022 | ≥ 17.2 < 17.2.23 |
| microsoft | visual_studio_2022 | ≥ 17.4 < 17.4.15 |
| microsoft | visual_studio_2022 | ≥ 17.6 < 17.6.11 |
| microsoft | visual_studio_2022 | ≥ 17.8 < 17.8.4 |
| microsoft | .net_framework | ≥ 4.8 < 4.8.04690.02 |
| microsoft | .net_framework | ≥ 4.8 < 4.8.04690.01 |
| microsoft | .net_framework | 4.6.2 |
| microsoft | .net_framework | 4.7 |
| microsoft | .net_framework | 4.7.1 |
| microsoft | .net_framework | 4.7.2 |
| microsoft | .net_framework | 3.5 |
| microsoft | .net_framework | 4.8.1 |
| microsoft | .net_framework | 2.0 |
| microsoft | .net | ≥ 6.0.0 < 6.0.26 |
| microsoft | .net | ≥ 7.0.0 < 7.0.15 |
| microsoft | .net | 8.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- msrc.microsoft.com Patch Vendor Advisory