Skip to main content
Mallory
HighExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2021-1732: Windows Win32k Window Object Type Confusion Privilege Escalation

Published Feb 25, 2021 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.8High · v3.1
EPSS78.4%100th percentile
CISA KEVYesAdded Nov 3, 2021
In the wildActivePer CISA KEV
Vendor
Microsoft Corporation
IdentifiersCVE-2021-1732CWE-843

CVE-2021-1732 is a local elevation-of-privilege vulnerability in Windows Win32k caused by window object type confusion that leads to an out-of-bounds write. Exploits can establish arbitrary kernel-memory read and write primitives and replace the current process token with the SYSTEM token. Affected platforms include Windows 10 and Windows Server 2019. The vulnerability was exploited as a zero-day by BITTER before Microsoft released security updates on February 9, 2021, and was subsequently incorporated into multiple malware families.

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.

A low-privileged attacker can obtain SYSTEM privileges on an affected host, compromising system confidentiality, integrity, and availability. Elevated execution enables access to protected data, modification of system settings, and deployment of additional malicious components. The vulnerability has been used in espionage, ransomware, and cryptocurrency-mining attack chains. Microsoft assigned a CVSS 3.1 base score of 7.8.

Mitigation

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

No vulnerability-specific workaround is established by the available information. Pending patching, restrict untrusted local code execution and access to affected hosts, and maintain endpoint protection capable of detecting privilege-escalation exploits. These measures reduce exposure but do not correct the Win32k flaw.

Remediation

Patch, then assume compromise.

Install Microsoft's security updates released on February 9, 2021, for the affected Windows release, or a superseding cumulative update. KB4601319 is one relevant update checked by observed Windows 10 exploits; it is not a universal update identifier for every affected release. Verify that the applicable update is installed across affected hosts.

Public exploits

Exploits

