Skip to main content

Wolfcore Cyber Security

PrintNightmare (CVE-2021-34527): what it is and how to fix

Written by Ruben Selby, founder and penetration tester at Wolfcore. Last reviewed 25 November 2026. Part of Vulnerabilities and exploitation.

In one sentence: PrintNightmare is a flaw in the Windows service that manages printing, which let an ordinary logged-in user take full control of a machine unless it was patched and configured safely.

What it is

The Windows Print Spooler is the built-in service that queues print jobs and installs printer drivers. It runs on most Windows machines, including servers. In July 2021 Microsoft published CVE-2021-34527 for a remote code execution flaw in it. The community name was PrintNightmare.

CISA quoted the CERT Coordination Center (CERT/CC) as saying the spooler fails to restrict access to the functionality that lets users add printers and related drivers. That lets a remote, authenticated attacker run code with SYSTEM privileges, the highest level on a Windows machine. “Authenticated” means the attacker already has some valid account, even a low-privilege one.

How it works

  1. The attacker gets a foothold with any normal account, for example through a phished password.
  2. They reach the Print Spooler service on a target machine over the network.
  3. Because the service does not properly restrict who may add a printer driver, they can get their own code installed as if it were a driver.
  4. The code runs as SYSTEM, so the attacker now controls that machine and can move on to others.

What they are after is control of servers, and from there the whole Windows domain. Microsoft’s July 2021 clarification adds a useful nuance: its investigation found the security update works as designed, and the exploits it examined relied on someone having changed the default Point and Print registry settings to an insecure configuration. So patching and settings both matter.

PrintNightmare attack pathLow-privilegeaccount(often phished)Print Spooleraccepts a driverit should refuseCode runs asSYSTEMon that machineSpreadto servers andthe domainFix: patch, then confirm the Point and Print settings are safe.

Who it affects and how badly

Any organisation with Windows machines that run the Print Spooler: accountancy and legal practices, schools, councils, healthcare and care providers, manufacturers, and MSPs managing many client servers, in the UK, EU, US and Armenia.

Illustrative worst cases:

  • Up to 10 staff: one unpatched server shared as a print server. An attacker with one stolen password gets control of it and its data.
  • 10 to 50 staff: the spooler runs on the file server. Takeover leads to downtime while it is rebuilt, and possible loss of client files.
  • 250 plus or regulated: a domain controller runs the spooler. Control of it can mean control of every account, with notification duties under data protection law.

Real examples

CISA and Microsoft both published formal guidance for CVE-2021-34527, so the issue is confirmed by primary sources. Microsoft released out-of-band (outside the normal monthly cycle) security updates on 6 and 7 July 2021 for all supported Windows versions. CISA noted at the time that updates for Windows 10 1607, Server 2012 and Server 2016 were still to come, and that CERT/CC believed the first update dealt with the remote variants and not the local privilege escalation variant. Always apply the latest cumulative update rather than relying on that early note. We cite no victim organisation.

What we check on a test

Method, not findings:

  • Which Windows machines run the Print Spooler, and whether they need to. Servers that do not print rarely need it.
  • Patch level of the machines, including print servers and domain controllers.
  • Whether the Point and Print registry values Microsoft names are present and what they are set to.
  • Whether a low-privilege test account can reach spooler functions on servers, and what that would let us do.

How to detect it

  • Compare patch levels against Microsoft’s updates for your Windows versions. A vulnerability scanner or your RMM tool can list missing updates.
  • Check the registry location HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Printers\PointAndPrint. Microsoft says NoWarningNoElevationOnInstall and UpdatePromptSettings must be 0 or not present.
  • List which machines run the Print Spooler service, and flag servers that should not.

How to fix or prevent it

  1. Apply the CVE-2021-34527 security update, or any later cumulative update, on every Windows machine.
  2. After patching, confirm the two Point and Print values are 0 or absent. If the keys do not exist, Microsoft says no further action is needed.
  3. Turn the Print Spooler service off on servers that do not print, as Wolfcore’s own hardening advice.
  4. Read Microsoft’s KB5005010 on restricting installation of new printer drivers.
  5. Limit who holds high-privilege accounts, so one stolen password goes less far.

Illustration: a small business

An illustration, not a real case. A 20-person recruitment agency has one Windows file server that also shares the office printer. It was last patched two years ago. A consultant’s mailbox password is phished. The attacker signs in, finds the spooler running on the server and takes control of it. The agency loses two days of work while the server is rebuilt, and must tell candidates whose CVs were on it. The fix would have cost an afternoon: patch, check the two settings, turn the spooler off.

Frequently asked questions

Is PrintNightmare still a risk? Microsoft says the updates work as designed, but only if installed and if the Point and Print settings are not weakened.

Do I need to be on the network? CISA’s quote from CERT/CC describes a remote, authenticated attacker.

Which settings should I check? NoWarningNoElevationOnInstall and UpdatePromptSettings, both 0 or not present.

Related terms

zerologon-cve-2020-1472, Port 445 (SMB): what it is, how it is attacked and how to secure it, How privilege escalation works: from ordinary account to administrator, What is patch management? How to keep software updated safely, port-9100-printer-jetdirect

How Wolfcore helps

A Wolfcore penetration test finds this the way an attacker would, by hand, not with a scanner. Start with the free web vulnerability scan at wolfcore.co.uk/free-web-vulnerability-scan, or see our penetration testing service.

Wolfcore

Would your staff click a phishing email?

Run a real, safe phishing test on your team with Phishy. Free for 14 days, up to 10 staff, no card. We help you set it up.

Start a free phishing testFree website security scanor book a 30 minute call