CVE-2021-34527: Microsoft Windows Print Spooler Remote Code Execution Vulnerability
Reference page built from the source records below, each shown as its source publishes it. Dataset version ref-dbcf1e12462b, updated 2026-11-02T23:39:54.475Z.
CISA Known Exploited Vulnerabilities
- Name
- Microsoft Windows Print Spooler Remote Code Execution Vulnerability
- Vendor
- Microsoft
- Product
- Windows
- Added to the catalog
- 2021-11-03
- Due date for US federal agencies
- 2022-05-03
- Weaknesses
- CWE-269
- Catalog version
- 2026.10.30
Microsoft Windows Print Spooler contains an unspecified vulnerability due to the Windows Print Spooler service improperly performing privileged file operations. Successful exploitation allows an attacker to perform remote code execution with SYSTEM privileges. The vulnerability is also known under the moniker of PrintNightmare.
Required action (CISA)
Apply updates per vendor instructions.
Ransomware use: CISA marks this vulnerability as known to be used in ransomware campaigns. CISA does not say which group used it.
Links in CISA's notes
- https://www.cisa.gov/news-events/directives/ed-21-04-mitigate-windows-print-spooler-service-vulnerability)
- https://nvd.nist.gov/vuln/detail/CVE-2021-34527
Read on 2026-11-02T23:39:54.475Z under licence cisa-kev-cc0@b0067899 from https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json
NVD analysis
- Status
- Analyzed
- Published
- 2021-07-02T22:15:08.757
- Last modified
- 2026-08-10T20:15:22.807
- Weaknesses
- NVD-CWE-noinfo
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.
| Metric | Score | Severity | Vector | Scored by |
|---|---|---|---|---|
| CVSS 3.1 | 8.8 | HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | [email protected] (Secondary) |
| CVSS 3.1 | 8.8 | HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | [email protected] (Secondary) |
| CVSS 2.0 | 9 | HIGH | AV:N/AC:L/Au:S/C:C/I:C/A:C | [email protected] (Primary) |
References
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2021-34527 (Patch, Vendor Advisory)
- http://packetstormsecurity.com/files/167261/Print-Spooler-Remote-DLL-Injection.html (Exploit, Third Party Advisory, VDB Entry)
- https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-34527 (Mitigation, Patch, Vendor Advisory)
- https://www.kb.cert.org/vuls/id/383432 (Third Party Advisory, US Government Resource)
- https://www.vicarius.io/vsociety/posts/cve-2021-34527-printnightmare-detection-script (Exploit, Third Party Advisory)
- https://www.vicarius.io/vsociety/posts/cve-2021-34527-printnightmare-mitigation-script (Exploit, Third Party Advisory)
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-34527 (US Government Resource)
This product uses the NVD API but is not endorsed or certified by the NVD.
Read on 2026-11-02T23:41:51.476Z under licence nvd-api-terms-of-use@ff2a5288 from https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2021-34527
CVE record
- Title (CNA)
- Windows Print Spooler Remote Code Execution Vulnerability
- Assigner
- microsoft
- State
- PUBLISHED
- Published
- 2021-07-02T21:25:11.000Z
- Updated
- 2026-08-10T15:12:05.065Z
- Problem types
- Remote Code Execution
References
Read on 2026-11-03T01:08:15.167Z under licence cve-terms-of-use@81bfa2f3 from https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2021/34xxx/CVE-2021-34527.json
Detection rules (SigmaHQ)
SigmaHQ rules whose own tags name this CVE. Each rule page shows the rule as its author published it.
- Windows Spooler Service Suspicious Binary Load (status test, level informational)
- Antivirus PrinterNightmare CVE-2021-34527 Exploit Detection (status stable, level critical)
- Possible PrintNightmare Print Driver Install - CVE-2021-1675 (status stable, level medium)
- CVE-2021-1675 Print Spooler Exploitation IPC Access (status test, level critical)
- PrinterNightmare Mimikatz Driver Name (status test, level critical)
Sources and licences
CISA
Source: CISA Catalog of Known Exploited Vulnerabilities, version 2026.10.30, CC0 1.0. Use of this data does not imply endorsement by CISA or DHS.
National Vulnerability Database (NIST)
This product uses the NVD API but is not endorsed or certified by the NVD.
NVD API Terms of Use (NIST publications in the public domain, 17 U.S.C. 105)
CVE Program, The MITRE Corporation
Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation. CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy.
SigmaHQ
"Windows Spooler Service Suspicious Binary Load" by FPT.EagleEye, Thomas Patzke (improvements) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-emerging-threats/2021/Exploits/CVE-2021-1675/image_load_exploit_cve_2021_1675_spoolsv_dll_load.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-LicenseSigmaHQ
"Antivirus PrinterNightmare CVE-2021-34527 Exploit Detection" by Sittikorn S, Nuttakorn T, Tim Shelton (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-emerging-threats/2021/Exploits/CVE-2021-1675/av_exploit_cve_2021_34527_print_nightmare.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-LicenseSigmaHQ
"Possible PrintNightmare Print Driver Install - CVE-2021-1675" by @neu5ron (Nate Guagenti) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-emerging-threats/2021/Exploits/CVE-2021-1675/zeek_dce_rpc_exploit_cve_2021_1675_printnightmare_print_driver_install.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-LicenseSigmaHQ
"CVE-2021-1675 Print Spooler Exploitation IPC Access" by INIT_6 (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-emerging-threats/2021/Exploits/CVE-2021-1675/win_security_exploit_cve_2021_1675_printspooler_security.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-LicenseSigmaHQ
"PrinterNightmare Mimikatz Driver Name" by Markus Neis, @markus_neis, Florian Roth (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-emerging-threats/2021/Exploits/CVE-2021-1675/registry_event_cve_2021_1675_mimikatz_printernightmare_drivers.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "CVE-2021-34527: Microsoft Windows Print Spooler Remote Code Execution Vulnerability",
entity page, dataset version ref-dbcf1e12462b, updated 2026-11-02T23:39:54.475Z,
https://ransomware-tracker.com/cve/CVE-2021-34527 (accessed 2026-11-03).
Underlying source: CISA Catalog of Known Exploited Vulnerabilities, version 2026.10.30.
Underlying source: National Vulnerability Database (NIST), CVE API 2.0, record last modified 2026-08-10T20:15:22.807.
Underlying source: CVE List (CVE Program, The MITRE Corporation), record updated 2026-08-10T15:12:05.065Z.
Underlying source: SigmaHQ rule 02fb90de-c321-4e63-a6b9-25f4b03dfd14, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Underlying source: SigmaHQ rule 6fe1719e-ecdf-4caf-bffe-4f501cb0a561, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Underlying source: SigmaHQ rule 7b33baef-2a75-4ca3-9da4-34f9a15382d8, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Underlying source: SigmaHQ rule 8fe1c584-ee61-444b-be21-e9054b229694, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Underlying source: SigmaHQ rule ba6b9e43-1d45-4d3c-a504-1043a64c8469, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.