CVE-2024-28906: Microsoft OLE DB Driver for SQL Server Remote Code Execution Vulnerability
CVE-2024-28906 is a remote code execution vulnerability in Microsoft OLE DB Driver for SQL Server, rated Important by Microsoft, with a CVSS 3.1 base score of 8.8 (High). An attacker can exploit it remotely over the network, without any privileges and only if a user takes an action. Microsoft has not reported exploitation in the wild and rates exploitation as less likely. The EPSS model estimates a 1.75% probability of exploitation activity in the next 30 days, higher than 78% of all scored vulnerabilities. Microsoft released the fix on 9 April 2024 in the April 2024 Patch Tuesday, delivered through 6 security updates (KB5036343, KB5036335, KB5035434, KB5035432 and more). It affects 6 products in 1 product family (SQL Server).
Key facts
- CVE ID
- CVE-2024-28906
- Severity
- High CVSS 8.8
- Microsoft severity
- Important
- Impact
- Remote Code Execution
- Exploited in the wild
- No
- Publicly disclosed
- No
- Exploitation likelihood
- Less Likely
- Weakness
- CWE-122
- EPSS
- 1.75% (percentile 78%)
- CISA KEV
- Not listed
- Released
- Last updated
- Patch Tuesday
- April 2024 Patch Tuesday
- Product families
- SQL Server
CVSS score and vector
Microsoft scores CVE-2024-28906 at 8.8 (temporal 7.7) using CVSS 3.1. Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C
| Metric | Value |
|---|---|
| Attack vector | Network |
| Attack complexity | Low |
| Privileges required | None |
| User interaction | Required |
| Scope | Unchanged |
| Confidentiality impact | High |
| Integrity impact | High |
| Availability impact | High |
| Exploit code maturity | Unproven |
| Remediation level | Official fix |
| Report confidence | Confirmed |
Frequently asked questions (Microsoft)
According to the CVSS metric, the attack vector is network (AV:N) and the user interaction is required (UI:R). What is the target context of the remote code execution?
An authenticated victim who is connected to the network must be tricked or persuaded to connect to a malicious SQL database using their SQL client application. After the connection is made, the server can send specially crafted replies to the client that exploit the vulnerability and permit execution of arbitrary code within the context of the user's SQL client application.
According to the CVSS metric, user interaction is required (UI:R). What interaction would the user have to do?
An attacker could exploit the vulnerability by tricking an authenticated user (CVSS metric UI:R) into attempting to connect to a malicious SQL server via a connection driver (for example: ODBC and / or OLEDB as applicable).
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.
I am running my own application on my system. What action do I need to take?
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.
I am running an application from a software vendor on my system. What action do I need to take?
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
There are GDR and/or CU (Cumulative Update) updates offered for my version of SQL Server. How do I know which update to use?
- 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.
Note If your SQL Server version number is not represented in the table below, your SQL Server version is no longer supported. Please upgrade to the latest Service Pack or SQL Server product in order to apply this and future security updates.
Update Number
Title
Apply if current product version is…
This security update also includes servicing releases up through…
5036343
Security update for SQL Server 2022 CU12+GDR
16.0.4003.1 - 16.0.4115.5
KB 5033663 - SQL2022 RTM CU12
5035432
Security update for SQL Server 2022 RTM+GDR
16.0.1000.6 - 16.0.1110.1
KB 5032968 - Previous SQL2022 RTM GDR
5036335
Security update for SQL Server 2019 CU25+GDR
15.0.4003.23 - 15.0.4355.3
KB 5033688 - SQL2019 RTM CU25
5035434
Security update for SQL Server 2019 RTM+GDR
15.0.2000.5 - 15.0.2104.1
KB 5029377 - Previous SQL2019 RTM GDR
What are the GDR and CU update designations and how do they differ?
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.
Note: You are allowed to make a change from GDR updates to CU updates ONE TIME. Once a SQL Server CU update is applied to a SQL Server installation, there is NO way to go back to the GDR update path.
Can the security updates be applied to SQL Server instances on Windows Azure (IaaS)?
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.
Affected products (6)
SQL Server
| Product | Security update | Type | Fixed build | Restart |
|---|---|---|---|---|
| Microsoft SQL Server 2022 for x64-based Systems (CU 12) | KB5036343 | Security Update | 16.0.4120.1 | Yes |
| Microsoft SQL Server 2019 for x64-based Systems (CU 25) | KB5036335 | Security Update | 15.0.4360.2 | Yes |
| Microsoft SQL Server 2019 for x64-based Systems (GDR) | KB5035434 | Security Update | 15.0.2110.4 | Yes |
| Microsoft SQL Server 2022 for x64-based Systems (GDR) | KB5035432 | Security Update | 16.0.1115.1 | Yes |
| Microsoft OLE DB Driver 19 for SQL Server | KB5037573 | Security Update | 19.3.0003.0 | Maybe |
| Microsoft OLE DB Driver 18 for SQL Server | KB5037572 | Security Update | 18.7.0002.0 | Maybe |
Security updates (6)
NIST NVD data
- NVD status
- Analyzed
- NVD CVSS
- 8.8 (HIGH)
- NVD weakness
- CWE-122
- Published to NVD
- NVD last modified
Affected configurations (CPE)
| Product | Vulnerable versions |
|---|---|
| ole db driver for sql server | from 18.0.2, before 18.7.0002.0 |
| ole db driver for sql server | from 19.0.0, before 19.3.0003.0 |
| sql server 2019 (x64) | from 15.0.2000.5, before 15.0.2110.4 |
| sql server 2019 (x64) | from 15.0.4003.23, before 15.0.4360.2 |
| sql server 2022 (x64) | from 16.0.1000.6, before 16.0.1115.1 |
| sql server 2022 (x64) | from 16.0.4003.1, before 16.0.4120.1 |
References
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-28906 (Vendor Advisory)
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-28906 (Vendor Advisory)
Acknowledgments
- Anonymous
Revision history
| Version | Date | Description |
|---|---|---|
| 1.0 | Information published. | |
| 1.1 | 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. |