Patchfirst
CVE-2022-21999 KEVRansomwarePublic exploit High · 7.8 EPSS 41.0%

Microsoft Windows Print Spooler Privilege Escalation Vulnerability

Microsoft · Windows

Summary

The Windows Print Spooler component in Microsoft Windows contains a flaw that allows an attacker to elevate privileges, stemming from improper path restriction and insecure handling of links, junctions, or UNC share names. An attacker who already has local access with low-privilege credentials can exploit it without any user interaction to gain elevated privileges on the affected system.

Official description · NVD

Windows Print Spooler Elevation of Privilege Vulnerability

Breakdown
78.2 / 100
Exploited
Yes, in CISA KEV
Reports
0
Tactics
5/15

How an attack unfolds

Based on mappings. Select a step to see the evidence.
  1. How attackers get in

  2. What they do

  3. What can follow

First seen exploited 44 days after disclosure. Public exploit code (PoC-in-GitHub) was available 1 day before disclosure.

  1. Public exploit codePoC-in-GitHub1 day before
  2. Disclosedday 0
  3. First seen exploitedVulnCheck KEV evidenceAdded to CISA KEVknown ransomware use; EU database agrees+44 days

CISA KEV listing is when exploitation was confirmed, not necessarily the first attack.

techniques

5 , grouped by in kill-chain order 5

Initial AccessTA0001

Valid Accounts T1078 also Persistence, Privilege Escalation, Stealth
MITRE CTID mapping of the KEV entry · how it is exploited

This vulnerability is exploited by an adversary who already has access to the victim system. This vulnerability, also known as SpoolFool, is a local privilege escalation vulnerability in the Windows Print Spooler service, which manages print operations on Windows systems. This vulnerability allows attackers to execute code with SYSTEM-level privileges by exploiting the `SpoolDirectory` configuration setting. The `SpoolDirectory` is writable by all users and can be manipulated using the `SetPrinterDataEx()` function, provided the attacker has `PRINTER_ACCESS_ADMINISTER` permissions. The exploit involves creating a directory junction and using a Universal Naming Convention (UNC) path to write a malicious DLL to a privileged directory, such as `C:\Windows\System32\spool\drivers\x64\4`. This DLL is then loaded and executed by the Print Spooler service, granting the attacker elevated privileges. This method circumvents previous security checks designed to prevent privilege escalation through the Print Spooler. The vulnerability has been exploited in the wild, with attackers using tools like the SpoolFool proof of concept (PoC) published on GitHub. One observed attack involved creating a local administrator account with a default password, indicating the potential for significant system compromise. The Gelsemium APT group has been linked to activity exploiting this vulnerability, highlighting its use in advanced persistent threat campaigns.

ExecutionTA0002

MITRE CTID mapping of the KEV entry · follow-on activity

PersistenceTA0003

Local Account T1136.001
MITRE CTID mapping of the KEV entry · follow-on activity

Privilege EscalationTA0004

MITRE CTID mapping of the KEV entry · primary impact

Stealth

MITRE CTID mapping of the KEV entry · follow-on activity

Detection

0 rules for this CVE · 204 general rules for its techniques

Rules for this CVE

0 that reference CVE-2022-21999 directly.

CVE-specific rules are not available in this build. Search SigmaHQ ↗

General rules for this CVE’s techniques

These detect the technique in general, not this specific vulnerability.

Valid AccountsT107856 general rules
Exploitation for Privilege EscalationT106831 general rules
Command and Scripting InterpreterT105995 general rules
Local AccountT1136.00118 general rules
Exploitation for StealthT12114 general rules

Sigma rules © SigmaHQ, Detection Rule License 1.1; linked, not reproduced.

What security researchers reported

Not named in any threat report yet

Also mentioned in 50 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

2 links, grouped by NVD tag (1 duplicate merged)
↑ ↓ chooseEnter openEsc close