Skip to main content
Mallory
HighExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2020-1054: Windows Win32k Out-of-Bounds Write Privilege Escalation

Published May 21, 2020 · 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.0High · v3.1
EPSS53.9%99th percentile
CISA KEVYesAdded Nov 3, 2021
In the wildActivePer CISA KEV
Vendor
Microsoft Corporation
IdentifiersCVE-2020-1054CWE-787 · Out-of-bounds Write

CVE-2020-1054 is a local elevation-of-privilege vulnerability in the Windows Win32k kernel-mode component. Improper handling of objects in memory results in an out-of-bounds write. An attacker who has logged on to an affected system can execute a specially crafted application to run arbitrary code in kernel mode and take control of the system. The vulnerability has been exploited in the wild by Purple Fox and Raspberry Robin and incorporated into the Underminer exploit kit.

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 permits arbitrary kernel-mode code execution and elevation to SYSTEM privileges. An attacker can install programs, view, modify or delete data, and create accounts with full user rights. In observed malware campaigns, exploitation has supported elevated payload execution and rootkit installation.

Mitigation

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

Because exploitation requires local code execution, reduce exposure by preventing untrusted code execution on endpoints, enforcing application allowlisting, restricting interactive logon to trusted users, and minimizing the presence of unpatched legacy Windows systems. Deploy exploit mitigations and platform hardening such as DEP/NX, ASLR, and endpoint detection controls as defense in depth, but these do not replace patching.

Remediation

Patch, then assume compromise.

Apply Microsoft's security update for CVE-2020-1054, released in May 2020, or a superseding update applicable to the affected Windows version. The update corrects how the Windows kernel-mode driver handles objects in memory.

Public exploits

Exploits

3 exploits validated by Mallory's analysis.

View more in app →
cve_2020_1054_drawiconex_lpe.rbThis repository contains a single Metasploit module implementing a local privilege escalation exploit for CVE-2020-1054, an out-of-bounds write vulnerability in the Windows kernel (win32k.sys) triggered via the DrawIconEx function. The exploit targets Windows 7 x64 SP1 systems with specific win32k.sys versions. The module checks the target's win32k.sys version to determine exploitability, then injects a custom DLL payload (typically Meterpreter) to achieve SYSTEM privileges. The exploit is operational and requires a Meterpreter session on a vulnerable system. The main fingerprintable endpoints are the win32k.sys driver file and the DLL payload used for exploitation. The code is written in Ruby and is structured as a standard Metasploit local exploit module.Disclosed Feb 20, 2020 · Framework: metasploit · ruby · localWeaponizedcve-2020-1054This repository contains a local privilege escalation (LPE) exploit for CVE-2020-1054, targeting Windows 7 x64 systems. The exploit is implemented in Rust (main code in src/main.rs) and leverages Windows GDI bitmap object manipulation to achieve arbitrary kernel memory write, ultimately allowing the attacker to elevate privileges to SYSTEM. The exploit works by locating and manipulating the current process token in kernel memory, then injecting and executing shellcode to spawn a SYSTEM shell. The README provides compilation and usage instructions, as well as notes about potential adjustments required for different Windows KBs. The only code file is src/main.rs, which contains the full exploit logic and embedded shellcode. No network endpoints are involved; the attack vector is purely local, requiring code execution on the target machine.0xeb-bp · Disclosed Jun 16, 2020 · rust · localOperationalCVE-2020-1054This repository contains a local privilege escalation exploit for Microsoft Windows, targeting CVE-2020-1054. The structure includes a Visual Studio solution and project files, an assembly shellcode file (shellcode.asm), and a reference to an external analysis in the README. The main exploit logic is implemented in 'exploit.cpp' (not shown, but referenced in the project), and the shellcode (WndProc_fake) is designed to search for the SYSTEM process in kernel memory and copy its token to the current process, thereby granting SYSTEM privileges. The exploit is operational and requires local code execution on a vulnerable Windows system. No network endpoints or remote attack vectors are present; the attack is purely local. The repository is suitable for researchers or attackers seeking to escalate privileges on affected Windows systems.KaLendsi · Disclosed Jul 25, 2020 · cpp · assembly · localOperational
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 1709operating_system
Microsoft CorporationWindows 10 1803operating_system
Microsoft CorporationWindows 10 1809operating_system
Microsoft CorporationWindows 10 1903operating_system
Microsoft CorporationWindows 10 1909operating_system
Microsoft CorporationWindows 7operating_system
Microsoft CorporationWindows 8.1operating_system
Microsoft CorporationWindows Rt 8.1operating_system
Microsoft CorporationWindows Server 1803operating_system
Microsoft CorporationWindows Server 1903operating_system
Microsoft CorporationWindows Server 1909operating_system
Microsoft CorporationWindows Server 2008operating_system
Microsoft CorporationWindows Server 2012operating_system
Microsoft CorporationWindows Server 2016operating_system
Microsoft CorporationWindows Server 2019operating_system
FAQ

Frequently asked questions

Is CVE-2020-1054 exploited in the wild?
Yes. As of Oct 16, 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-2020-1054?
Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2020-1054, the earliest disclosed Feb 20, 2020.
Is there a patch for CVE-2020-1054?
Apply Microsoft's security update for CVE-2020-1054, released in May 2020, or a superseding update applicable to the affected Windows version. The update corrects how the Windows kernel-mode driver handles objects in memory.
What products are affected by CVE-2020-1054?
Microsoft Corporation Windows 10 1507, Microsoft Corporation Windows 10 1607, Microsoft Corporation Windows 10 1709, Microsoft Corporation Windows 10 1803, Microsoft Corporation Windows 10 1809, and 12 more.
How severe is CVE-2020-1054?
CVE-2020-1054 has a CVSS v3.1 score of 7.0 (High) and an EPSS score of 53.9% (99th percentile) as of Oct 16, 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 evidence1Every report linking this CVE to a named adversary.
Associated malware9Malware 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 activity1Community discussion across Reddit, Mastodon, and other social sources.