CVE-2022-21999
vulnerability analysis and mitigation

Overview

CVE-2022-21999 is a Windows Print Spooler Elevation of Privilege Vulnerability discovered and disclosed on February 8, 2022. This vulnerability affects various versions of Microsoft Windows including Windows 10, Windows 11, and Windows Server installations (Rapid7).

Technical details

The vulnerability exists in the Windows Print Spooler service where the SpoolDirectory configuration setting, which holds the path for printer's spooled jobs, is writable by all users. The vulnerability can be exploited through SetPrinterDataEx() when the caller has PRINTER_ACCESS_ADMINISTER permission. If the SpoolDirectory path doesn't exist, it gets created upon print spooler reinitialization. The exploit involves writing a payload to C:\Windows\System32\spool\drivers\x64\4 and loading it through SetPrinterDataEx(), resulting in SYSTEM-level code execution (Rapid7).

Impact

When successfully exploited, this vulnerability allows an attacker to achieve code execution with SYSTEM privileges, effectively gaining complete control over the affected system (Rapid7).

Mitigation and workarounds

Microsoft has released security updates to address this vulnerability across multiple Windows versions, including Windows 10 (various builds), Windows 11, and Windows Server installations. Users are advised to apply the appropriate security patches through Windows Update or manual installation of the relevant KB updates (Rapid7).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management