Skip to main content
Vulnerability Database/CVE-2024-38237

CVE-2024-38237: Windows 10 Privilege Escalation Vulnerability

CVE-2024-38237 is a privilege escalation vulnerability in Windows 10 1507 Kernel Streaming WOW Thunk Service Driver that allows attackers to gain elevated system privileges. This article covers technical details, affected versions, security impact, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2024-38237 Overview

CVE-2024-38237 is an elevation of privilege vulnerability in the Microsoft Windows Kernel Streaming WOW Thunk Service Driver. The flaw affects multiple supported versions of Windows 10, Windows 11, and Windows Server. An authenticated local attacker can exploit the issue to gain SYSTEM-level privileges on the target host. Microsoft classifies the weakness under CWE-122 (heap-based buffer overflow). The vulnerability was addressed in the September 2024 Patch Tuesday release.

Critical Impact

Successful exploitation grants attackers SYSTEM-level privileges on affected Windows hosts, enabling full compromise of confidentiality, integrity, and availability from a low-privileged local account.

Affected Products

  • Microsoft Windows 10 (versions 1507, 1607, 1809, 21H2, 22H2) across x86, x64, and ARM64 architectures
  • Microsoft Windows 11 (versions 21H2, 22H2, 23H2, 24H2) across x64 and ARM64 architectures
  • Microsoft Windows Server 2016, 2019, 2022, and Server 2022 23H2

Discovery Timeline

  • 2024-09-10 - CVE-2024-38237 published to NVD alongside Microsoft's September 2024 security update
  • 2026-08-10 - Last updated in NVD database

Technical Details for CVE-2024-38237

Vulnerability Analysis

The vulnerability resides in the Kernel Streaming WOW Thunk Service Driver (ksthunk.sys), a component that marshals 32-bit calls to the 64-bit kernel streaming subsystem. The driver incorrectly manages heap-allocated buffers when thunking user-mode requests, leading to a heap-based buffer overflow condition classified under [CWE-122]. Exploitation requires local access and low privileges, with no user interaction. A successful attacker transitions from a standard user context to SYSTEM, bypassing Windows access controls and tamper protections.

The EPSS probability for this CVE is 3.408% (88.788 percentile), placing it in the upper band of likely-exploited Windows local privilege escalation flaws.

Root Cause

The root cause is improper validation of buffer sizes during the WOW64 thunking process in ksthunk.sys. When user-mode input crosses the 32-bit to 64-bit boundary, the driver allocates heap memory based on attacker-influenced length fields without enforcing bounds, enabling an out-of-bounds write beyond the allocated heap chunk. Writing past the chunk corrupts adjacent kernel pool metadata and object pointers.

Attack Vector

An attacker with the ability to run code as a low-privileged local user issues crafted IOCTLs to the kernel streaming interface. The malformed request triggers the overflow inside ksthunk.sys, enabling kernel memory corruption that can be shaped into arbitrary kernel-mode execution. Remote attackers cannot reach the driver directly; the vector is strictly local. The flaw is well suited as a post-compromise step in multi-stage intrusions where initial access is already established via phishing, malware, or stolen credentials.

No public proof-of-concept exploit is listed in the enriched data, and the vulnerability is not present on the CISA Known Exploited Vulnerabilities list.

Detection Methods for CVE-2024-38237

Indicators of Compromise

  • Unexpected kernel crashes (BugCheck) referencing ksthunk.sys on unpatched hosts
  • New SYSTEM-level processes spawned from medium-integrity user sessions without legitimate elevation
  • Loading of unsigned or unusual kernel streaming client libraries by non-media applications

Detection Strategies

  • Hunt for low-privilege processes issuing DeviceIoControl calls against \Device\KsecDD or kernel streaming device objects outside expected media workflows
  • Correlate token elevation events (Event ID 4672) with parent processes that do not normally request privileged tokens
  • Alert on child processes with NT AUTHORITY\SYSTEM tokens launched from user profile paths such as C:\Users\<user>\AppData\

Monitoring Recommendations

  • Enable kernel-mode auditing and forward Windows Defender Exploit Guard telemetry to a centralized SIEM for correlation
  • Monitor driver load events and verify the patched version of ksthunk.sys is present after the September 2024 cumulative update
  • Track execution of known local privilege escalation tooling (for example, PsExec abuse, token manipulation utilities) that could stage this CVE

How to Mitigate CVE-2024-38237

Immediate Actions Required

  • Apply the September 2024 Microsoft security updates to all affected Windows 10, Windows 11, and Windows Server systems
  • Prioritize patching on multi-user systems, Remote Desktop hosts, and jump servers where local accounts are most exposed
  • Restrict local logon rights and enforce least privilege for standard users and service accounts
  • Audit endpoints for missing updates and confirm ksthunk.sys reports the patched build after reboot

Patch Information

Microsoft released fixes for CVE-2024-38237 in the September 10, 2024 Patch Tuesday cycle. Detailed update packages for each affected OS build are available in the Microsoft CVE-2024-38237 Advisory. Apply the cumulative security update that corresponds to the installed Windows build and reboot to activate the kernel driver replacement.

Workarounds

  • No official vendor workaround is documented; patching is the required remediation
  • Reduce exposure by removing unnecessary local administrator and interactive logon rights for standard users
  • Enforce application allowlisting (for example, Windows Defender Application Control) to block execution of untrusted binaries that could carry an exploit
bash
# Verify patch level on Windows after applying September 2024 updates
wmic qfe list brief | findstr /i "KB504"

# Confirm ksthunk.sys file version matches the patched build
powershell -Command "(Get-Item C:\Windows\System32\drivers\ksthunk.sys).VersionInfo.FileVersion"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.