Skip to main content
Mallory
HighExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2024-30051: Windows DWM Core Library Elevation of Privilege

Published May 14, 2024 · Updated 13 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days1 mention · peak 1 in a dayToday
CVSS7.8High · v3.1
EPSS2.0%82nd percentile
CISA KEVYesAdded May 14, 2024
In the wildActivePer CISA KEV
Vendor
Microsoft Corporation
IdentifiersCVE-2024-30051CWE-269

CVE-2024-30051 is a local elevation-of-privilege vulnerability in the Windows Desktop Window Manager (DWM) Core Library. An authenticated attacker with standard-user privileges can submit a specially crafted request to gain SYSTEM privileges. The vulnerability has a CVSS score of 7.8 and was exploited as a zero-day before Microsoft released a fix on May 14, 2024. Exploitation has been observed alongside QakBot and other malware, with multiple threat actors believed to possess the exploit.

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 privilege boundary between a standard user and SYSTEM, enabling full control of the affected host. This can permit access to protected data, unauthorized system changes, malware installation, and interference with security controls. Active exploitation makes unpatched hosts a demonstrated post-compromise escalation target.

Mitigation

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

Use updated endpoint protection capable of detecting CVE-2024-30051 exploitation and associated malware. Monitor endpoint process telemetry for privilege-escalation behavior and investigate anomalous elevated process creation. These measures provide detection and defense in depth, not a replacement for patching; no vulnerability-specific preventive workaround is established.

Remediation

Patch, then assume compromise.

Apply the Microsoft Windows security updates released on May 14, 2024, or later cumulative updates that include the fix for the installed Windows version. Prioritize affected hosts because exploitation is confirmed and the vulnerability is listed in CISA's Known Exploited Vulnerabilities catalog.

Public exploits

Exploits

3 exploits validated by Mallory's analysis.

View more in app →
CVE-2024-30051This 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.devianntsec · Disclosed Mar 25, 2026 · cpp · c++ · localOperationalCVE-2024-30051-DWMHeapOverflow-Masters-ThesisThis 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.devianntsec · Disclosed Mar 25, 2026 · c++ · batch · localOperationalCVE-2024-30051This 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.fortra · Disclosed Aug 14, 2024 · c++ · 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
FAQ

Frequently asked questions

Is CVE-2024-30051 exploited in the wild?
Yes. As of Nov 14, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on May 14, 2024.
Is there a public exploit for CVE-2024-30051?
Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2024-30051, the earliest disclosed Aug 14, 2024.
Is there a patch for CVE-2024-30051?
Apply the Microsoft Windows security updates released on May 14, 2024, or later cumulative updates that include the fix for the installed Windows version. Prioritize affected hosts because exploitation is confirmed and the vulnerability is listed in CISA's Known Exploited Vulnerabilities catalog.
What products are affected by CVE-2024-30051?
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 6 more.
How severe is CVE-2024-30051?
CVE-2024-30051 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 2.0% (82nd percentile) as of Nov 14, 2026.
Activity feed

Recent activity

16 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+10 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
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 evidenceEvery report linking this CVE to a named adversary.
Associated malware4Malware families linked to this CVE, with evidence and IOCs.
Detection signatures2YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity1Community discussion across Reddit, Mastodon, and other social sources.