CVE-2018-8120 — Microsoft Win32k Privilege Escalation Vulnerability

CVE-2018-8120

Windows Win32k — Kernel Privilege Escalation Exploited as a Zero-Day Before Patch Tuesday

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

  1. Apply the May 2018 Windows security update (or any later cumulative update) that patches CVE-2018-8120.
  2. Treat unpatched Windows endpoints as a priority given confirmed real-world exploitation and ransomware association.
  3. 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.
  4. Monitor for anomalous SYSTEM-level process creation on endpoints, particularly following execution of unsigned or unusual binaries.
  5. 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

PropertyValue
CVE ID CVE-2018-8120
Vendor / Product Microsoft — Win32k
NVD Published2018-05-09
NVD Last Modified2025-10-28
CVSS 3.1 Score7
CVSS 3.1 VectorCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
SeverityHIGH
CWE CWE-404 find similar ↗
CISA KEV Added2022-03-15
CISA KEV Deadline2022-04-05
Known Ransomware Use ⚠️ Yes

CVSS 3.1 Breakdown

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

Required Action

CISA BOD 22-01 Deadline: 2022-04-05. Apply updates per vendor instructions.

Timeline

DateEvent
2018-05-08Patched by Microsoft (May 2018 Patch Tuesday), following reports of active exploitation
2022-03-15Added to CISA Known Exploited Vulnerabilities catalog
2022-04-05CISA BOD 22-01 remediation deadline

References

ResourceType
NVD — CVE-2018-8120 Vulnerability Database
CISA KEV Catalog Entry US Government
Microsoft Security Response Center — CVE-2018-8120 Vendor Advisory