8 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_2022_21882_win32k.rbThis repository contains a single Metasploit module implementing a local privilege escalation exploit for the Win32k ConsoleControl Offset Confusion vulnerability (CVE-2022-21882), which is a patch bypass of CVE-2021-1732. The exploit targets Windows 10 (versions 1803-21H2 x64), Windows 11 21H2, Server 2019, and Server 2022. The module is written in Ruby and leverages Metasploit's post-exploitation and reflective DLL injection capabilities. The exploit works by manipulating the WndExtra field of a window object in the Windows kernel, leading to an out-of-bounds write and privilege escalation to SYSTEM. The payload is customizable and injected as a DLL, typically resulting in a privileged Meterpreter shell. The module includes checks for target compatibility and architecture, and will fail gracefully if the session is already elevated or if the architecture is unsupported. The only fingerprintable endpoint is the DLL file used for injection. The repository is weaponized, as it is part of the Metasploit framework and allows for easy payload customization and deployment.Disclosed Feb 9, 2021 · Framework: metasploit · ruby · localWeaponizedCVE-2021-1732_expThis repository contains a working local privilege escalation exploit for CVE-2021-1732, a vulnerability in the Windows Win32k component affecting Windows 10 versions 1809 and 1909 x64. The main exploit logic is implemented in 'CVE-2021-1732_Exploit.cpp', which is a C++ source file. The exploit abuses window and menu object manipulation to achieve arbitrary kernel memory read/write, ultimately replacing the process token to gain SYSTEM privileges. The repository includes Visual Studio project files for building the exploit, as well as documentation in both English and Chinese. The exploit must be run locally on a vulnerable system and, if successful, provides a SYSTEM shell. No network or remote attack vector is present; the exploit is strictly local. The code is operational and demonstrates a full privilege escalation chain, but does not include a customizable payload framework.linuxdy · Disclosed Apr 2, 2021 · cpp · localOperationalCVE-2021-1732The repository contains a standalone C++ exploit for CVE-2021-1732, not a detection script or an exploit-framework module. Its eight files comprise a Visual Studio solution, project and filter metadata, the main exploit source, two utility files, a HookLib header, and a .gitignore. Four files contain C++ source or declarations. The visible exploit defines a 512-window spray, locates HMValidateHandle through user32!IsMenu, and calculates window-object offsets relative to the desktop heap. Its user-mode callback proxy invokes NtUserConsoleControl with control code 0x6 and supplies a desktop-heap-relative value through NtCallbackReturn during window extra-byte allocation. Later visible code uses manipulated neighboring window objects and fake-menu-based reads to access kernel memory, redirects window extra-byte writes into a token object, modifies token fields, and invokes CreateEopProc(). It subsequently restores several altered window fields. Util.cpp resolves NtQuerySystemInformation and enumerates extended system handles to obtain kernel object addresses. HookLib.h supplies generic interception declarations and wrappers, not a separate exploitation framework. The exploit is architecture- and build-sensitive: it uses x64 intrinsics and hardcoded TEB, thread, desktop, window, and token offsets. Although the solution lists x86 and x64 configurations, the visible implementation targets x64, and only Debug x64 explicitly configures HookLib search paths. Required HookLib and Zydis library binaries are missing from the inventory. The main source is truncated, preventing confirmation of the complete trigger sequence and elevated-process payload. No network communication, remote target, registry access, persistence, or exfiltration is visible. Repository URL, Git reference, and archive size were not supplied; empty metadata and a zero size represent unknown values.po4sec · Disclosed Apr 23, 2021 · cpp · localOperationalWindows-Privilege-Escalation-CVE-2021-1732This repository contains a working local privilege escalation exploit for CVE-2021-1732, a vulnerability in the Windows kernel (Win32k component) affecting Windows 10 (versions 1803-20H2) and Windows Server 2019/2004. The main exploit logic is implemented in 'CVE-2021-1732/CVE-2021-1732.cpp', which orchestrates the attack by creating and manipulating window objects, spraying window handles, and abusing internal kernel structures via user-mode callbacks and desktop heap offsets. The exploit leverages custom hooks (via HookLib) and direct system calls to manipulate kernel memory and escalate privileges to SYSTEM. Supporting files include utility code for handle enumeration and project files for building the exploit. The README provides affected versions and a demonstration GIF. No network endpoints are present; the attack vector is strictly local, requiring code execution on a vulnerable Windows system. The exploit is operational and provides a SYSTEM shell or process upon success.exploitblizzard · Disclosed Apr 25, 2021 · c++ · xml · localOperationalCVE-2021-1732This repository contains a working local privilege escalation exploit for CVE-2021-1732, a vulnerability in the Windows kernel (win32k.sys) affecting multiple versions of Windows 10 and Windows Server. The main file, 'CVE-2021-1732_Exploit.cpp', is a C++ implementation that leverages window and menu object manipulation to achieve arbitrary kernel memory read/write, ultimately allowing the attacker to escalate privileges to SYSTEM. The exploit is operational and requires local access to a vulnerable system. The README provides a list of affected Windows versions and a demonstration image. No network endpoints are present; the attack vector is purely local. The code interacts with system DLLs such as user32.dll and targets the win32k.sys kernel driver. The repository is structured simply, with one exploit source file and a README.fenalik · Disclosed Nov 1, 2022 · cpp · localOperationalCVE-2021-1732This repository contains a working local privilege escalation exploit for CVE-2021-1732, a Windows kernel vulnerability affecting multiple versions of Windows 10 and Windows Server. The main file, 'CVE-2021-1732_Exploit.cpp', is a C++ implementation that leverages window and menu object manipulation to achieve arbitrary kernel memory read/write, ultimately elevating the attacker's privileges to SYSTEM. The exploit is operational and requires local access to a vulnerable system. The README provides a comprehensive list of affected Windows versions and a demonstration image. No network endpoints are present; the attack vector is purely local. The code interacts with Windows system DLLs (notably user32.dll) and kernel structures, and is intended for advanced users familiar with Windows internals and exploit development.4dp · Disclosed Mar 9, 2023 · cpp · localOperationalCVE-2019-11707-from-an-IonMonkey-type-confusion-to-SYSTEM-The repository contains a short README and one 56 KB self-contained HTML/JavaScript exploit. `exploit.html` implements a staged browser-to-SYSTEM chain: it parses stage/run/retry parameters, performs low-level JavaScript memory manipulation consistent with an IonMonkey native-code-execution attempt for CVE-2019-11707, and uses a privileged `Prompt:Open` message path intended to reach the Firefox parent process (CVE-2019-11708). It then includes a large Base64-embedded Donut x64 payload described as a CVE-2021-1732 Windows privilege-escalation executable. The stated final action is an elevated `cmd.exe /k whoami` command prompt. It has retry and pointer-drift checks, restores modified class pointers on exceptions, and contains optional localhost-only hold/signaling instrumentation; it does not require external exploit hosting, fixed module bases, or profile modifications according to its comments. The README only links to external research and a demonstration video.G4sp4rCS · Disclosed Sep 23, 2026 · html · javascript · browser · localOperationalCVE-2021-1732This repository contains a working proof-of-concept (PoC) exploit for CVE-2021-1732, a local privilege escalation vulnerability in Microsoft Windows 10 (x64), specifically in the win32k.sys kernel component. The main exploit logic resides in 'CVE-2021-1732/CVE-2021-1732.cpp', which orchestrates the attack by creating and manipulating a large number of window objects, exploiting the desktop heap, and leveraging internal Windows APIs and structures. The exploit uses custom hooking (via HookLib) and direct system calls to manipulate kernel memory, ultimately allowing the attacker to overwrite process tokens and spawn a process with SYSTEM privileges. Supporting files include utility code for querying system handles and project files for building the exploit with Visual Studio. No network endpoints are present; the attack vector is strictly local, requiring code execution on the target machine. The code is a functional PoC and demonstrates a deep understanding of Windows internals and kernel exploitation techniques.Pai-Po · Disclosed Apr 23, 2021 · c++ · 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 1803operating_system
Microsoft CorporationWindows 10 1809operating_system
Microsoft CorporationWindows 10 1909operating_system
Microsoft CorporationWindows 10 2004operating_system
Microsoft CorporationWindows 10 20h2operating_system
Microsoft CorporationWindows Server 1909operating_system
Microsoft CorporationWindows Server 2004operating_system
Microsoft CorporationWindows Server 2019operating_system
Microsoft CorporationWindows Server 20h2operating_system
FAQ

Frequently asked questions

Is CVE-2021-1732 exploited in the wild?
Yes. As of Oct 29, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 3, 2021.
Is there a public exploit for CVE-2021-1732?
Yes. Mallory tracks 8 public exploits or proofs of concept for CVE-2021-1732, the earliest disclosed Feb 9, 2021.
Is there a patch for CVE-2021-1732?
Install Microsoft's security updates released on February 9, 2021, for the affected Windows release, or a superseding cumulative update. KB4601319 is one relevant update checked by observed Windows 10 exploits; it is not a universal update identifier for every affected release.
What products are affected by CVE-2021-1732?
Microsoft Corporation Windows Server 2019, Microsoft Corporation Windows 10 1803, Microsoft Corporation Windows 10 1809, Microsoft Corporation Windows 10 1909, Microsoft Corporation Windows 10 2004, and 4 more.
How severe is CVE-2021-1732?
CVE-2021-1732 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 78.4% (100th percentile) as of Oct 29, 2026.
Activity feed

Recent activity

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

View more in app →
+17 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 evidence11Every report linking this CVE to a named adversary.
Associated malware14Malware 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 activity7Community discussion across Reddit, Mastodon, and other social sources.