PatchaPalooza

CVE-2023-36882: Microsoft WDAC OLE DB provider for SQL Server Remote Code Execution Vulnerability

CVE-2023-36882 is a remote code execution vulnerability in Microsoft WDAC OLE DB provider 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.57% probability of exploitation activity in the next 30 days, higher than 76% of all scored vulnerabilities. Microsoft released the fix on 7 August 2023 in the August 2023 Patch Tuesday, delivered through 16 security updates (KB5029247, KB5029250, KB5029367, KB5029253 and more). It affects 33 products in 2 product families (Windows, ESU).

Key facts

CVE ID
CVE-2023-36882
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-416
EPSS
1.57% (percentile 76%)
CISA KEV
Not listed
Released
Last updated
Patch Tuesday
August 2023 Patch Tuesday
Product families
Windows, ESU

CVSS score and vector

Microsoft scores CVE-2023-36882 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

MetricValue
Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionRequired
ScopeUnchanged
Confidentiality impactHigh
Integrity impactHigh
Availability impactHigh
Exploit code maturityUnproven
Remediation levelOfficial fix
Report confidenceConfirmed

Frequently asked questions (Microsoft)

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).

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.

Mitigations and workarounds

The following mitigating factors might be helpful in your situation:

Exploitation of this vulnerability requires an attacker to trick or convince the victim into connecting to their malicious server. If your environment only connects to known, trusted servers and there is no ability to reconfigure existing connections to point to another location (for example you use TLS encryption with certificate validation), the vulnerability cannot be exploited.

Affected products (33)

Windows

ProductSecurity updateTypeFixed buildRestart
Windows 10 Version 1809 for 32-bit SystemsKB5029247Security Update10.0.17763.4737Yes
Windows 10 Version 1809 for x64-based SystemsKB5029247Security Update10.0.17763.4737Yes
Windows 10 Version 1809 for ARM64-based SystemsKB5029247Security Update10.0.17763.4737Yes
Windows Server 2019KB5029247Security Update10.0.17763.4737Yes
Windows Server 2019 (Server Core installation)KB5029247Security Update10.0.17763.4737Yes
Windows Server 2022KB5029250
KB5029367
Security Update
Security Hotpatch Update
10.0.20348.1906
10.0.20348.1903
Yes
No
Windows Server 2022 (Server Core installation)KB5029250
KB5029367
Security Update
Security Hotpatch Update
10.0.20348.1906
10.0.20348.1903
Yes
No
Windows 11 version 21H2 for x64-based SystemsKB5029253Security Update10.0.22000.2295Yes
Windows 11 version 21H2 for ARM64-based SystemsKB5029253Security Update10.0.22000.2295Yes
Windows 10 Version 21H2 for 32-bit SystemsKB5029244Security Update10.0.19044.3324Yes
Windows 10 Version 21H2 for ARM64-based SystemsKB5029244Security Update10.0.19044.3324Yes
Windows 10 Version 21H2 for x64-based SystemsKB5029244Security Update10.0.19044.3324Yes
Windows 11 Version 22H2 for ARM64-based SystemsKB5029263Security Update10.0.22621.2134Yes
Windows 11 Version 22H2 for x64-based SystemsKB5029263Security Update10.0.22621.2134Yes
Windows 10 Version 22H2 for x64-based Systems
Windows 10 Version 22H2 for ARM64-based Systems
Windows 10 Version 22H2 for 32-bit Systems
Windows 10 for 32-bit SystemsKB5029259Security Update10.0.10240.20107Yes
Windows 10 for x64-based SystemsKB5029259Security Update10.0.10240.20107Yes
Windows 10 Version 1607 for 32-bit SystemsKB5029242Security Update10.0.14393.6167Yes
Windows 10 Version 1607 for x64-based SystemsKB5029242Security Update10.0.14393.6167Yes
Windows Server 2016KB5029242Security Update10.0.14393.6167Yes
Windows Server 2016 (Server Core installation)KB5029242Security Update10.0.14393.6167Yes

ESU

ProductSecurity updateTypeFixed buildRestart
Windows Server 2008 for 32-bit Systems Service Pack 2KB5029318
KB5029301
Monthly Rollup
Security Only
6.0.6003.22216
6.0.6003.22216
Yes
Yes
Windows Server 2008 for 32-bit Systems Service Pack 2 (Server Core installation)KB5029318
KB5029301
Monthly Rollup
Security Only
6.0.6003.22216
6.0.6003.22216
Yes
Yes
Windows Server 2008 for x64-based Systems Service Pack 2KB5029318
KB5029301
Monthly Rollup
Security Only
6.0.6003.22216
6.0.6003.22216
Yes
Yes
Windows Server 2008 for x64-based Systems Service Pack 2 (Server Core installation)KB5029318
KB5029301
Monthly Rollup
Security Only
6.0.6003.22216
6.0.6003.22216
Yes
Yes
Windows Server 2008 R2 for x64-based Systems Service Pack 1KB5029296
KB5029307
Monthly Rollup
Security Only
6.1.7601.26664
6.1.7601.26664
Yes
Yes
Windows Server 2008 R2 for x64-based Systems Service Pack 1 (Server Core installation)KB5029296
KB5029307
Monthly Rollup
Security Only
6.1.7601.26664
6.1.7601.26664
Yes
Yes
Windows Server 2012KB5029295
KB5029308
Monthly Rollup
Security Only
6.2.9200.24414
6.2.9200.24414
Yes
Yes
Windows Server 2012 (Server Core installation)KB5029295
KB5029308
Monthly Rollup
Security Only
6.2.9200.24414
6.2.9200.24414
Yes
Yes
Windows Server 2012 R2KB5029312
KB5029304
Monthly Rollup
Security Only
6.3.9600.21503
6.3.9600.21503
Yes
Yes
Windows Server 2012 R2 (Server Core installation)KB5029312
KB5029304
Monthly Rollup
Security Only
6.3.9600.21503
6.3.9600.21503
Yes
Yes

Security updates (16)

NIST NVD data

NVD status
Modified
NVD CVSS
8.8 (HIGH)
NVD weakness
CWE-416
Published to NVD
NVD last modified

Affected configurations (CPE)

ProductVulnerable versions
windows 10 1507before 10.0.10240.20107
windows 10 1607before 10.0.14393.6167
windows 10 1809before 10.0.17763.4737
windows 10 21h2before 10.0.19044.3324
windows 10 22h2before 10.0.19045.3324
windows 11 21h2before 10.0.22000.2295
windows 11 22h2before 10.0.22621.2134
windows server 2008all listed versions
windows server 2008 r2 (x64)all listed versions
windows server 2012all listed versions
windows server 2012 r2all listed versions
windows server 2016all listed versions
windows server 2019all listed versions
windows server 2022all listed versions

References

Acknowledgments

Revision history

VersionDateDescription
1.0Information published.

Sources