CVE-2024-28931
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 · uneditedMicrosoft 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 confidenceA 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.
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>= 17.0.1.1, < 17.10.6.1>= 18.0.1.1, < 18.3.3.1>= 15.0.2000.5, < 15.0.2110.4>= 15.0.4003.23, < 15.0.4360.2>= 16.0.1000.6, < 16.0.1115.1>= 16.0.4003.1, < 16.0.4120.1>= 16.0, < 16.11.35>= 17.4.0, < 17.4.18>= 17.6.0, < 17.6.14>= 17.8.0, < 17.8.9>= 17.9.0, < 17.9.6CVSS 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 checksWork through these to decide whether this CVE applies to you.
-
Check ODBC Driver for SQL Server version on WindowsOpen 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 installedAffected 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)
-
Check SQL Server 2019 instance versionRun `SELECT @@VERSION` in SQL query tool (SSMS) or check registry key HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL15.<InstanceName>\Setup\VersionAffected 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)
-
Check SQL Server 2022 instance versionRun `SELECT @@VERSION` in SQL query tool (SSMS) or check registry key HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL16.<InstanceName>\Setup\VersionAffected 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)
-
Check Visual Studio 2019 installation versionOpen Visual Studio 2019, go to Help > About Microsoft Visual Studio and read the version number; or check installer (vs_installer.exe) in Program FilesAffected if Version is 16.0 through 16.11.34 (any version below 16.11.35)
-
Check Visual Studio 2022 installation versionOpen Visual Studio 2022, go to Help > About Microsoft Visual Studio and read the version number; or check installer (vs_installer.exe) in Program FilesAffected 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.
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 · scoped15.0.2110.415.0.4360.216.0.1115.1
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.
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. 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. For ODBC Driver for SQL Server 17.x: upgrade to version 17.10.6.1 or later
- 3. For ODBC Driver for SQL Server 18.x: upgrade to version 18.3.3.1 or later
- 4. For SQL Server 2019: apply update version 15.0.2110.4 or later (or version 15.0.4360.2 or later)
- 5. For SQL Server 2022: apply update version 16.0.1115.1 or later (or version 16.0.4120.1 or later)
- 6. For Visual Studio 2019: update to version 16.11.35 or later
- 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. Verify the update was successfully applied by checking the product version
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation4.0 h
- Implementation8.0 h
- Testing6.0 h
- Review / QA2.0 h
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 locallyCheck 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 sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2024-28931 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
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.
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.
- 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