← Vulnerability feed

Vulnerability record · CVE-2021-34527 · published 2 July 2021

CVE-2021-34527: Windows Print Spooler privileged file operation RCE (PrintNightmare)

Microsoft · Windows 10 1507

The Windows Print Spooler service improperly performs privileged file operations, allowing an attacker to execute arbitrary code as SYSTEM. This is the PrintNightmare flaw, and it affects a broad range of Windows client and server versions. Because the spooler runs with high privileges and is reachable remotely, it is a high-value target for both initial access and lateral movement.

8.8 CVSS 3.1 High CISA KEV since 3 Nov 2021 Known ransomware use EPSS 100% · top 0.1%
8.8CVSS 3.1 base score, v2 9.0
100%EPSS exploitation probability, 30 days
YesIn CISA KEV, fix deadline passed
15Affected product versions listed by NVD
7References, 3 tagged exploit
10 Aug 2026Last modified by NVD

Description

A remote code execution vulnerability exists when the Windows Print Spooler service improperly performs privileged file operations. An attacker who successfully exploited this vulnerability could run arbitrary code with SYSTEM privileges. An attacker could then install programs; view, change, or delete data; or create new accounts with full user rights. UPDATE July 7, 2021: The security update for Windows Server 2012, Windows Server 2016 and Windows 10, Version 1607 have been released. Please see the Security Updates table for the applicable update for your system. We recommend that you install these updates immediately. If you are unable to install these updates, see the FAQ and Workaround sections in this CVE for information on how to help protect your system from this vulnerability. In addition to installing the updates, in order to secure your system, you must confirm that the following registry settings are set to 0 (zero) or are not defined (Note: These registry keys do not exist by default, and therefore are already at the secure setting.), also that your Group Policy setting are correct (see FAQ): HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Printers\PointAndPrint NoWarningNoElevationOnInstall = 0 (DWORD) or not defined (default setting) UpdatePromptSettings = 0 (DWORD) or not defined (default setting) Having NoWarningNoElevationOnInstall set to 1 makes your system vulnerable by design. UPDATE July 6, 2021: Microsoft has completed the investigation and has released security updates to address this vulnerability. Please see the Security Updates table for the applicable update for your system. We recommend that you install these updates immediately. If you are unable to install these updates, see the FAQ and Workaround sections in this CVE for information on how to help protect your system from this vulnerability. See also KB5005010: Restricting installation of new printer drivers after applying the July 6, 2021 updates. Note that the security updates released on and after July 6, 2021 contain protections for CVE-2021-1675 and the additional remote code execution exploit in the Windows Print Spooler service known as “PrintNightmare”, documented in CVE-2021-34527.

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 16 September 2026. Confidence: high.

critical priorityActively exploited in ransomware campaigns, near-maximum EPSS, and SYSTEM-level remote code execution across a wide Windows footprint.

What it is

The Windows Print Spooler service improperly performs privileged file operations, allowing an attacker to execute arbitrary code as SYSTEM. This is the PrintNightmare flaw, and it affects a broad range of Windows client and server versions. Because the spooler runs with high privileges and is reachable remotely, it is a high-value target for both initial access and lateral movement.

Impact

An attacker can run arbitrary code with SYSTEM privileges, enabling installation of programs, viewing or modifying data, and creation of accounts with full user rights. In practice this yields full control of the affected host.

Attack surface

Reachable over the network via the print spooler service (CVSS vector AV:N), requiring low privileges (PR:L) and no user interaction (UI:N). The description also notes that a misconfigured PointAndPrint registry setting (NoWarningNoElevationOnInstall = 1) makes systems vulnerable by design.

Exploitation

CISA KEV lists it as actively exploited with known ransomware campaign use (Black Basta), and EPSS is 0.99792 (99.956th percentile). Multiple references are tagged Exploit, confirming public exploit material exists.

What to do

  • Apply the July 2021 Microsoft security updates for all affected Windows versions immediately.
  • Verify PointAndPrint registry settings: NoWarningNoElevationOnInstall and UpdatePromptSettings must be 0 or not defined.
  • Apply the Group Policy guidance in the vendor FAQ and KB5005010 to restrict installation of new printer drivers.
  • If patching is not possible, disable the Print Spooler service on systems that do not require printing.
  • Restrict network access to print spooler RPC endpoints where feasible.

Detection

  • Monitor for spoolsv.exe spawning child processes or loading unexpected DLLs.
  • Audit PointAndPrint registry values and alert on NoWarningNoElevationOnInstall set to 1.
  • Watch for new printer driver installations and spooler-related file writes in system directories.
  • Correlate print spooler activity with subsequent SYSTEM-level process creation or account creation events.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Exploitation in the wild

CISA added CVE-2021-34527 to the Known Exploited Vulnerabilities catalog on 3 November 2021 as "Microsoft Windows Print Spooler Remote Code Execution Vulnerability". CISA reports known use in ransomware campaigns. Required action: Apply updates per vendor instructions. Federal deadline 3 May 2022.

Ransomware crews whose documented playbooks reference this CVE:

Affected products

15 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2021-34527 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2026-33824Double free in Windows IKE Extension enables remote code executionA double free flaw (CWE-415) exists in the Windows IKE Extension, reachable over the network by an unauthenticated attacker. Successful exploitation …KEVEPSS 77%analysed9.8CVE-2021-31166Microsoft Windows HTTP Protocol Stack use-after-free RCEThe HTTP Protocol Stack in Microsoft Windows 10 2004/20H2 and Windows Server 2004/20H2 contains a use-after-free (CWE-416) that allows remote code ex…KEVEPSS 100%analysed9.8CVE-2017-8543Windows Search memory handling flaw allows remote code executionWindows Search fails to properly handle objects in memory, allowing an unauthenticated remote attacker to execute code on affected Windows systems. T…KEVEPSS 74%analysed8.8CVE-2026-96951Microsoft outlook web command injection vulnerabilityImproper neutralization of special elements used in a command ('command injection') in Windows Shell allows an unauthorized attacker to bypass a secu…KEVEPSS 9.8%8.8CVE-2026-21510Windows Shell protection mechanism failure allows security feature bypassWindows Shell contains a protection mechanism failure (CWE-693) that lets an unauthorized attacker bypass a security feature over a network. The flaw…KEVEPSS 61%analysed8.8CVE-2026-21513Microsoft MSHTML security feature bypass on WindowsCVE-2026-21513 is a protection mechanism failure (CWE-693) in the Microsoft MSHTML Framework that lets an unauthorized attacker bypass a security fea…KEVEPSS 16%analysed8.8CVE-2025-33073Windows SMB improper access control allows privilege elevationWindows SMB contains an improper access control flaw (CWE-284) that lets an authorized attacker elevate privileges over the network. Microsoft rates …KEVEPSS 83%analysed8.8CVE-2025-33053Microsoft Windows WebDAV Internet Shortcut File Path Control RCEWindows Internet Shortcut (.url) files allow external control of a file name or path, which an unauthorized attacker can abuse to execute code over a…KEVEPSS 87%analysed

Source: NIST National Vulnerability Database (record CVE-2021-34527), CISA KEV, FIRST EPSS (scores of 2026-11-10). This page is refreshed as NVD updates the record.