What is Win32k?
Win32k.sys is the kernel-mode component of Windows responsible for the window manager and GDI (Graphics Device Interface) subsystems — effectively the code that draws windows, menus, and handles user input events. Because Win32k runs in kernel mode but processes input from user-mode applications, memory-safety bugs here are a longstanding and reliable class of Windows local privilege escalation vulnerability, prized by attackers who already have low-privileged code execution and need to break out to SYSTEM.
Overview
CVE-2018-8120 is a privilege escalation vulnerability in Win32k caused by improper handling of objects in memory. A locally authenticated, low-privileged attacker who runs a specially crafted application can trigger the flaw to execute code in kernel mode, effectively gaining SYSTEM-level control of the machine. Microsoft's advisory noted the vulnerability was already being exploited in targeted attacks at the time of patching, making it a genuine zero-day.
Technical Details
The bug falls under CWE-404 (Improper Resource Shutdown or Release): Win32k mishandles a kernel object's lifecycle, creating a use-after-free-style condition where a stale reference can be manipulated by user-mode code to corrupt kernel memory. Because exploitation requires local code execution as a starting point (attack vector: Local, privileges required: Low), this class of bug is typically chained after an initial foothold — such as a browser or document-reader RCE — to escalate from a sandboxed or low-privileged process to full SYSTEM access.
Discovery
Microsoft credited external researchers with reporting active exploitation of this vulnerability ahead of the May 2018 Patch Tuesday release, consistent with the broader wave of Win32k zero-days that targeted Windows throughout 2018.
Exploitation Context
CISA added CVE-2018-8120 to the KEV catalog in March 2022, and the entry notes confirmed use in ransomware operations. Kernel privilege-escalation bugs like this one are a staple final stage in both criminal ransomware intrusion chains and targeted espionage operations, since they convert an initial code-execution foothold into full administrative control of the endpoint.
Remediation
- Apply the May 2018 Windows security update (or any later cumulative update) that patches CVE-2018-8120.
- Treat unpatched Windows endpoints as a priority given confirmed real-world exploitation and ransomware association.
- Apply defense-in-depth measures such as application allowlisting and least-privilege user accounts to reduce the value of a local EoP primitive to an attacker.
- Monitor for anomalous SYSTEM-level process creation on endpoints, particularly following execution of unsigned or unusual binaries.
- Maintain current EDR/antivirus signatures, since exploitation of Win32k EoP bugs is frequently paired with a separate initial-access exploit or social-engineering vector.
Key Details
| Property | Value |
|---|---|
| CVE ID | CVE-2018-8120 |
| Vendor / Product | Microsoft — Win32k |
| NVD Published | 2018-05-09 |
| NVD Last Modified | 2025-10-28 |
| CVSS 3.1 Score | 7 |
| CVSS 3.1 Vector | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Severity | HIGH |
| CWE | CWE-404 find similar ↗ |
| CISA KEV Added | 2022-03-15 |
| CISA KEV Deadline | 2022-04-05 |
| Known Ransomware Use | ⚠️ Yes |
CVSS 3.1 Breakdown
Required Action
Timeline
| Date | Event |
|---|---|
| 2018-05-08 | Patched by Microsoft (May 2018 Patch Tuesday), following reports of active exploitation |
| 2022-03-15 | Added to CISA Known Exploited Vulnerabilities catalog |
| 2022-04-05 | CISA BOD 22-01 remediation deadline |
References
| Resource | Type |
|---|---|
| NVD — CVE-2018-8120 | Vulnerability Database |
| CISA KEV Catalog Entry | US Government |
| Microsoft Security Response Center — CVE-2018-8120 | Vendor Advisory |