home / blog
2026-11-26 · high
CVE-2021-34527: PrintNightmare critical vulnerability
CVE-2021-34527: Remote code execution vulnerability in Windows Print Spooler with elevated privileges.

CVE-2021-34527, known as PrintNightmare, is a critical vulnerability that allows an attacker to execute remote code with SYSTEM privileges through the Windows Print Spooler service. This vulnerability, improperly exploited during printer driver installation, allows an attacker to gain complete control of the compromised system.
The severity of this vulnerability is high (CVSS 8.8) and Microsoft has released specific security updates starting from July 6, 2021. There are also public repositories that claim to contain exploits for this vulnerability, making it a persistent threat for unpatched systems. The fix involves not only patch application but also verification of system registry configuration.
To protect yourself, it is essential to immediately apply the security updates released by Microsoft. Additionally, you must verify that the registry keys HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Printers\PointAndPrint are correctly configured with the values NoWarningNoElevationOnInstall and UpdatePromptSettings set to 0 or undefined. These measures significantly reduce the attack surface of the Print Spooler.
At a glance
- What
- Remote code execution vulnerability in Windows Print Spooler service
- Severity
- High (CVSS 8.8)
- Affected versions
- Not specifically detailed in the NVD description
- Fix
- Security updates released by Microsoft since July 6, 2021
- Status
- Patched
- Action
- Install updates, verify registry configuration
Sources: NVD, CVE-2021-34527