Skip to main content
Mallory
HighCISA KEVExploited in the wildPublic exploit

Windows DWM Core Library Elevation of Privilege Vulnerability

IdentifiersCVE-2024-30051CWE-269

CVE-2024-30051 is an elevation-of-privilege vulnerability in the Windows Desktop Window Manager (DWM) Core Library. Microsoft describes it as a DWM Core Library EoP flaw, and multiple sources in the provided content state that successful exploitation allows an attacker to gain SYSTEM privileges. The content further indicates the issue was exploited in the wild as a zero-day prior to Microsoft’s May 14, 2024 patch release. Researchers cited in the content validated the bug as a real DWM zero-day after reviewing exploit-related material, then later observed exploit use in the wild together with QakBot and other malware. Specific vulnerable functions, root cause details, and patch-diff-level technical internals are not provided in the supplied content.

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 results in local privilege escalation to NT AUTHORITY\SYSTEM. In practical terms, this enables an attacker who already has code execution on a Windows host to take full control of the affected system, including executing payloads with highest local privileges, disabling or tampering with security controls, installing malware, and facilitating follow-on activity. The content also states the vulnerability was abused by multiple threat actors and observed in campaigns involving QakBot and other malware families.

Mitigation

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

If immediate patching is not possible, reduce exposure by limiting attackers’ ability to obtain initial code execution on endpoints and by monitoring for post-compromise privilege-escalation behavior. The content specifically references detection opportunities around suspicious child processes spawned by consent.exe in relation to CVE-2024-30051/UAC-bypass-style activity. Additional temporary measures include aggressive EDR monitoring for local privilege-escalation chains, restricting execution of untrusted binaries and scripts, minimizing user ability to run arbitrary code, and isolating systems showing signs of QakBot or related malware activity. No vendor-specific workaround short of patching is provided in the supplied content.

Remediation

Patch, then assume compromise.

Apply Microsoft’s security update released on May 14, 2024 as part of Patch Tuesday. The content states Microsoft assigned CVE-2024-30051 and released a patch on that date. Organizations should prioritize patching because the vulnerability was actively exploited in the wild and added to CISA’s Known Exploited Vulnerabilities catalog. Standard remediation should include verifying update deployment across supported Windows systems and confirming no vulnerable DWM Core Library versions remain in the environment.
PUBLIC EXPLOITS

Exploits

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

VALID 3 / 3 TOTALView more in app
CVE-2024-30051MaturityPoCVerified exploit

This repository is a real local privilege escalation exploit for CVE-2024-30051, a heap-based buffer overflow in Microsoft Windows Desktop Window Manager (dwmcore.dll). It is not part of a larger exploit framework; it is a standalone Visual Studio solution containing two main code components: (1) exploit/exploit_src/main.cpp, the primary exploit executable, and (2) exploit/payload/dllmain.cpp, a DLL payload intended to be loaded by dwm.exe after successful exploitation. Supporting files include Visual Studio project/solution metadata, a setup.bat helper that copies the built DLL to the required hardcoded location, and markdown documentation describing root cause, heap-spray reliability, and disclosure timeline. The exploit’s main capability is local EoP from an unprivileged user to SYSTEM integrity by abusing DirectComposition/DWM internals. Based on the README and visible code, main.cpp performs heap spraying and hole creation, hooks/interposes on DirectComposition-related behavior, triggers the vulnerable path in CCommandBuffer::Initialize, and detects success by monitoring for a new cmd.exe process spawned as a child of dwm.exe. It also logs detailed session activity to %TEMP%\cve_30051_log.txt and supports automatic retries up to MAX_ATTEMPTS. The exploit is operational rather than just a PoC because it includes a working payload chain and automation, but the payload path and behavior are largely hardcoded. The payload DLL is straightforward and clearly malicious in exploit terms: when loaded into dwm.exe, DllMain writes a temporary batch script to %TEMP%\cve30051_shell.bat, launches it via cmd.exe on the interactive desktop WinSta0\Default, displays privilege context using whoami commands, opens an interactive shell, and then schedules cleanup to delete both the dropped DLL at C:\Users\Public\Documents\s11.dll and the temporary batch file. This confirms the exploit’s end goal is arbitrary code execution with elevated privileges, specifically an interactive SYSTEM shell. Fingerprintable artifacts are mostly local file paths and process names rather than network indicators. The most important are the hardcoded DLL path C:\Users\Public\Documents\s11.dll, the log file %TEMP%\cve_30051_log.txt, the temporary script %TEMP%\cve30051_shell.bat, and the target process dwm.exe. No C2, remote callback, or external network endpoint is present in the exploit logic shown. Overall, the repository is a well-documented standalone Windows local exploit with an included payload and academic analysis material.

