Skip to main content
Mallory
HighExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2024-30088: Windows Kernel TOCTOU Race Condition Privilege Escalation

Published Jun 11, 2024 · Updated 2 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days3 mentions · peak 1 in a dayToday
CVSS7.0High · v3.1
EPSS68.2%99th percentile
CISA KEVYesAdded Oct 15, 2024
In the wildActivePer CISA KEV
Vendor
Microsoft Corporation
IdentifiersCVE-2024-30088CWE-367 · Time-of-check Time-of-use (TOCTOU)…

CVE-2024-30088 is a local elevation-of-privilege vulnerability in the Windows kernel affecting Windows 10 and Windows 11. A double-fetch time-of-check/time-of-use race occurs in AuthzBasepCopyoutInternalSecurityAttributes, reached through NtQueryInformationToken when querying TokenAccessInformation. During the copying of token security attributes into a user-controlled output buffer, the kernel stores and subsequently reuses a UNICODE_STRING buffer pointer that another thread can modify between operations. Winning the race redirects a kernel-mode copy and provides a constrained kernel-memory write primitive. Attackers can use this primitive to modify access-token privileges and ultimately execute arbitrary code as SYSTEM. Microsoft patched the vulnerability in June 2024.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

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

Successful exploitation compromises the local Windows security boundary by allowing a low-privileged process to obtain SYSTEM-level execution. This enables access to protected data, privileged system modification, installation of persistence mechanisms, and interference with security controls. A demonstrated exploitation chain also escapes the Chrome renderer sandbox from Untrusted Integrity Level, although it requires additional steps to overcome sandbox restrictions. Incorrectly targeted kernel writes can corrupt adjacent structures and cause a system crash. Exploitation does not independently provide initial remote access.

Mitigation

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

No vulnerability-specific workaround is established. Until patching is complete, restrict execution of untrusted applications and scripts, limit unnecessary local access, and use EDR monitoring to detect suspicious privilege escalation, process injection, and privileged persistence activity. Isolate compromised systems and restrict lateral movement through segmentation. These measures reduce exposure or downstream impact but do not eliminate the kernel race condition.

Remediation

Patch, then assume compromise.

Install the applicable Microsoft Windows security updates released in June 2024 that address CVE-2024-30088, or subsequent cumulative updates containing the fix. Select updates for the exact Windows version and architecture, complete any required restart, and verify deployment across affected endpoints. Upgrade unsupported Windows installations to a supported release capable of receiving security updates.

Public exploits

Exploits

6 exploits validated by Mallory's analysis. Hidden: 2 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.

View more in app →
CVE-2024-30088-Windows-pocThis 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-Kaiser · Disclosed Jul 5, 2024 · c++ · localOperationalCVE-2024-30088__Windows-TOCTOU-exploitThis 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.repo4Chu · Disclosed Apr 16, 2026 · cpp · xml · localOperationalCVE-2024-30088This 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.tykawaii98 · Disclosed Jun 24, 2024 · cpp · c · localPoCCVE-2024-30088-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.NextGenPentesters · Disclosed Jun 27, 2024 · cpp · localPoCcollateral-damageThis 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-forsale · Disclosed Jul 15, 2024 · c · asm · network · localPoCCVE-2024-30088This 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.Admin9961 · Disclosed Jul 27, 2024 · python · localPoC
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
FAQ

Frequently asked questions

Is CVE-2024-30088 exploited in the wild?
Yes. As of Nov 22, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Oct 15, 2024.
Is there a public exploit for CVE-2024-30088?
Yes. Mallory tracks 6 public exploits or proofs of concept for CVE-2024-30088, the earliest disclosed Jun 24, 2024.
Is there a patch for CVE-2024-30088?
Install the applicable Microsoft Windows security updates released in June 2024 that address CVE-2024-30088, or subsequent cumulative updates containing the fix. Select updates for the exact Windows version and architecture, complete any required restart, and verify deployment across affected endpoints.
What products are affected by CVE-2024-30088?
Microsoft Corporation Windows 10 1507, Microsoft Corporation Windows 10 1607, Microsoft Corporation Windows 10 1809, Microsoft Corporation Windows 10 21h2, Microsoft Corporation Windows 10 22h2, and 8 more.
How severe is CVE-2024-30088?
CVE-2024-30088 has a CVSS v3.1 score of 7.0 (High) and an EPSS score of 68.2% (99th percentile) as of Nov 22, 2026.
Mallory platform

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, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence8Every report linking this CVE to a named adversary.
Associated malware4Malware families linked to this CVE, with evidence and IOCs.
Detection signatures1YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity11Community discussion across Reddit, Mastodon, and other social sources.