CVE-2021-1732 — Microsoft Win32k Privilege Escalation Vulnerability

CVE-2021-1732

Windows Win32k Kernel Driver — Out-of-Bounds Write Zero-Day Enables Low-Privileged User to Escalate to SYSTEM; Exploited in Targeted Campaigns Before February 2021 Patch

What is Windows Win32k?

Win32k.sys is the Windows kernel-mode driver responsible for the graphical user interface subsystem — it implements window management, the GDI (Graphics Device Interface), and the interface between user-mode applications and the kernel-mode graphics and windowing functions. Win32k handles window creation, message passing, callbacks, and graphical operations for every Windows application. Because Win32k operates in kernel mode and processes input from user-mode applications (attacker-controlled data reaching kernel code), it has historically been one of the most heavily exploited Windows kernel components — Win32k privilege escalation zero-days are a staple of advanced persistent threat campaigns and exploit kit chains.

Overview

CVE-2021-1732 is an out-of-bounds write vulnerability (CWE-787) in the Windows Win32k kernel driver that allows a low-privileged local attacker to escalate privileges to SYSTEM. It was exploited as a zero-day in targeted campaigns before Microsoft patched it in February 2021 Patch Tuesday. Researchers at DBAPPSecurity discovered the active exploitation and reported it to Microsoft. CVE-2021-1732 follows the well-established pattern of Win32k LPE zero-days used as the second stage of browser/application exploit chains — an initial renderer or application exploit delivers code execution, then a Win32k LPE escalates from low-privilege sandbox to SYSTEM, achieving full host compromise.

Affected Versions

Product Vulnerable Fixed
Windows 10, version 1803 and later Yes February 2021 Patch Tuesday
Windows Server 2019 Yes February 2021 Patch Tuesday
Windows Server version 1903 and later Yes February 2021 Patch Tuesday

Technical Details

  • Root cause: Out-of-bounds write (CWE-787) in Win32k — a kernel window callback mechanism or window object management function writes beyond the bounds of an allocated kernel buffer when processing attacker-controlled parameters; this corrupts adjacent kernel memory, providing a primitive for privilege escalation
  • Window callback exploitation: Win32k OOB write vulnerabilities are commonly exploited via SetWindowLongPtr, SendMessage, or window creation APIs that trigger kernel callbacks with attacker-controlled data, causing the out-of-bounds condition in kernel context
  • SYSTEM escalation: Corrupting kernel memory through the Win32k OOB write enables the attacker to overwrite kernel security tokens or function pointers — standard techniques for elevating from low-privilege user to SYSTEM in Windows kernel exploitation
  • Zero-day exploitation pattern: CVE-2021-1732 was used as a sandbox escape or LPE stage in attack chains — a browser or document exploit achieves low-privilege code execution, then CVE-2021-1732 escalates to SYSTEM, enabling installation of malware, credential theft, and persistence
  • Ransomware use: Win32k LPE zero-days are incorporated into ransomware operator toolkits because they enable attackers to escalate from limited initial access to full SYSTEM control on Windows hosts without triggering anti-exploit mitigations that target user-mode techniques

Discovery

Discovered by JinQuan, MaDongZe, TuXiaoYi, and LiHao from DBAPPSecurity while investigating targeted attacks in the wild. The researchers identified the zero-day being exploited in targeted campaigns and reported it to Microsoft, which patched it in February 2021 Patch Tuesday. The CISA KEV addition in November 2021 reflects continued exploitation of unpatched Windows systems after the patch was available.

Exploitation Context

CVE-2021-1732 was exploited in targeted campaigns before Microsoft could patch it — a classic zero-day LPE used by sophisticated actors. Win32k privilege escalation zero-days are especially valuable because they work against any Windows version without requiring specific application vulnerabilities, making them broadly applicable once acquired. The February 2021 timing, coinciding with significant browser zero-day activity (multiple Chrome zero-days in Q1 2021) and Exchange server exploitation (ProxyLogon in March 2021), reflects a period of intensive exploitation across Windows attack surfaces. The ransomwareUse classification reflects that Win32k LPE capabilities are routinely acquired and incorporated into ransomware operator toolkits for privilege escalation during deployment.

Remediation

  1. Apply February 2021 Patch Tuesday updates for all affected Windows versions
  2. Keep Windows fully updated via Windows Update or WSUS — Win32k vulnerabilities are patched as part of the monthly cumulative update
  3. Enable Windows Defender Exploit Guard and kernel exploit mitigations: Credential Guard, Hypervisor-Protected Code Integrity (HVCI), and Windows Defender Application Guard limit the impact of kernel exploitation
  4. Use least-privilege user accounts for day-to-day operations — AV:L requires local code execution before LPE; minimizing the attack surface that delivers initial execution limits exposure
  5. Enable Protected Process Light (PPL) for sensitive processes to limit what SYSTEM-level code can access even after successful Win32k exploitation
  6. Monitor for process privilege escalation events in Windows Security event logs: event ID 4672 (special privileges assigned to new logon) for unexpected SYSTEM processes

Key Details

PropertyValue
CVE ID CVE-2021-1732
Vendor / Product Microsoft — Win32k
NVD Published2021-02-25
NVD Last Modified2025-10-30
CVSS 3.1 Score7.8
CVSS 3.1 VectorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
SeverityHIGH
CWE CWE-787 find similar ↗
CISA KEV Added2021-11-03
CISA KEV Deadline2021-11-17
Known Ransomware Use ⚠️ Yes

CVSS 3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Required Action

CISA BOD 22-01 Deadline: 2021-11-17. Apply updates per vendor instructions.

Timeline

DateEvent
2021-01-01CVE-2021-1732 exploited in targeted attacks in the wild as a zero-day before patch availability
2021-02-09Microsoft patches CVE-2021-1732 in February 2021 Patch Tuesday
2021-02-25CVE published; DBAPPSecurity researchers credited with discovery
2021-11-03Added to CISA Known Exploited Vulnerabilities catalog
2021-11-17CISA BOD 22-01 remediation deadline

References

ResourceType
Microsoft Security Advisory — CVE-2021-1732 Vendor Advisory
NVD — CVE-2021-1732 Vulnerability Database
CISA KEV Catalog Entry US Government