CVE-2024-0056 — Vulnerability in Microsoft.Data.SqlClient
Microsoft.Data.SqlClient and System.Data.SqlClient vulnerable to SQL Data Provider Security Feature Bypass
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.86%). Schedule for your next planned update.
Does your project use an affected Microsoft.Data.SqlClient version?
Paste your packages.lock.json to check it for CVE-2024-0056 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Microsoft.Data.SqlClient and System.Data.SqlClient SQL Data Provider Security Feature Bypass Vulnerability
Advisory Timeline
- First published January 9, 2024 (1052 days ago).
- Last revised May 31, 2024 — 143 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
dotnet add package Microsoft.Data.SqlClient --version 5.1.3
dotnet add package System.Data.SqlClient --version 4.8.6
dotnet add package Microsoft.Data.SqlClient --version 2.1.7
dotnet add package Microsoft.Data.SqlClient --version 4.0.5
dotnet add package Microsoft.Data.SqlClient --version 3.1.5
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (5)
Affects 1 ecosystem: NuGet (2).
| Package | Fixed In |
|---|---|
| Microsoft.Data.SqlClient NuGet · Affected: 5.0.0, 5.0.1, 5.0.2, 5.1.0 (+2 more) | 5.1.3 |
| System.Data.SqlClient NuGet · Affected: 1.0.0-beta1, 1.0.0-beta2, 4.0.0-beta-22605, 4.0.0-beta-22816 (+34 more) | 4.8.6 |
| Microsoft.Data.SqlClient NuGet · Affected: 1.0.19123.2-Preview, 1.0.19128.1-Preview, 1.0.19189.1-Preview, 1.0.19221.1-Preview (+17 more) | 2.1.7 |
| Microsoft.Data.SqlClient NuGet · Affected: 4.0.0, 4.0.1, 4.0.2, 4.0.3 (+1 more) | 4.0.5 |
| Microsoft.Data.SqlClient NuGet · Affected: 3.0.0, 3.0.1, 3.1.0, 3.1.1 (+3 more) | 3.1.5 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-319
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.7 score means for each attack dimension.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
References
Frequently Asked Questions
- What is CVE-2024-0056?
- Microsoft.Data.SqlClient and System.Data.SqlClient vulnerable to SQL Data Provider Security Feature Bypass. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.7/10).
- How do I check if my project is affected by CVE-2024-0056?
- CVE-2024-0056 affects Microsoft.Data.SqlClient and System.Data.SqlClient. It has a 0.9% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-0056 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 56% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-102529HIGH
HtmlSanitizer: CSS Removal DoS
- CVE-2026-63184HIGH
Refitter: Unrestricted OpenAPI references permit build-host SSRF and file inclusion
- CVE-2022-41064MEDIUM
.NET Information Disclosure Vulnerability