Skip to main content
Mallory
HighExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2018-8120: Windows Win32k Elevation of Privilege Vulnerability

Published May 9, 2018 · Updated 20 days 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
EPSS73.3%99th percentile
CISA KEVYesAdded Mar 15, 2022
In the wildActivePer CISA KEV
Vendor
Microsoft Corporation
IdentifiersCVE-2018-8120CWE-476

CVE-2018-8120 is a local privilege-escalation vulnerability in the Windows Win32k kernel component affecting Windows 7, Windows Server 2008, and Windows Server 2008 R2. The SetImeInfoEx subroutine reached through NtUserSetImeInfoEx fails to validate a data pointer, permitting a NULL pointer dereference. An attacker who can map the NULL page can turn this condition into an arbitrary kernel-memory write and obtain kernel-mode execution and SYSTEM privileges. The vulnerability has also been chained with Adobe Reader vulnerability CVE-2018-4990 to escape Protected Mode.

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 compromises the local operating system's privilege boundary, allowing attacker-controlled code to execute with SYSTEM privileges. This enables unauthorized access to protected data, modification of system configuration, and installation of privileged malware. Exploitation has been incorporated into Purple Fox, GandCrab, and Dharma attack tooling and associated with Conti affiliates.

Mitigation

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

Restrict execution of untrusted applications and scripts, secure administrative tooling, and use behavioral endpoint monitoring to detect or block local privilege-escalation activity. Apply layered defenses against initial code execution, including malicious-document and browser exploitation. Least privilege alone does not prevent this vulnerability from elevating an already-running low-privileged process; these controls do not replace the security update.

Remediation

Patch, then assume compromise.

Install Microsoft's security updates addressing CVE-2018-8120 for the affected Windows edition and architecture. Migrate systems that cannot receive applicable security updates to a supported, patched Windows release.

Public exploits

Exploits

5 exploits validated by Mallory's analysis.

View more in app →
ms18_8120_win32k_privesc.rbThis repository contains a single Metasploit module implementing a local privilege escalation exploit for CVE-2018-8120, a NULL pointer dereference vulnerability in the Windows win32k.sys component. The exploit targets Windows 7 (x86 and x64) and Windows Server 2008 R2 Standard (x64). The module uploads two executables to the target's temporary directory: one is the exploit binary (architecture-specific), and the other is a payload executable (such as a Meterpreter shell). The exploit binary is executed with the payload as an argument, leveraging the vulnerability to execute the payload as SYSTEM. The module is weaponized, allowing for customizable payloads and automated cleanup. No network endpoints are involved; the attack vector is local, requiring an existing session on the target. The code is written in Ruby and is structured as a standard Metasploit module, with all logic contained in a single file.Disclosed May 9, 2018 · Framework: metasploit · ruby · localWeaponizedcve-2018-8120This repository contains a local privilege escalation exploit for CVE-2018-8120, targeting Microsoft Windows 7 SP1 x86 systems. The exploit is implemented in C/C++ (main.cpp) and leverages a vulnerability in the Windows kernel to escalate privileges from a normal user to SYSTEM. The code includes detailed manipulation of kernel structures and uses Windows API calls to interact with system internals. Upon successful exploitation, the code spawns a new command shell (cmd.exe) running as SYSTEM, providing the attacker with full administrative access. The README provides a reference to a detailed analysis and a demonstration GIF. No network endpoints are present; the exploit is purely local. The structure is straightforward, with the main exploit logic in main.cpp and a README for documentation.bigric3 · Disclosed May 17, 2018 · c · cpp · localOperationalCVE-2018-8120This repository contains a local privilege escalation (LPE) exploit for CVE-2018-8120, a vulnerability in Microsoft Windows (Win7, Win2008, and related x32/x64 versions). The exploit is implemented in C++ (Source.cpp) with supporting shellcode in assembly (shellcode.asm). The exploit works by manipulating kernel memory structures to steal the SYSTEM process token and assign it to the current process, then launches an arbitrary command as SYSTEM. The exploit is operational and supports both 32-bit and 64-bit Windows targets. The README provides usage instructions, indicating the exploit is invoked as a command-line tool with the desired command to run as SYSTEM. The project is structured as a Visual Studio solution with appropriate project files for building the exploit. No network endpoints are present; the attack vector is purely local. The only fingerprintable endpoint is the Windows desktop 'WinSta0\Default', used when spawning the SYSTEM process. The exploit is not part of a framework and is a standalone operational exploit.rip1s · Disclosed May 19, 2018 · cpp · assembly · localOperationalCVE-2018-8120This repository contains a local privilege escalation exploit for CVE-2018-8120, targeting multiple versions of Microsoft Windows (including Windows 7, Windows Server 2008, Windows XP, and Windows Server 2003, both x86 and x64). The exploit is implemented in C++ (Source.cpp) with supporting shellcode in assembly (shellcode.asm). The Visual Studio project files (.sln, .vcxproj, .filters) are provided for building the exploit. The exploit works by abusing a vulnerability in the Windows kernel to overwrite the current process token with the SYSTEM token, then spawns a new process (with a user-supplied command) as SYSTEM. The README provides usage instructions and notes on compilation. The exploit is operational and provides full SYSTEM privileges on vulnerable systems. No network endpoints are involved; the attack vector is purely local. The only fingerprintable endpoint is the use of the 'WinSta0\Default' desktop for the spawned process.alpha1ab · Disclosed Jun 7, 2018 · c · assembly · localOperationalCVE-2018-8120This repository contains an operational local privilege escalation exploit for CVE-2018-8120, a Windows kernel vulnerability affecting Windows 7 x86. The exploit is implemented in C++ (exploit.cpp) and is built using a Visual Studio project. The exploit leverages a NULL pointer dereference in the SetImeInfoEx function of win32k.sys, allowing an attacker to perform an arbitrary write of 0x15c bytes to a chosen address in kernel memory. The exploit uses this primitive to overwrite entries in the Global Descriptor Table (GDT), installing a call gate that enables execution of attacker-controlled code in ring0 (kernel mode). The payload then steals the SYSTEM process token to escalate privileges and spawns a SYSTEM shell. The repository includes build files, logs, and a detailed markdown file (CVE-2018-8120.md) explaining the vulnerability and exploitation technique. The exploit targets unpatched Windows 7 x86 systems and requires local access to execute.EVOL4 · Disclosed Jul 11, 2018 · c++ · 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 7operating_system
Microsoft CorporationWindows Server 2008operating_system
FAQ

Frequently asked questions

Is CVE-2018-8120 exploited in the wild?
Yes. As of Oct 28, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Mar 15, 2022.
Is there a public exploit for CVE-2018-8120?
Yes. Mallory tracks 5 public exploits or proofs of concept for CVE-2018-8120, the earliest disclosed May 9, 2018.
Is there a patch for CVE-2018-8120?
Install Microsoft's security updates addressing CVE-2018-8120 for the affected Windows edition and architecture. Migrate systems that cannot receive applicable security updates to a supported, patched Windows release.
What products are affected by CVE-2018-8120?
Microsoft Corporation Windows 7 and Microsoft Corporation Windows Server 2008.
How severe is CVE-2018-8120?
CVE-2018-8120 has a CVSS v3.1 score of 7.0 (High) and an EPSS score of 73.3% (99th percentile) as of Oct 28, 2026.
Activity feed

Recent activity

14 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+7 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
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 evidence2Every report linking this CVE to a named adversary.
Associated malware12Malware families linked to this CVE, with evidence and IOCs.
Detection signatures2YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity3Community discussion across Reddit, Mastodon, and other social sources.