Summary
Impact: Remote Code Execution. Microsoft rating: Important. Not known to be exploited — Exploitation Less Likely. Customer action: Required.
Details
I am running SQL Server on my system. What action do I need to take?
Update your relevant version of SQL Server. Any applicable driver fixes are included in those updates.
Update your application to use Microsoft OLE DB Driver 18 or 19. Update the drivers to the versions listed on this page, which provide protection against this vulnerability.
Consult with your application vendor if it is compatible with Microsoft OLE DB Driver 18 or 19. Update the drivers to the versions listed in this page, which provide protection against this vulnerability
First, determine your SQL Server version number. For more information on determining your SQL Server version number, see Microsoft Knowledge Base Article 321185 - How to determine the version, edition, and update level of SQL Server and its components., Second, in the table below, locate your version number or the version range that your version number falls within. The corresponding update is the one you need to install.
5036343: 5036343, Security update for SQL Server 2022 CU12+GDR: Security update for SQL Server 2022 CU12+GDR, 16.0.4003.1 - 16.0.4115.5: 16.0.4003.1 - 16.0.4115.5, KB 5033663 - SQL2022 RTM CU12: KB 5033663 - SQL2022 RTM CU12, 5035432: 5035432, Security update for SQL Server 2022 RTM+GDR: Security update for SQL Server 2022 RTM+GDR, 16.0.1000.6 - 16.0.1110.1: 16.0.1000.6 - 16.0.1110.1, KB 5032968 - Previous SQL2022 RTM GDR: KB 5032968 - Previous SQL2022 RTM GDR, 5036335: 5036335, Security update for SQL Server 2019 CU25+GDR: Security update for SQL Server 2019 CU25+GDR, 15.0.4003.23 - 15.0.4355.3: 15.0.4003.23 - 15.0.4355.3, KB 5033688 - SQL2019 RTM CU25: KB 5033688 - SQL2019 RTM CU25, 5035434: 5035434, Security update for SQL Server 2019 RTM+GDR: Security update for SQL Server 2019 RTM+GDR, 15.0.2000.5 - 15.0.2104.1: 15.0.2000.5 - 15.0.2104.1, KB 5029377 - Previous SQL2019 RTM GDR: KB 5029377 - Previous SQL2019 RTM GDR
The General Distribution Release (GDR) and Cumulative Update (CU) designations correspond to the two different servicing options in place for SQL Server baseline releases. A baseline can be either an RTM release or a Service Pack release.
GDR updates – cumulatively only contain security updates for the given baseline., CU updates – cumulatively contain all functional fixes and security updates for the given baseline.
For any given baseline, either the GDR or CU updates could be options (see below).
If SQL Server installation is at a baseline version, you can choose either the GDR or CU update., If SQL Server installation has intentionally only installed past GDR updates, then choose to install the GDR update package., If SQL Server installation has intentionally installed previous CU updates, then chose to install the CU security update package.
Yes. SQL Server instances on Windows Azure (IaaS) can be offered the security updates through Microsoft Update, or customers can download the security updates from Microsoft Download Center and apply them manually.
How could an attacker exploit this vulnerability?
An attacker could exploit the vulnerability by tricking an authenticated user (UI:R) into attempting to connect to a malicious SQL server database via a connection driver (for example: OLE DB or OLEDB as applicable). This could result in the database returning malicious data that could cause arbitrary code execution on the client.
Security updates
15.0.2110.4 — https://support.microsoft.com/help/5035434
16.0.1115.1 — https://support.microsoft.com/help/5035432
19.3.0003.0 — https://support.microsoft.com/help/5037573
18.7.0002.0 — https://support.microsoft.com/help/5037572
15.0.4360.2 — https://support.microsoft.com/help/5036335
16.0.4120.1 — https://support.microsoft.com/help/5036343
Vulnerabilities 1
-
High 8.8
Microsoft OLE DB Driver for SQL Server Remote Code Execution Vulnerability
Microsoft OLE DB Driver for SQL Server Remote Code Execution Vulnerability
Revision history
-
#2
Corrected Cumulative Update version numbers and reference KB numbers in the FAQ: "There are GDR and/or CU (Cumulative Update) updates offered for my version of SQL Server. How do I know which update to use?" These are informational changes only.
-
#1
Information published.
References
-
CVE-2024-28940 Microsoft OLE DB Driver for SQL Server Remote Code Execution Vulnerability - HTML
https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-28940
-
Microsoft Exploitability Index
https://www.microsoft.com/en-us/msrc/exploitability-index?rtc=1
-
Microsoft Support Lifecycle
https://support.microsoft.com/lifecycle
-
Common Vulnerability Scoring System
https://www.first.org/cvss