Skip to main content
Meet us at Black Hat USA 2026— Las Vegas, August 1–6Book a Meeting
Mallory
HighCISA KEVExploited in the wildPublic exploit

Windows Kernel TOCTOU Race Condition Elevation of Privilege

IdentifiersCVE-2024-30088CWE-367· Time-of-check Time-of-use (TOCTOU)…

CVE-2024-30088 is a Windows kernel elevation of privilege vulnerability in ntoskrnl.exe caused by a double-fetch / time-of-check time-of-use race condition. The available technical analysis ties the bug to NtQueryInformationToken when TokenInformationClass is TokenAccessInformation. During processing, kernel routines including SepCopyTokenAccessInformation, AuthzBasepQueryInternalSecurityAttributesToken, and specifically AuthzBasepCopyoutInternalSecurityAttributes operate on a user-controlled output buffer containing a UNICODE_STRING. The kernel first stores a pointer in the user buffer and later copies a string to the memory referenced by that pointer; a racing thread can modify the UNICODE_STRING Buffer pointer between validation/use, producing a constrained kernel write primitive. Public proof-of-concept material shows this primitive being used to overwrite token privilege data, including the SeDebugPrivilege bit, to elevate a process from Medium Integrity to SYSTEM. Additional analysis indicates the bug can be chained from a Chrome renderer sandbox by first bypassing integrity restrictions and then using the write primitive for token manipulation.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows local elevation of privilege to SYSTEM. The write primitive can be used to modify security-sensitive kernel data structures such as process token privilege fields, enabling arbitrary code execution in the context of SYSTEM. Public reporting also states the flaw has been exploited in the wild by OilRig/APT34. In sandboxed scenarios, researchers demonstrated chaining the issue to escape the Chrome renderer sandbox and elevate from Untrusted Integrity Level to SYSTEM. Because exploitation involves corruption of kernel memory, failed attempts may also destabilize the system and trigger a bugcheck/BSOD.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is not possible, reduce opportunities for local code execution by untrusted users and applications. Harden endpoints with application control, least-privilege enforcement, and restrictions on execution from user-writable locations. Reduce exposure to post-compromise privilege escalation by limiting initial access vectors, monitoring for suspicious NtQueryInformationToken abuse and anomalous token manipulation behavior, and using EDR controls to detect exploit chains targeting kernel EoP. Browser and application sandboxing still provides value, but should not be relied upon as a sole control against this vulnerability until systems are patched.

Remediation

Patch, then assume compromise.

Apply Microsoft's security updates for CVE-2024-30088 released in June 2024 and ensure all affected Windows systems are updated to a patched build. Prioritize patching on systems where local code execution by untrusted users is possible, including multi-user workstations, VDI environments, developer endpoints, and browsers or applications that rely on sandboxing. Validate patch deployment across supported Windows versions and retire unsupported builds that no longer receive security updates.
PUBLIC EXPLOITS

Exploits

6 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos (3 hidden).

VALID 6 / 9 TOTALView more in app
CVE-2024-30088__Windows-TOCTOU-exploitMaturityPoCVerified exploit

This repository is a compact Visual Studio C++ proof-of-concept for CVE-2024-30088, adapted specifically for non-interactive execution environments such as WinRM. The repo contains a solution file, one main source file (poc/main.cpp), one helper header (poc/ex.h), and standard Visual Studio project metadata. README.md explains that the original exploit was modified to avoid interactive cmd.exe usage, replacing visible console creation with hidden execution and adding synchronous waiting and verbose logging. The exploit is a local privilege escalation PoC targeting Microsoft Windows. In main.cpp, it opens the current process token, uses helper logic from ex.h to recover the kernel pointer associated with that token via NtQuerySystemInformation(SystemExtendedHandleInformation), and then repeatedly calls NtQueryInformationToken while a racing thread corrupts fields in the token security attributes structure. The goal is to win a race condition and subsequently obtain a powerful handle to winlogon.exe, a SYSTEM process. Once successful, the code uses CreateProcessFromHandle in ex.h to create a new process with the privileged process handle set as the parent process attribute, effectively launching a child process as SYSTEM. The final stage is operational rather than generic: it hardcodes execution of PowerShell with the command to start C:\temp\shellz.exe. The process is created with EXTENDED_STARTUPINFO_PRESENT | CREATE_NO_WINDOW, making it suitable for WinRM or other headless sessions. This is not a scanner or detector; it is a real exploit PoC with a built-in payload launcher. There are no network endpoints or remote C2 indicators in the code. The main fingerprintable artifacts are local Windows paths, native API usage, and the explicit targeting of winlogon.exe as the privileged parent process.

repo4ChuDisclosed Apr 16, 2026cppxmllocal
CVE-2024-30088-MaturityPoCVerified exploit

This repository contains a local privilege escalation proof-of-concept (POC) exploit for Microsoft Windows, targeting a Time-of-check Time-of-use (TOCTOU) race condition (CWE-367) in token handling. The main exploit logic is implemented in 'main.cpp', with supporting functions in 'ex.h'. The exploit works by racing the system's token information retrieval and manipulation, ultimately obtaining a handle to the SYSTEM process (winlogon.exe) and spawning a SYSTEM-level command prompt (cmd.exe). The Visual Studio project files (.sln, .vcxproj, etc.) are present to facilitate building the exploit. The exploit requires local code execution and does not target any network endpoints. Its primary capability is privilege escalation from a regular user to SYSTEM on Windows platforms.

