CVE-2021-34527: Microsoft Windows Print Spooler - Remote Code Execution
- Cve: CVE-2021-34527
- Name: Microsoft Windows Print Spooler - Remote Code Execution
- 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.
- Impact: Attackers can execute arbitrary code with SYSTEM privileges, potentially leading to full system compromise, data theft, or system control.
- Remediation: Install the latest security updates for Windows Server 2012, 2016, and Windows 10, and verify registry and Group Policy settings are correctly configured.
- Vulnerability type: privilege_escalation
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.99792
- Epss percentile: 0.99956
- Assignee: [email protected]
- Published at: 2021-07-02T22:15:08Z
- Age in days: 1971
- Modified at: 2026-08-10T20:15:22Z
- Patch available: yes
- Public exploits total: 49
- References total: 17
- Products total: 15
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-34527
- Nvd status: analyzed
- Checked, none or zero: nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
- Not known: requirements
Cwe
| Id | Name |
|---|---|
| NVD-CWE-noinfo | — |
Known exploited entries
| List | Added date | Due date | Ransomware use |
|---|---|---|---|
| cisa | 2021-11-03 | 2022-05-03 | yes |
| vulncheck | 2021-07-01 | — | no |
Hackerone
- Reports: 4
- Rank: 2839
Public exploits
| Url | Source | Added date |
|---|---|---|
| http://packetstormsecurity.com/files/167261/Print-Spooler-Remote-DLL-Injection.html | nvd | 2021-07-02 |
| https://www.vicarius.io/vsociety/posts/cve-2021-34527-printnightmare-detection-script | nvd | 2021-07-02 |
| https://www.vicarius.io/vsociety/posts/cve-2021-34527-printnightmare-mitigation-script | nvd | 2021-07-02 |
| https://github.com/honouroladosu7-cpu/CVE-2021-34527_PrintNightmare.md | poc-in-github | 2026-10-21 |
| https://github.com/s1kh/Vulnerability-Analysis-and-Mitigation | poc-in-github | 2026-10-17 |
References
Products
Same in every row:
- Platform bound: no
- Sources: nvd
| Product | Affected | Url |
|---|---|---|
| microsoft:windows_server_2016 | < 10.0.14393.4470 | /v1/products/microsoft/windows_server_2016 |
| microsoft:windows_server_2012 | all versions, = r2 | /v1/products/microsoft/windows_server_2012 |
| microsoft:windows_server_2019 | < 10.0.17763.2029 | /v1/products/microsoft/windows_server_2019 |
| microsoft:windows_server_2022 | < 10.0.20348.230 | /v1/products/microsoft/windows_server_2022 |
| microsoft:windows_10_1809 | < 10.0.17763.2029 | /v1/products/microsoft/windows_10_1809 |
| microsoft:windows_10_21h2 | < 10.0.19044.1415 | /v1/products/microsoft/windows_10_21h2 |
| microsoft:windows_10_22h2 | < 10.0.19045.2251 | /v1/products/microsoft/windows_10_22h2 |
| microsoft:windows_10_1607 | < 10.0.14393.4470 | /v1/products/microsoft/windows_10_1607 |
| microsoft:windows_server_2008 | all versions, = r2 sp1 | /v1/products/microsoft/windows_server_2008 |
| microsoft:windows_rt_8.1 | all versions | /v1/products/microsoft/windows_rt_8.1 |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Known exploited: yes
- Known exploited since: 2021-11-03
- Known exploited by: cisa, vulncheck
- Vulncheck known exploited since: 2021-07-01
- Exploitation seen: yes
- Public exploit: yes
- Public exploit count: 49
- Public exploit first date: 2021-06-08
- Remote: yes
- Authentication required: yes
- Hackerone reports: 4
- Exposed hosts: 10394628
- Checked, none or zero: initial access
- Not known: nuclei template, initial access since