CVE-2021-34527
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.
CISA Known Exploited Vulnerabilities entry
| Vulnerability name | Microsoft Windows Print Spooler Remote Code Execution Vulnerability |
|---|---|
| Vendor / product | Microsoft / Windows |
| Date added | 2021-11-03 |
| Federal remediation due date | 2022-05-03 |
| Required action | Apply updates per vendor instructions. |
| Known ransomware campaign use | Known |
CISA SSVC decision points
| Exploitation | active |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2024-01-24 |
Timeline
- 2021-07-02Published by the CNA21:25 UTC
- 2021-11-03Added to the CISA KEV catalog124 days after publication
- 2024-01-24CISA SSVC decision recorded936 days after publication
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| microsoft windows_server_2012 | from 6.2.9200.0 before 6.2.9200.23383fixed in 6.2.9200.23383 | 6.2.9200.23383 |
| microsoft windows_server_2016 | from 10.0.14393.0 before 10.0.14393.4470fixed in 10.0.14393.4470before 10.0.14393.4470fixed in 10.0.14393.4470 | 10.0.14393.447010.0.14393.4470 |
| microsoft windows_10_1507 | from 10.0.10240.0 before 10.0.10240.18969fixed in 10.0.10240.18969before 10.0.10240.18969fixed in 10.0.10240.18969 | 10.0.10240.1896910.0.10240.18969 |
| microsoft windows_10_1607 | from 10.0.14393.0 before 10.0.14393.4470fixed in 10.0.14393.4470before 10.0.14393.4470fixed in 10.0.14393.4470 | 10.0.14393.447010.0.14393.4470 |
| microsoft windows_10_1809 | from 10.0.0 before 10.0.17763.2029fixed in 10.0.17763.2029from 10.0.17763.0 before 10.0.17763.2029fixed in 10.0.17763.2029before 10.0.17763.2029fixed in 10.0.17763.2029 | 10.0.17763.202910.0.17763.202910.0.17763.2029 |
| microsoft windows_10_20h2 | from 10.0.0 before 10.0.19042.1083fixed in 10.0.19042.1083before 10.0.19042.1083fixed in 10.0.19042.1083 | 10.0.19042.108310.0.19042.1083 |
| microsoft windows_10_21h2 | from 10.0.19044.0 before 10.0.19044.1415fixed in 10.0.19044.1415before 10.0.19044.1415fixed in 10.0.19044.1415 | 10.0.19044.141510.0.19044.1415 |
| microsoft windows_10_22h2 | from 10.0.19045.0 before 10.0.19045.2251fixed in 10.0.19045.2251before 10.0.19045.2251fixed in 10.0.19045.2251 | 10.0.19045.225110.0.19045.2251 |
| microsoft windows_11_21h2 | from 10.0.22000.0 before 10.0.22000.318fixed in 10.0.22000.318before 10.0.22000.318fixed in 10.0.22000.318 | 10.0.22000.31810.0.22000.318 |
| microsoft windows_11_22h2 | from 10.0.22621.0 before 10.0.22621.674fixed in 10.0.22621.674before 10.0.22621.674fixed in 10.0.22621.674 | 10.0.22621.67410.0.22621.674 |
| microsoft windows_rt_8.1 | from 6.3.0 before 6.3.9600.20046fixed in 6.3.9600.20046 | 6.3.9600.20046 |
| microsoft windows_server_2008 | ||
| microsoft windows_server_2008_r2 | from 6.1.7601.0 before 6.1.7601.25633fixed in 6.1.7601.25633 | 6.1.7601.25633 |
| microsoft windows_server_2008_sp2 | from 6.0.6003.0 before 6.0.6003.21138fixed in 6.0.6003.21138 | 6.0.6003.21138 |
| microsoft windows_server_2012_r2 | from 6.3.9600.0 before 6.3.9600.20046fixed in 6.3.9600.20046 | 6.3.9600.20046 |
| microsoft windows_server_2019 | from 10.0.17763.0 before 10.0.17763.2029fixed in 10.0.17763.2029before 10.0.17763.2029fixed in 10.0.17763.2029 | 10.0.17763.202910.0.17763.2029 |
| microsoft windows_server_2022 | from 10.0.20348.0 before 10.0.20348.230fixed in 10.0.20348.230before 10.0.20348.230fixed in 10.0.20348.230 | 10.0.20348.23010.0.20348.230 |
| microsoft windows_server_20h2 | from 10.0.0 before 10.0.19042.1083fixed in 10.0.19042.1083before 10.0.19042.1083fixed in 10.0.19042.1083 | 10.0.19042.108310.0.19042.1083 |
References
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2021-34527
- https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-34527
- http://packetstormsecurity.com/files/167261/Print-Spooler-Remote-DLL-Injection.html
- https://www.vicarius.io/vsociety/posts/cve-2021-34527-printnightmare-detection-script
- https://www.vicarius.io/vsociety/posts/cve-2021-34527-printnightmare-mitigation-script
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-34527
- https://www.kb.cert.org/vuls/id/383432
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2021-34527'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2021-34527'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2021-34527'curl 'https://api.contrastcyber.com/cve_products/CVE-2021-34527'curl 'https://api.contrastcyber.com/kev_lookup/CVE-2021-34527'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).