CVE-2021-34527: PrintNightmare
- Vendor
- Microsoft Corporation
PrintNightmare (CVE-2021-34527) is a remote code execution vulnerability in the Windows Print Spooler service caused by improper handling of privileged file operations during printer driver installation. An authenticated attacker can abuse the driver installation functionality to load attacker-controlled code with SYSTEM privileges. Windows clients, member servers, and domain controllers are affected when the vulnerable Print Spooler service is enabled. The vulnerability is distinct from CVE-2021-1675 and was not resolved by the June 2021 update addressing that separate flaw. Microsoft released security updates on July 6 and 7, 2021; insecure Point and Print configurations can leave updated systems exposed.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation compromises the confidentiality, integrity, and availability of the affected host through arbitrary code execution as SYSTEM. An attacker can install software, access or modify sensitive information, delete data, and create privileged accounts. Exploitation can facilitate credential theft, lateral movement, and ransomware deployment. Compromise of an affected domain controller can have domain-wide consequences. PrintNightmare exploitation has been associated with ransomware operations including Conti, Vice Society, and Black Basta.
Mitigation
If you can’t patch tonight, do this now.
Stop and disable the Print Spooler service on systems that do not require printing, particularly domain controllers; this prevents exploitation through the service but disables printing functionality. Where printing must remain available, disabling inbound remote printing through Group Policy reduces remote exposure but does not eliminate local exploitation risk. Restrict unnecessary RPC and SMB access, including TCP ports 135, 139, and 445, using host and network firewalls. These network restrictions are defense-in-depth measures rather than substitutes for patching and secure driver installation policies.
Remediation
Patch, then assume compromise.
Install current applicable Windows security updates incorporating the CVE-2021-34527 fixes first released on July 6 and 7, 2021. The July 13, 2021 cumulative updates and subsequent applicable cumulative updates include these protections. Verify that the Point and Print policy values NoWarningNoElevationOnInstall and UpdatePromptSettings are both 0 or undefined. Configure Point and Print Restrictions to show warnings and elevation prompts for both new driver installations and existing driver updates. Set RestrictDriverInstallationToAdministrators to 1 to enforce administrator-only printer driver installation; this became the default with updates released on or after August 10, 2021.
Exploits
16 exploits validated by Mallory's analysis. Hidden: 20 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2021-34527 exploited in the wild?
- Yes. As of Nov 3, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 3, 2021.
- Is there a public exploit for CVE-2021-34527?
- Yes. Mallory tracks 16 public exploits or proofs of concept for CVE-2021-34527, the earliest disclosed Jun 8, 2021.
- Is there a patch for CVE-2021-34527?
- Install current applicable Windows security updates incorporating the CVE-2021-34527 fixes first released on July 6 and 7, 2021. The July 13, 2021 cumulative updates and subsequent applicable cumulative updates include these protections.
- What products are affected by CVE-2021-34527?
- Microsoft Corporation Windows 10 1507, Microsoft Corporation Windows 10 1607, Microsoft Corporation Windows 10 1809, Microsoft Corporation Windows 10 1909, Microsoft Corporation Windows 10 2004, and at least 19 more.
- How severe is CVE-2021-34527?
- CVE-2021-34527 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 99.8% (100th percentile) as of Nov 3, 2026.
Recent activity
93 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.