Skip to main content
Mallory
HighExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2022-21999: SpoolFool

Published Feb 9, 2022 · 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.8High · v3.1
EPSS41.0%99th percentile
CISA KEVYesAdded Mar 25, 2022
In the wildActivePer CISA KEV
Vendor
Microsoft Corporation
IdentifiersCVE-2022-21999CWE-269

SpoolFool (CVE-2022-21999) is a local elevation-of-privilege vulnerability in Microsoft Windows Print Spooler. Public proof-of-concept exploits can load an attacker-designated DLL and execute malicious code after privilege escalation. Observed exploitation loaded a DLL that created an administrator account for subsequent remote access. The vulnerable function, underlying weakness, and affected Windows versions are not established.

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 enables elevated execution on the affected Windows host. Observed payloads created an administrator account and configured its password, enabling subsequent remote access. SpoolFool was also used in attempted local administrator account creation during an intrusion cluster associated with Gelsemium.

Mitigation

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

Restrict external access to exposed servers to reduce opportunities for initial compromise preceding local privilege escalation. This does not directly remediate the Print Spooler vulnerability; vulnerability-specific compensating controls are not established.

Remediation

Patch, then assume compromise.

Apply applicable Windows security updates addressing CVE-2022-21999. Specific update identifiers and fixed versions are not available.

Public exploits

Exploits

2 exploits validated by Mallory's analysis.

View more in app →
cve_2022_21999_spoolfool_privesc.rbThis repository contains a single Metasploit module implementing a local privilege escalation exploit for CVE-2022-21999 (SpoolFool) on Windows systems. The exploit abuses the Print Spooler's ability to set the SpoolDirectory to a user-writable location and leverages a directory junction to redirect the spool directory to a protected system path. By writing a malicious DLL to 'C:\Windows\System32\spool\drivers\x64\4' and manipulating the 'SetPrinterDataEx' registry key, the exploit causes the Print Spooler to load and execute the DLL as SYSTEM, granting the attacker full system privileges. The module is operational and provides a Meterpreter shell or custom payload execution as SYSTEM. The code is written in Ruby and is designed to be used within the Metasploit framework. The main file is 'modules/exploits/windows/local/cve_2022_21999_spoolfool_privesc.rb', and it contains all logic for checking vulnerability, setting up the exploit environment, and executing the payload. The exploit targets Windows 10, Windows 11, and Windows Server 2022 systems with a vulnerable Print Spooler service.Disclosed Feb 8, 2022 · Framework: metasploit · ruby · localWeaponizedSpoolFoolThis repository contains a full exploit for CVE-2022-21999 (SpoolFool), a Windows Print Spooler local privilege escalation vulnerability. The exploit is implemented in C# (SpoolFool) and C++ (AddUser DLL), with an additional PowerShell wrapper for ease of use. The main exploit (SpoolFool) manipulates the Print Spooler service to load a user-supplied DLL (such as AddUser.dll) as SYSTEM, allowing arbitrary code execution with elevated privileges. The provided AddUser.dll payload creates a new local administrator account (admin/Passw0rd!). The exploit leaves several artifacts, such as the created printer, driver directory, and the loaded DLL, which are not cleaned up automatically. The exploit is operational and can be used as-is for privilege escalation on vulnerable Windows systems. The repository is well-structured, with separate directories for the exploit logic (SpoolFool) and the payload DLL (AddUser).ly4k · Disclosed Feb 8, 2022 · csharp · 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 10 1507operating_system
Microsoft CorporationWindows 10 1607operating_system
Microsoft CorporationWindows 10 1809operating_system
Microsoft CorporationWindows 10 1909operating_system
Microsoft CorporationWindows 10 20h2operating_system
Microsoft CorporationWindows 10 21h1operating_system
Microsoft CorporationWindows 10 21h2operating_system
Microsoft CorporationWindows 11 21h2operating_system
Microsoft CorporationWindows 7operating_system
Microsoft CorporationWindows 8.1operating_system
Microsoft CorporationWindows Rt 8.1operating_system
Microsoft CorporationWindows Server 2008operating_system
Microsoft CorporationWindows Server 2008 R2operating_system
Microsoft CorporationWindows Server 2008 Sp2operating_system
Microsoft CorporationWindows Server 2012operating_system
Microsoft CorporationWindows Server 2012 R2operating_system
Microsoft CorporationWindows Server 2016operating_system
Microsoft CorporationWindows Server 2019operating_system
Microsoft CorporationWindows Server 2022operating_system
Microsoft CorporationWindows Server 20h2operating_system
FAQ

Frequently asked questions

Is CVE-2022-21999 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 Mar 25, 2022.
Is there a public exploit for CVE-2022-21999?
Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2022-21999, the earliest disclosed Feb 8, 2022.
Is there a patch for CVE-2022-21999?
Apply applicable Windows security updates addressing CVE-2022-21999. Specific update identifiers and fixed versions are not available.
What products are affected by CVE-2022-21999?
Microsoft Corporation Windows 10 1507, Microsoft Corporation Windows 10 1607, Microsoft Corporation Windows 10 1809, Microsoft Corporation Windows 10 1909, Microsoft Corporation Windows 10 20h2, and at least 15 more.
How severe is CVE-2022-21999?
CVE-2022-21999 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 41.0% (99th percentile) as of Oct 16, 2026.
Activity feed

Recent activity

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

View more in app →
+2 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 evidenceEvery report linking this CVE to a named adversary.
Associated malware2Malware 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.