Windows Print Spooler Remote Code Execution and Privilege Escalation Vulnerability (PrintNightmare - CVE-2021-1675)
Executive & SecOps Summary
SECOPS ASSESSMENTAll Windows and Windows Server operating systems with the Windows Print Spooler (spoolsv.exe) service enabled
Authenticated local or remote attackers can execute arbitrary code with SYSTEM privileges, potentially leading to full Domain Controller compromise
Apply official Microsoft security patches immediately, or disable the Print Spooler service and block remote printing via Group Policy
Affected Products & Version Scope
Remediation & Live Workaround Commands
PATCH & WORKAROUND1. Official Patch & Version Upgrade Commands
Apply the latest cumulative security updates provided by Microsoft. You can force Windows Update installation using PowerShell.
# Install Windows Update module and apply all pending security patches
Install-Module PSWindowsUpdate -Force -Verbose
Get-WindowsUpdate -AcceptAll -Install -AutoReboot2. Temporary Workaround & Hardening Configuration
If patching is not immediately feasible, disable the Print Spooler service entirely, especially on Domain Controllers and non-printing servers.
# 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 -Force3. 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.
# 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 -AutoSizeBlock 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.
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
Windows Print Spooler Remote Code Execution Vulnerability
Frequently Asked SecOps Questions (CVE-2021-1675)
FAQQ1. 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.
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.
🔗 Related Advisories in Similar Stack (microsoft)
View Category →Windows IKE Extension Double Free Remote Code Execution Vulnerability (CVE-2026-33824)
[Affected Scope] Internet Key Exchange (IKE) Extension service running on Microsoft Windows and Windows Server operating systems
Windows Remote Access Connection Manager (RasMan) Null Pointer Dereference Local DoS Vulnerability (CVE-2026-21525) Technical Advisory
[Affected Scope] Windows and Windows Server operating systems utilizing the Windows Remote Access Connection Manager (RasMan) service.
Windows ALPC Heap-Based Buffer Overflow Privilege Escalation Vulnerability (CVE-2026-85880) Security Advisory
[Affected Scope] Locally authenticated users across Microsoft Windows operating systems
Windows Update Stack Privilege Escalation Vulnerability via Link Following (CVE-2026-81963) Technical Advisory
[Affected Scope] Microsoft Windows operating systems utilizing the Windows Update Stack
Subscribe to Daily Vulnerability Briefings & KEV Alerts
Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.