Is System.Data.SqlClient 4.6 vulnerable?

NuGet · 2 releases from 4.6.0 to 4.6.1 · latest System.Data.SqlClient is 4.9.1 · checked 18 Nov 2026

Yes: 2 known advisories

Yes. System.Data.SqlClient 4.6.1, the last 4.6 release, is affected by 2 known security advisories (1 high, 1 medium), including CVE-2024-0056, CVE-2022-41064. Upgrade to 4.8.6 or later to fix all of them.

Upgrade with:dotnet add package System.Data.SqlClient --version 4.8.6

Is your project on an affected System.Data.SqlClient?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several .NET apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Advisories affecting System.Data.SqlClient 4.6.1

  • HighCVE-2024-0056GHSA-98g6-xh36-x2p79 Jan 2024

    Microsoft.Data.SqlClient and System.Data.SqlClient vulnerable to SQL Data Provider Security Feature Bypass

    Affected
    <4.8.6
    Fixed in
    4.8.6
  • MediumCVE-2022-41064GHSA-8g2p-5pqh-5jmc8 Nov 2022

    .NET Information Disclosure Vulnerability

    Affected
    <4.8.5
    Fixed in
    4.8.5

Every System.Data.SqlClient 4.6.x release

Affected: 4.6.0 to 4.6.1. Latest System.Data.SqlClient: 4.9.1.

VersionKnown advisories
System.Data.SqlClient 4.6.1CVE-2024-0056, CVE-2022-41064
System.Data.SqlClient 4.6.0CVE-2024-0056, CVE-2022-41064

Which of your client projects are still on System.Data.SqlClient 4.6?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact System.Data.SqlClient version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other System.Data.SqlClient versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the NuGet registry. Refreshed daily.