CVE DatabaseCVE-2021-1675
한국어 권고문 →
CVE-2021-16757.8/HIGHCISA KEV

Windows Print Spooler Remote Code Execution and Privilege Escalation Vulnerability (PrintNightmare - CVE-2021-1675)

⚡ Jump to Patch
Affected Vendors
microsoft
Affected Components
windows, windows_server
Published Date
2021-06-08
CVSS v3.1
7.8
HIGH
EPSS (30d)
85.3%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

All Windows and Windows Server operating systems with the Windows Print Spooler (spoolsv.exe) service enabled

Impact

Authenticated local or remote attackers can execute arbitrary code with SYSTEM privileges, potentially leading to full Domain Controller compromise

Mitigation

Apply official Microsoft security patches immediately, or disable the Print Spooler service and block remote printing via Group Policy

Affected Products & Version Scope

All supported and legacy versions of Windows and Windows Server (including Windows 7, 8.1, 10, 11, and Windows Server 2008 through 2022) where the Print Spooler service is running

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

Apply the latest cumulative security updates provided by Microsoft. You can force Windows Update installation using PowerShell.

powershell
# Install Windows Update module and apply all pending security patches
Install-Module PSWindowsUpdate -Force -Verbose
Get-WindowsUpdate -AcceptAll -Install -AutoReboot

2. Temporary Workaround & Hardening Configuration

If patching is not immediately feasible, disable the Print Spooler service entirely, especially on Domain Controllers and non-printing servers.

powershell
# Stop and disable the Print Spooler service
Stop-Service -Name 'Spooler' -Force
Set-Service -Name 'Spooler' -StartupType Disabled

# Disable incoming remote printing connections via Registry
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'RegisterSpoolerRemoteSubsystemToKeepAlives' -Value 0 -PropertyType DWord -Force

3. Log Audit & IoC Verification Commands

Use the following commands to audit the Print Spooler service status and inspect event logs for suspicious driver installation activities.

powershell
# Verify the current status and startup type of the Spooler service
Get-Service -Name 'Spooler' | Select-Object Name, Status, StartType

# Query PrintService Admin logs for Event IDs indicating driver installation attempts (IDs 316 and 808)
Get-WinEvent -LogName 'Microsoft-Windows-PrintService/Admin' -ErrorAction SilentlyContinue | 
    Where-Object { $_.Id -eq 316 -or $_.Id -eq 808 } | 
    Select-Object TimeCreated, Id, Message | Format-Table -AutoSize
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
SentinelOne Singularity AI EDR
Immediately disable the Print Spooler service on all Domain Controllers and critical servers, or apply the official Microsoft security updates.

Block Kernel Privilege Escalation & Ransomware Payloads Before You Can Reboot

Protect unpatched Windows, Linux, and macOS workloads against in-memory exploitation and lateral movement with autonomous EDR.

100% MITRE ATT&CK Detection · 1-Click Rollback

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

This vulnerability, widely known as 'PrintNightmare', is a critical remote code execution (RCE) and local privilege escalation (LPE) flaw in the Windows Print Spooler service. The root cause lies in the design of the RpcAddPrinterDriverEx() API function, which fails to properly restrict access and validate file paths when installing new printer drivers. This allows an authenticated user to bypass privilege checks and force the service to load malicious driver files.

2. Exploitation Mechanics & Attack Scenario

An attacker establishes an RPC connection to the target's Print Spooler service. By invoking the RpcAddPrinterDriverEx() function, the attacker passes a UNC path pointing to a malicious DLL hosted on an attacker-controlled SMB share (e.g., \\attacker_ip\share\malicious.dll). Because the Print Spooler service runs under the highly privileged NT AUTHORITY\SYSTEM context, it copies the remote DLL into the local driver directory (C:\Windows\System32\spool\drivers\...) and executes it, granting the attacker immediate SYSTEM-level code execution.

3. Infrastructure & Business Impact

This vulnerability poses an extreme risk to Active Directory (AD) environments. Since Domain Controllers (DCs) often run the Print Spooler service by default, any domain user account compromised by an attacker can be leveraged to gain SYSTEM privileges on the DC. This leads to complete domain compromise, enabling widespread ransomware deployment, credential harvesting, and permanent infrastructure takeover.

Official Vendor Advisories & References

Frequently Asked SecOps Questions (CVE-2021-1675)

FAQ

Q1. How critical is CVE-2021-1675 and is it actively exploited in the wild?

CVE-2021-1675 is rated CVSS 7.8 (HIGH) with a 30-day EPSS exploitation probability of 85.3%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.

Q2. Which vendors and products are affected by CVE-2021-1675?

Primary impacted vendors include microsoft across windows, windows_server. Scope summary: All supported and legacy versions of Windows and Windows Server (including Windows 7, 8.1, 10, 11, and Windows Server 2008 through 2022) where the Print Spooler service is running

Q3. What temporary mitigations or workarounds exist for CVE-2021-1675 before patching?

[Mitigation] Apply official Microsoft security patches immediately, or disable the Print Spooler service and block remote printing via Group Policy Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2021-1675

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (microsoft)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2021-1675 Windows Print Spooler Remote Code Execution and Privilege Escalation Vulnerability (PrintNightmare - CVE-2021-1675) (CVSS 7.8) - Patch & Workaround | CVE Pulse