devianntsecDisclosed Mar 25, 2026cppc++local
CVE-2024-30051-DWMHeapOverflow-Masters-ThesisMaturityPoCVerified exploit

This repository is a standalone Visual Studio exploit project for CVE-2024-30051, a local Windows Desktop Window Manager heap overflow leading to elevation of privilege. It is not part of a framework. The repository contains: (1) a main exploit project in exploit/exploit_src/main.cpp, (2) a payload DLL project in exploit/payload/dllmain.cpp, (3) a helper deployment script setup.bat, and (4) markdown analysis documents describing root cause, heap-spray reliability, and disclosure timeline. The main exploit is a local EoP against DWM/dwmcore.dll. Based on the README and code comments, it uses DirectComposition/D3D/D2D-related APIs, heap spraying, hole creation, and in-process hooking around DWM composition commit/batch processing to reach the vulnerable CCommandBuffer::Initialize path. The exploit includes operational features rather than being a minimal PoC: configurable spray parameters, automatic retry up to 10 attempts, session logging to %TEMP%\cve_30051_log.txt, success detection by enumerating processes and checking for a new cmd.exe associated with DWM activity, and a completion MessageBox summary. The payload is a separate DLL compiled as s11.dll. Successful exploitation causes dwm.exe to load this DLL from the hardcoded path C:\Users\Public\Documents\s11.dll. In DllMain, the payload writes a temporary batch file to %TEMP%\cve30051_shell.bat, launches it via cmd.exe on the interactive desktop WinSta0\Default, displays identity/integrity/privilege information, opens an interactive command shell, and then schedules deletion of both the DLL and the batch file. This makes the repository an operational local privilege-escalation exploit with a bundled post-exploitation payload. Repository structure is small and focused: 16 files total, primarily C++, Visual Studio project metadata, one batch helper, and three analysis markdown documents. The likely execution flow is: build payload -> copy s11.dll to the hardcoded public documents path via setup.bat -> build/run C26f.exe as a standard user -> exploit attempts heap manipulation and overflow -> DWM loads the DLL -> payload spawns a visible elevated shell. No external C2 or network beacons are present; the attack vector is purely local.

devianntsecDisclosed Mar 25, 2026c++batchlocal
CVE-2024-30051MaturityPoCVerified exploit

This repository contains a detailed technical write-up and a functional proof-of-concept (PoC) exploit for CVE-2024-30051, a heap-based buffer overflow in the Windows DWM Core library (dwmcore.dll). The vulnerability allows a local, unprivileged attacker to escalate privileges to SYSTEM by exploiting a flaw in the CCommandBuffer::Initialize method. The repository is structured as a Visual Studio C++ project, with the main exploit logic implemented in 'main.cpp' under the 'Introduccion_C1_C2' directory. Build artifacts and logs are present in the x64/Debug and x64/Release subdirectories, with the compiled exploit outputting as C26f.exe. The README.md provides an in-depth analysis of the vulnerability, reverse engineering steps, and exploitation methodology, including heap spraying, triggering the overflow, and redirecting execution to LoadLibraryA to load a crafted DLL or spawn a SYSTEM-level CMD process. The exploit targets unpatched Windows 10/11 systems (pre-KB5037771) and requires local execution. No network endpoints are involved; all actions are performed locally on the target system. The PoC demonstrates successful privilege escalation by executing a command prompt as the DWM user with SYSTEM integrity.

fortraDisclosed Aug 14, 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

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 evidence1

Every observed campaign linking this CVE to a named adversary.

Associated malware3

Malware families riding this exploit, with evidence and IOCs.

Detection signatures2

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 activity

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