NextGenPentestersDisclosed Jun 27, 2024cpplocal
CVE-2024-30088MaturityPoCVerified exploit

This repository contains a Python proof-of-concept (PoC) exploit for CVE-2024-30088, a local privilege escalation vulnerability affecting the Microsoft Windows kernel. The main file, CVE-2024-30088.py, uses the ctypes library to interact with low-level Windows APIs, mimicking the behavior of a typical C/C++ kernel exploit. The exploit attempts to obtain a handle to the winlogon.exe process, manipulates kernel memory via a race condition, and ultimately spawns a SYSTEM-level command prompt (cmd.exe). The README.md provides context, explaining that this is a technical exercise and warning that the Python implementation may be unstable compared to the original C++ exploit. The exploit is local-only, requiring code execution on the target system, and does not involve any network endpoints. The structure is straightforward: one Python exploit file and a README. The exploit demonstrates advanced process and memory manipulation techniques in Python, but is primarily for educational and demonstration purposes.

Admin9961Disclosed Jul 27, 2024pythonlocal
collateral-damageMaturityPoCVerified exploit

This repository implements a kernel exploit for Xbox SystemOS (CVE-2024-30088), targeting Xbox One and Xbox Series consoles running specific kernel versions. The exploit chain is initiated via the Game Script UWP application, with payloads delivered either through a full-trust file explorer or a USB keyboard simulator. The main exploit code (in C) leverages a race condition and a CPU side channel to achieve kernel code execution, ultimately elevating privileges to SYSTEM. Post-exploitation, the code can spawn a reverse shell (cmd.exe) or inject an SSH server into a privileged process, providing the attacker with full control over the console. The exploit requires the attacker to listen on TCP port 7070 for incoming connections from the compromised console. The repository is well-structured, with clear separation between the exploit logic, post-exploitation payloads, and supporting artifacts. It is operational and provides a working SYSTEM shell or arbitrary code execution on vulnerable Xbox consoles.

exploits-forsaleDisclosed Jul 15, 2024casmnetworklocal
CVE-2024-30088MaturityPoCVerified exploit

This repository contains a working local privilege escalation exploit for CVE-2024-30088, a race condition in the Windows kernel's AuthzBasepCopyoutInternalSecurityAttributes function. The exploit is implemented in C++ and consists of two main code files: 'poc/main.cpp' (the exploit logic) and 'poc/ex.h' (helper functions for process and handle manipulation). The exploit works by racing the kernel's copying of security attribute structures, allowing an attacker to achieve an arbitrary write in kernel memory. The exploit then targets the winlogon.exe process to obtain a SYSTEM token and spawns a SYSTEM-level command prompt (cmd.exe). The repository includes Visual Studio project files for building the exploit. No network endpoints are involved; the attack vector is purely local. The exploit is operational and demonstrates a full privilege escalation chain on unpatched Windows systems.

tykawaii98Disclosed Jun 24, 2024cppclocal
CVE-2024-30088-Windows-pocMaturityPoCVerified exploit

This repository is a proof-of-concept (PoC) exploit for CVE-2024-30088, a local privilege escalation vulnerability in Microsoft Windows 10 x64. The vulnerability exists in the NtQueryInformationToken function, specifically due to improper locking in the AuthzBasepCopyoutInternalSecurityAttributes function, which can be exploited via a race condition. The exploit is implemented in C++ and consists of two main code files: 'poc/main.cpp' (the main exploit logic) and 'poc/ex.h' (helper functions and structures). The exploit works by racing the kernel to manipulate token security attributes, ultimately obtaining a handle to the SYSTEM process (winlogon.exe) and using it to spawn a SYSTEM-level command prompt (cmd.exe). The exploit requires local code execution and patience, as the race condition may take several attempts to win. The repository includes Visual Studio project files for building the PoC. No network or remote attack vectors are present; this is a purely local privilege escalation exploit.

Zombie-KaiserDisclosed Jul 5, 2024c++local
EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Microsoft CorporationWindows 10 1507operating_system
Microsoft CorporationWindows 10 1607operating_system
Microsoft CorporationWindows 10 1809operating_system
Microsoft CorporationWindows 10 21h2operating_system
Microsoft CorporationWindows 10 22h2operating_system
Microsoft CorporationWindows 11 21h2operating_system
Microsoft CorporationWindows 11 22h2operating_system
Microsoft CorporationWindows 11 23h2operating_system
Microsoft CorporationWindows Server 2016operating_system
Microsoft CorporationWindows Server 2019operating_system
Microsoft CorporationWindows Server 2022operating_system
Microsoft CorporationWindows Server 2022 23h2operating_system
Microsoft CorporationWindows Server 23h2operating_system

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence5

Every observed campaign linking this CVE to a named adversary.

Associated malware1

Malware families riding this exploit, with evidence and IOCs.

Detection signatures1

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity7

Community discussion across Reddit, Mastodon, and other social sources.