PatchaPalooza

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

CVE-2023-21681 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.49% probability of exploitation activity in the next 30 days, higher than 75% of all scored vulnerabilities. Microsoft released the fix on 10 January 2023 in the January 2023 Patch Tuesday, delivered through 15 security updates (KB5022286, KB5022291, KB5022282, KB5022287 and more). It affects 40 products in 2 product families (Windows, ESU).

Key facts

CVE ID
CVE-2023-21681
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-191
EPSS
1.49% (percentile 75%)
CISA KEV
Not listed
Released
Last updated
Patch Tuesday
January 2023 Patch Tuesday
Product families
Windows, ESU

CVSS score and vector

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

How could an attacker exploit this vulnerability?

An attacker could exploit the vulnerability by tricking an authenticated user into attempting to connect to a malicious SQL server via OLEDB, which could result in the server receiving a malicious networking packet. This could allow the attacker to execute code remotely on the client.

Affected products (40)

Windows

ProductSecurity updateTypeFixed buildRestart
Windows 10 Version 1809 for 32-bit SystemsKB5022286Security Update10.0.17763.3887Yes
Windows 10 Version 1809 for x64-based SystemsKB5022286Security Update10.0.17763.3887Yes
Windows 10 Version 1809 for ARM64-based SystemsKB5022286Security Update10.0.17763.3887Yes
Windows Server 2019KB5022286Security Update10.0.17763.3887Yes
Windows Server 2019 (Server Core installation)KB5022286Security Update10.0.17763.3887Yes
Windows Server 2022KB5022291Security Update10.0.20348.1487Yes
Windows Server 2022 (Server Core installation)KB5022291Security Update10.0.20348.1487Yes
Windows 10 Version 20H2 for 32-bit SystemsKB5022282Security Update10.0.19042.2486Yes
Windows 10 Version 20H2 for ARM64-based SystemsKB5022282Security Update10.0.19042.2486Yes
Windows 11 version 21H2 for x64-based SystemsKB5022287Security Update10.0.22000.1455Yes
Windows 11 version 21H2 for ARM64-based SystemsKB5022287Security Update10.0.22000.1455Yes
Windows 10 Version 21H2 for 32-bit Systems
Windows 10 Version 21H2 for ARM64-based Systems
Windows 10 Version 21H2 for x64-based Systems
Windows 11 Version 22H2 for ARM64-based SystemsKB5022303Security Update10.0.22621.1105Yes
Windows 11 Version 22H2 for x64-based SystemsKB5022303Security Update10.0.22621.1105Yes
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 SystemsKB5022297Security Update10.0.10240.19685Yes
Windows 10 for x64-based SystemsKB5022297Security Update10.0.10240.19685Yes
Windows 10 Version 1607 for 32-bit SystemsKB5022289Security Update10.0.14393.5648Yes
Windows 10 Version 1607 for x64-based SystemsKB5022289Security Update10.0.14393.5648Yes
Windows Server 2016KB5022289Security Update10.0.14393.5648Yes
Windows Server 2016 (Server Core installation)KB5022289Security Update10.0.14393.5648Yes
Windows 8.1 for 32-bit systemsKB5022352
KB5022346
Monthly Rollup
Security Only
6.3.9600.20778
6.3.9600.20778
Yes
Yes
Windows 8.1 for x64-based systemsKB5022352
KB5022346
Monthly Rollup
Security Only
6.3.9600.20778
6.3.9600.20778
Yes
Yes
Windows RT 8.1KB5022346Security Only6.3.9600.20778Yes

ESU

ProductSecurity updateTypeFixed buildRestart
Windows 7 for 32-bit Systems Service Pack 1KB5022338
KB5022339
Monthly Rollup
Security Only
6.1.7601.26321
6.1.7601.26321
Yes
Yes
Windows 7 for x64-based Systems Service Pack 1KB5022338
KB5022339
Monthly Rollup
Security Only
6.1.7601.26321
6.1.7601.26321
Yes
Yes
Windows Server 2008 for 32-bit Systems Service Pack 2KB5022340
KB5022353
Monthly Rollup
Security Only
6.0.6003.21872
6.0.6003.21872
Yes
Yes
Windows Server 2008 for 32-bit Systems Service Pack 2 (Server Core installation)KB5022340
KB5022353
Monthly Rollup
Security Only
6.0.6003.21872
6.0.6003.21872
Yes
Yes
Windows Server 2008 for x64-based Systems Service Pack 2KB5022340
KB5022353
Monthly Rollup
Security Only
6.0.6003.21872
6.0.6003.21872
Yes
Yes
Windows Server 2008 for x64-based Systems Service Pack 2 (Server Core installation)KB5022340
KB5022353
Monthly Rollup
Security Only
6.0.6003.21872
6.0.6003.21872
Yes
Yes
Windows Server 2008 R2 for x64-based Systems Service Pack 1KB5022338
KB5022339
Monthly Rollup
Security Only
6.1.7601.26321
6.1.7601.26321
Yes
Yes
Windows Server 2008 R2 for x64-based Systems Service Pack 1 (Server Core installation)KB5022338
KB5022339
Monthly Rollup
Security Only
6.1.7601.26321
6.1.7601.26321
Yes
Yes
Windows Server 2012KB5022348
KB5022343
Monthly Rollup
Security Only
6.2.9200.24075
6.2.9200.24075
Yes
Yes
Windows Server 2012 (Server Core installation)KB5022348
KB5022343
Monthly Rollup
Security Only
6.2.9200.24075
6.2.9200.24075
Yes
Yes
Windows Server 2012 R2KB5022352
KB5022346
Monthly Rollup
Security Only
6.3.9600.20778
6.3.9600.20778
Yes
Yes
Windows Server 2012 R2 (Server Core installation)KB5022352
KB5022346
Monthly Rollup
Security Only
6.3.9600.20778
6.3.9600.20778
Yes
Yes

Security updates (15)

NIST NVD data

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

Affected configurations (CPE)

ProductVulnerable versions
windows 10 1607 (x64)all listed versions
windows 10 1607 (x86)all listed versions
windows 10 1809 (arm64)all listed versions
windows 10 1809 (x64)all listed versions
windows 10 1809 (x86)all listed versions
windows 10 20h2 (arm64)all listed versions
windows 10 20h2 (x64)all listed versions
windows 10 20h2 (x86)all listed versions
windows 10 21h2 (arm64)all listed versions
windows 10 21h2 (x64)all listed versions
windows 10 21h2 (x86)all listed versions
windows 10 22h2 (arm64)all listed versions
windows 10 22h2 (x64)all listed versions
windows 10 22h2 (x86)all listed versions
windows 11 21h2 (arm64)all listed versions
windows 11 21h2 (x64)all listed versions
windows 11 22h2 (arm64)all listed versions
windows 11 22h2 (x64)all listed versions
windows 7 (x64)all listed versions
windows 7 (x86)all listed versions
windows 8.1 (x64)all listed versions
windows 8.1 (x86)all listed versions
windows rt 8.1all listed versions
windows server 2008 (x64)all listed versions
windows server 2008 (x86)all 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

  • Anonymous

Revision history

VersionDateDescription
1.0Information published.

Sources