PrintNightmare Enables Remote Code Execution and Privilege Escalation on Windows

· Original article ↗

Summary

Huntress reported that PrintNightmare (CVE-2021-34527) could enable remote code execution and privilege escalation through Windows Print Spooler. The article details affected systems, patch limitations, temporary mitigations, and detection options.

Key points

  • The flaw affects the Windows Print Spooler service and can enable local privilege escalation or remote code execution.
  • Huntress said a low-privilege user could potentially gain administrator or SYSTEM access, with risks including lateral movement to domain controllers.
  • Huntress validated public Python and C++ proof-of-concept exploits against Windows Server 2016 and Server 2019.
  • The article reported that Microsoft's June 8 update did not fix CVE-2021-34527. Huntress said the July 6 emergency update appeared to block remote code execution but did not prevent privilege escalation on Windows Servers.
  • Temporary mitigations included disabling Print Spooler or restricting access controls on its driver directory; the latter could affect printer-driver changes and some Citrix printing.
  • For monitoring, the article recommended PrintService event logs and monitoring ImageLoad events involving spoolsv.exe; it reported that enabling the Operational log and watching event ID 316 worked in lab testing.

Article Details

Vulnerability Types
  • Remote code execution
  • Local privilege escalation
Severity
Critical
Affected Versions
  • Windows 7
  • Windows 8
  • Windows 8.1
  • Windows 10
  • Windows Server 2008
  • Windows Server 2008 R2
  • Windows Server 2012
  • Windows Server 2012 R2
  • Windows Server 2016
  • Windows Server 2019
Exploitation Status
unknown
Exploit Availability
public_poc
Patch Status
partial
Workarounds
  • Disable the Print Spooler service.
  • Restrict access controls on C:\Windows\System32\spool\drivers to prevent rogue DLLs from being placed there; this can prevent printer-driver changes and may cause printing issues for some Citrix users.

MITRE ATT&CK

CVE

People

Vendors

Products

Tools

Related Articles