Export
The link always opens the latest version of this page.
Ask an AI about it
Open in ChatGPTA new chat that reads this entry from the site Open in ClaudeThe same, in ClaudeShare the link instead of a file, and they will always see the latest version.
Files are a snapshot of today. The live page has anything newer.
PrintNightmare
Summary
PrintNightmare is the public name given to a cluster of Windows Print Spooler vulnerabilities, first tracked as CVE-2021-1675 and later as CVE-2021-34527, that allow local privilege escalation and, under certain configurations, remote code execution 12. The name was coined by the Sangfor research team, whose accidental publication of proof-of-concept exploit code on GitHub in June 2021 triggered wide public attention to the flaw 1.
Affected products
The vulnerabilities affect the Windows Print Spooler service, which is implicated in the affected_products fact table, and the broader Point and Print driver-installation feature used when clients connect to remote print servers 34. A related zero-day, CVE-2021-36958, affects the same subsystem and was attributed to a December 2020 discovery by Victor Mata of FusionX, Accenture Security 5.
Exploitation
PrintNightmare stems from missing access control list (ACL) checks in the AddPrinterDriverEx(), RpcAddPrinterDriver(), and RpcAsyncAddPrinterDriver() Windows API functions used to install printer drivers 2. CVE-2021-1675 was initially discovered by researchers from Tencent Security, AFINE, and NSFOCUS before Sangfor's team codenamed it PrintNightmare 1. Exploitation generally requires the "Point and Print Restrictions" policy to be enabled with "When installing drivers for a new connection" set to "Do not show warning on elevation prompt" 2. A separate variant, CVE-2021-36958, allows non-administrative users to trigger the CopyFile registry directive and gain SYSTEM privileges simply by connecting to a remote printer, provided the driver is already installed on the client 5.
In the wild, the FBI and CISA report that Russian state-sponsored cyber actors exploited PrintNightmare (CVE-2021-34527) together with default multifactor authentication misconfigurations to gain network access to a non-governmental organization beginning as early as May 2021 3. After initial access via a dormant, MFA-unenrolled account, the actors escalated privileges, redirected authentication calls to localhost to defeat MFA, and used built-in Windows utilities such as regedit.exe, ntdsutil.exe, and rar.exe to modify the registry, enumerate Active Directory accounts, and archive stolen data before moving laterally to cloud and email systems 3.
Fix and mitigation
Microsoft's initial out-of-band patch, KB5004945, released July 6, 2021, addressed only the remote code execution vector and left the local privilege escalation path exploitable, a gap reported by researchers Matthew Hickey and Will Dormann and independently demonstrated as an RCE bypass by Benjamin Delpy 2. Microsoft told BleepingComputer it was investigating bypass claims but attributed them to administrators running insecure registry configurations 2. Separately, 0Patch's free micropatch blocked exploitation attempts, but Microsoft warned its own July 6 update modified localspl.dll in a way that broke 0Patch's fix 2. As of the August 2021 advisory, Microsoft had not released a security update for CVE-2021-36958, for which the recommended workaround was disabling the Print Spooler service or restricting installation via the "Package Point and Print – Approved Servers" group policy 5.
Microsoft subsequently changed Point and Print's default behavior: updates released August 10, 2021 or later require administrative privilege to install printer drivers by default (CVE-2021-34481), governed by the RestrictDriverInstallationToAdministrators registry value under HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers\PointAndPrint4. This change caused a side effect reported in KB5005033/KB5005031: users saw repeated "Do you trust this printer" prompts and administrative credential requests, which Microsoft addressed via KB5005652 while noting that a further printing issue remained after the September 2021 updates 4. After updates released October 12, 2021 or later, administrators could also configure this restriction via Group Policy, and updates from September 21, 2021 or later allowed the Point and Print Restrictions policy to accept dot-delimited IP addresses alongside fully qualified host names. CISA and the FBI additionally recommend enforcing MFA for all users and reviewing default MFA configurations to prevent "fail open" and re-enrollment abuse, independent of the Print Spooler fixes 3.
Timeline
- 2020-12: Victor Mata of FusionX, Accenture Security discovers what becomes CVE-2021-36958 5.
- 2021-05: Russian state-sponsored actors begin exploiting default MFA settings and PrintNightmare against an NGO 3.
- 2021-06-28: CVE-2021-1675 is disclosed 1.
- 2021-06-30: Sangfor researchers accidentally leak PoC exploit code on GitHub, coining the name PrintNightmare 1.
- 2021-07-06: Microsoft releases out-of-band patch KB5004945, later found incomplete 2.
- 2021-07-07: Benjamin Delpy and others demonstrate RCE bypasses of Microsoft's patch 2.
- 2021-08-10: Windows updates begin defaulting RestrictDriverInstallationToAdministrators to enabled.
- 2021-08-12: Microsoft issues an advisory for the separate zero-day CVE-2021-36958 5.
- 2021-09-13: Microsoft publishes KB5005652 detailing Point and Print default-behavior changes.
- 2021-09-21: Updates allow dot-delimited IP addresses in the Point and Print Restrictions policy.
- 2021-09-30: Microsoft marks the KB5005033 printing-prompt issue resolved via KB5005652, while noting new September issues 4.
- 2021-10-12: Updates enable Group Policy configuration of RestrictDriverInstallationToAdministrators.
- 2022-03-16: CISA and FBI publish a joint advisory on Russian exploitation of PrintNightmare and MFA misconfigurations 3.
Facts 5
| Attribute | Value | Confidence | Sources | Cited |
|---|---|---|---|---|
| CVE | CVE-2021-34527 | low | 1 | 3 |
| CVSS | 7.3 | low | 1 | 5 |
| Weakness | missing ACL checks | low | 1 | 2 |
| Disclosed | 2021-06-28 | low | 1 | 1 |
| Patch status | unpatched | low | 1 | 5 |
Affected product 3
Affects 1
Frequently mentioned together 5
Sources 6
- PoC exploit accidentally leaks for dangerous Windows PrintNightmare bug · Reddit archive backfill (cyber)
- Microsoft's incomplete PrintNightmare patch fails to fix vulnerability · Reddit archive backfill (cyber)
- Russian State-Sponsored Cyber Actors Gain Network Access by Exploiting Default Multifactor Authentication Protocols and “PrintNightmare” Vulnerability | CISA · Reddit archive backfill (cyber)
- Microsoft marks latest Windows printing issue as resolved (KB5005033) · Reddit archive backfill (cyber)
- Microsoft confirms another Windows print spooler zero-day bug · Reddit archive backfill (cyber)
5 of 6 sources shown · Pro unlocks the full list