CVE-2017-0263 — Microsoft Win32k Privilege Escalation Vulnerability

CVE-2017-0263

Microsoft Win32k — UAF Kernel LPE Used by APT28 and Turla as Stage-2 Sandbox Escape Paired with Office EPS Zero-Days CVE-2017-0261/0262; Patched May 2017

What Is Win32k?

Win32k.sys is the Windows kernel-mode driver that implements the Windows GUI subsystem — window management, graphics drawing, GDI (Graphics Device Interface), and user input handling. Because Win32k runs entirely in kernel mode and exposes a large syscall interface to user-mode applications, it has been one of the most prolific sources of Windows privilege escalation vulnerabilities. A UAF in Win32k executes in ring 0 (kernel context), giving an attacker immediate SYSTEM privileges without any further escalation needed. Nation-state groups routinely develop Win32k exploits as their LPE component for paired RCE+LPE exploit chains.

Overview

Actively Exploited. This vulnerability has been added to CISA's Known Exploited Vulnerabilities (KEV) Catalog on February 10, 2022. Federal agencies are required to apply mitigations per BOD 22-01.

CVE-2017-0263 is a use-after-free vulnerability in the Windows Win32k kernel-mode driver that provides local privilege escalation from a standard user account to SYSTEM. It was exploited as a zero-day by both APT28 (Russian GRU) and Turla (Russian FSB) as the second stage of a two-vulnerability exploit chain: the Office EPS vulnerabilities CVE-2017-0262 and CVE-2017-0261 provided initial code execution, and CVE-2017-0263 escalated from user context to SYSTEM. Both Russian intelligence groups used the same Win32k LPE paired with their respective Office EPS exploit. Patched in the May 2017 security update. CISA added CVE-2017-0263 to the KEV catalog in February 2022.

Affected Versions

Windows Version Status
Windows 7 SP1 Vulnerable
Windows 8.1 Vulnerable
Windows Server 2008 SP2 / R2 SP1 Vulnerable
Windows Server 2012 / 2012 R2 Vulnerable
Windows 10 (all versions prior to patch) Vulnerable
Windows Server 2016 Vulnerable
All above with May 2017 security update Fixed

Technical Details

Root Cause: Win32k Kernel-Mode Use-After-Free

CVE-2017-0263 is a use-after-free vulnerability (CWE-416) in the Win32k.sys kernel-mode driver. Win32k manages kernel objects for windows, menus, and GDI primitives. The UAF occurs when a specific sequence of Win32k API calls causes a kernel object to be freed while a reference to it is still held; subsequent operations on the stale pointer corrupt kernel memory. Attackers exploit this by positioning controlled data at the freed kernel object's location before the stale pointer is dereferenced, redirecting kernel execution to attacker-controlled code running in ring 0.

Stage-2 role in APT28/Turla exploit chains:

Stage CVE Component Purpose
Stage 1 CVE-2017-0262 (APT28) or CVE-2017-0261 (Turla) Office EPS filter Code execution as logged-in user
Stage 2 CVE-2017-0263 Win32k kernel Escalate from user to SYSTEM

With SYSTEM privileges obtained via CVE-2017-0263, the attacker can:

  • Install persistent backdoors with kernel-level access
  • Disable antivirus and EDR agents (requires SYSTEM)
  • Dump LSASS credentials including domain passwords and Kerberos tickets
  • Access files owned by other users and system accounts

PR:L prerequisite: The PR:L CVSS metric means CVE-2017-0263 requires existing code execution as a low-privileged user — it cannot be exploited remotely from the network without first obtaining user-level code execution. This is the role the Office EPS vulnerabilities fill in the exploit chain.

Attack Characteristics

Attribute Detail
Attack Vector Local — requires existing code execution foothold
Prerequisites Code execution as standard user (from Stage 1 exploit)
Impact SYSTEM privileges
Threat Actors APT28 (GRU), Turla (FSB) — shared LPE zero-day
Paired With CVE-2017-0261 (Turla), CVE-2017-0262 (APT28)

Discovery

FireEye discovered all three zero-days (CVE-2017-0261, CVE-2017-0262, CVE-2017-0263) in active exploitation in April 2017 and reported them to Microsoft. Notably, both APT28 and Turla independently used CVE-2017-0263 as their Win32k LPE — suggesting either shared tooling between Russian intelligence services or independent parallel discovery of the same kernel vulnerability.

Exploitation Context

  • Shared LPE between two Russian intelligence groups: Both GRU (APT28) and FSB (Turla) used CVE-2017-0263 as their privilege escalation step, despite using different Office EPS vulnerabilities for stage 1 — suggesting possible tool-sharing between Russian intelligence agencies for the kernel exploit while maintaining separate RCE development
  • Complete espionage kill chain: CVE-2017-0262 + CVE-2017-0263 (APT28) provided a complete spear-phishing → code execution → SYSTEM → persistent access chain with only two vulnerabilities; targeted victims received a Word document via email and were fully compromised upon opening it
  • European government targeting: FireEye observed APT28 and Turla using these chains in spear-phishing campaigns against European government ministries, defense organizations, and political think tanks during the period leading up to various 2017 European elections
  • Long-running Win32k LPE class: CVE-2017-0263 is part of the ongoing Win32k UAF vulnerability class — win32k.sys has had dozens of similar LPEs patched over the years (including CVE-2016-7255, CVE-2017-0001, CVE-2017-0005 in earlier 2016-2017 patch cycles), reflecting the difficulty of securing a large, complex kernel GUI subsystem
  • CISA KEV (2022): Added February 2022 alongside its companion Office EPS CVEs

Remediation

CISA BOD 22-01 Deadline: August 10, 2022. Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
  1. Apply May 2017 Windows security update — install the May 9, 2017 security update on all Windows systems to patch CVE-2017-0263.

  2. Apply May 2017 Office security update — also patch CVE-2017-0261/0262 to eliminate the Stage 1 exploit that provides the user-level foothold; closing either stage of the chain prevents full compromise.

  3. Enable Windows Defender Credential Guard — prevents credential dumping from LSASS even after an attacker achieves SYSTEM privileges, limiting lateral movement.

  4. Deploy endpoint detection and response (EDR) — behavioral rules that detect Win32k exploit patterns (abnormal kernel syscall sequences, privilege token manipulation) catch LPE exploitation even against unknown variants.

  5. Apply the principle of least privilege — running users with standard (non-admin) accounts limits the damage from Office-based RCE; CVE-2017-0263 escalates from user to SYSTEM, but starting from an already-admin account provides less additional gain for the attacker.

Key Details

PropertyValue
CVE ID CVE-2017-0263
Vendor / Product Microsoft — Win32k
NVD Published2017-05-12
NVD Last Modified2025-10-22
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-416 — Use After Free find similar ↗
CISA KEV Added2022-02-10
CISA KEV Deadline2022-08-10
Known Ransomware Use No

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: 2022-08-10. Apply updates per vendor instructions.

Timeline

DateEvent
2017-04-14FireEye reports CVE-2017-0263 being exploited as a zero-day in combination with Office EPS vulnerabilities by APT28 and Turla
2017-05-09Microsoft releases May 2017 Patch Tuesday patching CVE-2017-0263
2017-05-12CVE-2017-0263 published by NVD
2022-02-10Added to CISA Known Exploited Vulnerabilities catalog
2022-08-10CISA BOD 22-01 remediation deadline

References

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