PatchaPalooza

CVE-2024-20654: Microsoft ODBC Driver Remote Code Execution Vulnerability

CVE-2024-20654 is a remote code execution vulnerability in Microsoft ODBC Driver, rated Important by Microsoft, with a CVSS 3.1 base score of 8 (High). An attacker can exploit it remotely over the network, with low 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.99% probability of exploitation activity in the next 30 days, higher than 81% of all scored vulnerabilities. Microsoft released the fix on 9 January 2024 in the January 2024 Patch Tuesday, delivered through 14 security updates (KB5034127, KB5034129, KB5034121, KB5034122 and more). It affects 36 products in 2 product families (Windows, ESU).

Key facts

CVE ID
CVE-2024-20654
Severity
High CVSS 8
Microsoft severity
Important
Impact
Remote Code Execution
Exploited in the wild
No
Publicly disclosed
No
Exploitation likelihood
Less Likely
Weakness
CWE-190
EPSS
1.99% (percentile 81%)
CISA KEV
Not listed
Released
Last updated
Patch Tuesday
January 2024 Patch Tuesday
Product families
Windows, ESU

CVSS score and vector

Microsoft scores CVE-2024-20654 at 8 (temporal 7) using CVSS 3.1. Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C

MetricValue
Attack vectorNetwork
Attack complexityLow
Privileges requiredLow
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, privileges required is low (PR:L). What does that mean for this vulnerability?

Successful exploitation of this vulnerability simply requires the attacker or targeted user to leverage a Microsoft Access application to automatically talk to a SQL Server while utilizing a remote SQL Server address that they control.

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 ODBC, which could result in the client receiving a malicious networking packet. This could allow the attacker to execute code remotely on the client.

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

Affected products (36)

Windows

ProductSecurity updateTypeFixed buildRestart
Windows 10 Version 1809 for 32-bit SystemsKB5034127Security Update10.0.17763.5329Yes
Windows 10 Version 1809 for x64-based SystemsKB5034127Security Update10.0.17763.5329Yes
Windows 10 Version 1809 for ARM64-based SystemsKB5034127Security Update10.0.17763.5329Yes
Windows Server 2019KB5034127Security Update10.0.17763.5329Yes
Windows Server 2019 (Server Core installation)KB5034127Security Update10.0.17763.5329Yes
Windows Server 2022KB5034129Security Update10.0.20348.2227Yes
Windows Server 2022 (Server Core installation)KB5034129Security Update10.0.20348.2227Yes
Windows 11 version 21H2 for x64-based SystemsKB5034121Security Update10.0.22000.2713Yes
Windows 11 version 21H2 for ARM64-based SystemsKB5034121Security Update10.0.22000.2713Yes
Windows 10 Version 21H2 for 32-bit SystemsKB5034122Security Update10.0.19044.3930Yes
Windows 10 Version 21H2 for ARM64-based SystemsKB5034122Security Update10.0.19044.3930Yes
Windows 10 Version 21H2 for x64-based SystemsKB5034122Security Update10.0.19044.3930Yes
Windows 11 Version 22H2 for ARM64-based SystemsKB5034123Security Update10.0.22621.3007Yes
Windows 11 Version 22H2 for x64-based SystemsKB5034123Security Update10.0.22621.3007Yes
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 11 Version 23H2 for ARM64-based Systems
Windows 11 Version 23H2 for x64-based Systems
Windows Server 2022, 23H2 Edition (Server Core installation)KB5034130Security Update10.0.25398.643Yes
Windows 10 for 32-bit SystemsKB5034134Security Update10.0.10240.20402Yes
Windows 10 for x64-based SystemsKB5034134Security Update10.0.10240.20402Yes
Windows 10 Version 1607 for 32-bit SystemsKB5034119Security Update10.0.14393.6614Yes
Windows 10 Version 1607 for x64-based SystemsKB5034119Security Update10.0.14393.6614Yes
Windows Server 2016KB5034119Security Update10.0.14393.6614Yes
Windows Server 2016 (Server Core installation)KB5034119Security Update10.0.14393.6614Yes

ESU

ProductSecurity updateTypeFixed buildRestart
Windows Server 2008 for 32-bit Systems Service Pack 2KB5034173
KB5034176
Monthly Rollup
Security Only
6.0.6003.22464
6.0.6003.22464
Yes
Yes
Windows Server 2008 for 32-bit Systems Service Pack 2 (Server Core installation)KB5034173
KB5034176
Monthly Rollup
Security Only
6.0.6003.22464
6.0.6003.22464
Yes
Yes
Windows Server 2008 for x64-based Systems Service Pack 2KB5034173
KB5034176
Monthly Rollup
Security Only
6.0.6003.22464
6.0.6003.22464
Yes
Yes
Windows Server 2008 for x64-based Systems Service Pack 2 (Server Core installation)KB5034173
KB5034176
Monthly Rollup
Security Only
6.0.6003.22464
6.0.6003.22464
Yes
Yes
Windows Server 2008 R2 for x64-based Systems Service Pack 1KB5034169
KB5034167
Monthly Rollup
Security Only
6.1.7601.26910
6.1.7601.26910
Yes
Yes
Windows Server 2008 R2 for x64-based Systems Service Pack 1 (Server Core installation)KB5034169
KB5034167
Monthly Rollup
Security Only
6.1.7601.26910
6.1.7601.26910
Yes
Yes
Windows Server 2012KB5034184Monthly Rollup6.2.9200.24664Yes
Windows Server 2012 (Server Core installation)KB5034184Monthly Rollup6.2.9200.24664Yes
Windows Server 2012 R2KB5034171Monthly Rollup6.3.9600.21765Yes
Windows Server 2012 R2 (Server Core installation)KB5034171Monthly Rollup6.3.9600.21765Yes

Security updates (14)

NIST NVD data

NVD status
Modified
NVD CVSS
8 (HIGH)
NVD weakness
CWE-190
Published to NVD
NVD last modified

Affected configurations (CPE)

ProductVulnerable versions
windows 10 1507 (x64)before 10.0.10240.20402
windows 10 1507 (x86)before 10.0.10240.20402
windows 10 1607 (x64)before 10.0.14393.6614
windows 10 1607 (x86)before 10.0.14393.6614
windows 10 1809 (arm64)before 10.0.17763.5329
windows 10 1809 (x64)before 10.0.17763.5329
windows 10 1809 (x86)before 10.0.17763.5329
windows 10 21h2 (arm64)before 10.0.19044.3930
windows 10 21h2 (x64)before 10.0.19044.3930
windows 10 21h2 (x86)before 10.0.19044.3930
windows 10 22h2 (arm64)before 10.0.19045.3930
windows 10 22h2 (x64)before 10.0.19045.3930
windows 10 22h2 (x86)before 10.0.19045.3930
windows 11 21h2 (arm64)before 10.0.22000.2713
windows 11 21h2 (x64)before 10.0.22000.2713
windows 11 22h2 (arm64)before 10.0.22621.3007
windows 11 22h2 (x64)before 10.0.22621.3007
windows 11 23h2 (arm64)before 10.0.22631.3007
windows 11 23h2 (x64)before 10.0.22631.3007
windows server 2008 (x64)all listed versions
windows server 2008 (x86)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