Odbc Driver For Sql ServerApplication · Microsoft

CVE-2024-28931

HIGH · 8.8 CVSS v3.1 Published 2024-04-09
Fix available
A fix is available. Upgrade to 15.0.2110.4 / 15.0.4360.2 or later.
See remediation →
95/100
Remediation priority · Urgent
Remotely reachable No privileges

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
Microsoft ODBC Driver for SQL Server Remote Code Execution Vulnerability

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · moderate confidence

A remote code execution vulnerability exists in the Microsoft ODBC Driver for SQL Server. An attacker who successfully exploits this vulnerability could execute arbitrary code on the target system. The high CVSS score of 8.8 indicates the vulnerability is exploitable over the network and can lead to complete compromise of the affected system.

MitigationApply the security update provided by Microsoft for the ODBC Driver for SQL Server to all affected systems. Prioritize internet-facing and production SQL Server systems. Validate application compatibility after patching.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
Odbc Driver For Sql ServerApplication
Affected:>= 17.0.1.1, < 17.10.6.1>= 18.0.1.1, < 18.3.3.1
Sql Server 2019Application
Affected:>= 15.0.2000.5, < 15.0.2110.4>= 15.0.4003.23, < 15.0.4360.2
Sql Server 2022Application
Affected:>= 16.0.1000.6, < 16.0.1115.1>= 16.0.4003.1, < 16.0.4120.1
Visual Studio 2019Application
Affected:>= 16.0, < 16.11.35
Visual Studio 2022Application
Affected:>= 17.4.0, < 17.4.18>= 17.6.0, < 17.6.14>= 17.8.0, < 17.8.9>= 17.9.0, < 17.9.6

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Check ODBC Driver for SQL Server version on Windows
    Open ODBC Data Sources (32-bit or 64-bit), go to Drivers tab, find 'ODBC Driver for SQL Server' entry and note the version column; alternatively run `Get-OdbcDriver -Name 'ODBC Driver*'` in PowerShell if module installed
    Affected if Version is 17.x below 17.10.6.1 OR 18.x below 18.3.3.1 (including versions 17.0.1.1 and above or 18.0.1.1 and above that are less than the patched versions)
  2. Check SQL Server 2019 instance version
    Run `SELECT @@VERSION` in SQL query tool (SSMS) or check registry key HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL15.<InstanceName>\Setup\Version
    Affected if Version starts with 15.0.2000.5 through 15.0.2110.3 OR 15.0.4003.23 through 15.0.4360.1 (versions in the ranges given)
  3. Check SQL Server 2022 instance version
    Run `SELECT @@VERSION` in SQL query tool (SSMS) or check registry key HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL16.<InstanceName>\Setup\Version
    Affected if Version starts with 16.0.1000.6 through 16.0.1115.0 OR 16.0.4003.1 through 16.0.4120.0 (versions in the ranges given)
  4. Check Visual Studio 2019 installation version
    Open Visual Studio 2019, go to Help > About Microsoft Visual Studio and read the version number; or check installer (vs_installer.exe) in Program Files
    Affected if Version is 16.0 through 16.11.34 (any version below 16.11.35)
  5. Check Visual Studio 2022 installation version
    Open Visual Studio 2022, go to Help > About Microsoft Visual Studio and read the version number; or check installer (vs_installer.exe) in Program Files
    Affected if Version is 17.4.0 through 17.4.17 OR 17.6.0 through 17.6.13 OR 17.8.0 through 17.8.8 OR 17.9.0 through 17.9.5 (any version in the vulnerable ranges given)

The environment is affected if any ODBC Driver for SQL Server, SQL Server 2019/2022, or Visual Studio 2019/2022 installation matches the vulnerable version ranges listed in the affected products.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 15.0.2110.4 / 15.0.4360.2 / 16.0.1115.1 or later
Fixed in 15.0.2110.415.0.4360.216.0.1115.1
Interim mitigation

Apply the security update provided by Microsoft for the ODBC Driver for SQL Server to all affected systems. Prioritize internet-facing and production SQL Server systems. Validate application compatibility after patching.

Recommended fix High confidence

ODBC Driver for SQL Server 17.10.6.1+ / 18.3.3.1+; SQL Server 2019 15.0.2110.4+ / 15.0.4360.2+; SQL Server 2022 16.0.1115.1+ / 16.0.4120.1+; Visual Studio 2019 16.11.35+; Visual Studio 2022 17.4.18+/17.6.14+/17.8.9+/17.9.6+

  1. 1. Identify which affected product(s) are deployed in your environment: ODBC Driver for SQL Server, SQL Server 2019, SQL Server 2022, Visual Studio 2019, or Visual Studio 2022
  2. 2. For ODBC Driver for SQL Server 17.x: upgrade to version 17.10.6.1 or later
  3. 3. For ODBC Driver for SQL Server 18.x: upgrade to version 18.3.3.1 or later
  4. 4. For SQL Server 2019: apply update version 15.0.2110.4 or later (or version 15.0.4360.2 or later)
  5. 5. For SQL Server 2022: apply update version 16.0.1115.1 or later (or version 16.0.4120.1 or later)
  6. 6. For Visual Studio 2019: update to version 16.11.35 or later
  7. 7. For Visual Studio 2022: update to version 17.4.18 or later, 17.6.14 or later, 17.8.9 or later, or 17.9.6 or later depending on your current release channel
  8. 8. Verify the update was successfully applied by checking the product version
Caveat Review SQL Server and Visual Studio release notes for any compatibility notes or known issues before upgrading

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Odbc Driver For Sql Server Scoped from the published advisory
  • Consultation4.0 h
  • Implementation8.0 h
  • Testing6.0 h
  • Review / QA2.0 h
20.0 hours of engineering $3,500
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $5,600.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2024-28931 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2024-28931 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data