Skip to main content
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 attributes the bug to TokenAccessInformation handling via NtQueryInformationToken, where kernel code ultimately reaches AuthzBasepCopyoutInternalSecurityAttributes. In the vulnerable path, a user-controlled UNICODE_STRING-related pointer is validated and later reused, allowing a racing thread to swap the Buffer pointer between check and copy operations. This creates a partial kernel write primitive. Public reporting and proof-of-concept material indicate the primitive can be used to overwrite token privilege data, including enabling SeDebugPrivilege, to escalate from Medium Integrity to SYSTEM. Additional analysis describes chaining the bug from a Chrome renderer sandbox by first modifying a kernel security descriptor used in restricted-caller checks, then using the resulting access to recover token addresses and complete privilege escalation.

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. Public analysis indicates attackers can execute arbitrary code in the context of SYSTEM after using the write primitive to modify token privilege structures. The vulnerability is suitable for post-compromise privilege escalation and can be chained from constrained contexts, including a browser sandbox, to escape to full system privileges. In observed threat reporting, OilRig/APT34 has been associated with exploitation of this vulnerability.

Mitigation

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

If immediate patching is not possible, reduce opportunities for local code execution and post-compromise privilege escalation: restrict untrusted code execution, harden browser and application sandbox escape paths, minimize user ability to run arbitrary binaries, enforce application control, and monitor for suspicious NtQueryInformationToken/NtQuerySystemInformation abuse and anomalous token privilege changes. These are compensating controls only; no complete mitigation short of patching is provided in the available content.

Remediation

Patch, then assume compromise.

Apply Microsoft's security updates for CVE-2024-30088 as released in the June 2024 Patch Tuesday cycle. Prioritize patching supported Windows systems because the vulnerability affects the Windows kernel and has public proof-of-concept reporting as well as threat-actor exploitation references. Standard remediation is to deploy the vendor fix across affected hosts and verify patch installation through normal vulnerability management processes.
PUBLIC EXPLOITS

Exploits

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

VALID 6 / 8 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 activity4

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