CVE-2021-34527
Windows Print Spooler Remote Code Execution Vulnerability
Known exploited
CISA added this CVE to its list of known exploited vulnerabilities on 3 Nov 2021. US federal agencies had to act by 3 May 2022.
- Name
- Microsoft Windows Print Spooler Remote Code Execution Vulnerability
- Required action
- Apply updates per vendor instructions.
- Ransomware
- Known to be used in ransomware campaigns
- Notes
- https://nvd.nist.gov/vuln/detail/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.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:F/RL:O/RC:C
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 99.7%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 99.9% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 24 Jan 2024):
- Exploitation
- active: CISA has reliable evidence of exploitation in the wild
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Windows 10 Version 1507 |
affected from 10.0.10240.0, before 10.0.10240.18969
|
| Windows 10 Version 1607 |
affected from 10.0.14393.0, before 10.0.14393.4470
|
| Windows 10 Version 1809 |
affected from 10.0.17763.0, before 10.0.17763.2029
|
| Windows 10 Version 1809 |
affected from 10.0.0, before 10.0.17763.2029
|
| Windows 10 Version 20H2 |
affected from 10.0.0, before 10.0.19042.1083
|
| Windows 10 Version 21H2 |
affected from 10.0.19044.0, before 10.0.19044.1415
|
| Windows 10 Version 22H2 |
affected from 10.0.19045.0, before 10.0.19045.2251
|
| Windows 11 version 21H2 |
affected from 10.0.22000.0, before 10.0.22000.318
|
| Windows 11 version 22H2 |
affected from 10.0.22621.0, before 10.0.22621.674
|
| Windows 8.1 |
affected from 6.3.0, before 6.3.9600.20046
|
| Windows Server 2008 R2 Service Pack 1 |
affected from 6.1.7601.0, before 6.1.7601.25633
|
| Windows Server 2008 R2 Service Pack 1 (Server Core installation) |
affected from 6.1.7601.0, before 6.1.7601.25633
|
| Windows Server 2008 Service Pack 2 |
affected from 6.0.6003.0, before 6.0.6003.21138
|
| Windows Server 2008 Service Pack 2 (Server Core installation) |
affected from 6.0.6003.0, before 6.0.6003.21138
|
| Windows Server 2012 |
affected from 6.2.9200.0, before 6.2.9200.23383
|
| Windows Server 2012 (Server Core installation) |
affected from 6.2.9200.0, before 6.2.9200.23383
|
| Windows Server 2012 R2 |
affected from 6.3.9600.0, before 6.3.9600.20046
|
| Windows Server 2012 R2 (Server Core installation) |
affected from 6.3.9600.0, before 6.3.9600.20046
|
| Windows Server 2016 |
affected from 10.0.14393.0, before 10.0.14393.4470
|
| Windows Server 2016 (Server Core installation) |
affected from 10.0.14393.0, before 10.0.14393.4470
|
| Windows Server 2019 |
affected from 10.0.17763.0, before 10.0.17763.2029
|
| Windows Server 2019 (Server Core installation) |
affected from 10.0.17763.0, before 10.0.17763.2029
|
| Windows Server 2022 |
affected from 10.0.20348.0, before 10.0.20348.230
|
| Windows Server version 20H2 |
affected from 10.0.0, before 10.0.19042.1083
|
Is my server affected?
This CVE is in Windows 10 Version 1507 of Microsoft, which Linux distributions and language package managers do not ship. The advisory of the vendor is in the references below.
Vulnpocalypse matches the package lists of Linux servers and containers against the Trivy vulnerability database, which does not list this product.
References
Advisories
- Windows Print Spooler Remote Code Execution Vulnerability msrc.microsoft.com · vendor advisory, patch
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-34527 cisa.gov · government resource
Other references
- https://www.vicarius.io/vsociety/posts/cve-2021-34527-printnightmare-detection-script vicarius.io
- https://www.vicarius.io/vsociety/posts/cve-2021-34527-printnightmare-mitigation-script vicarius.io
- https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-34527 portal.msrc.microsoft.com
- http://packetstormsecurity.com/files/167261/Print-Spooler-Remote-DLL-Injection.html packetstormsecurity.com
- https://www.kb.cert.org/vuls/id/383432 kb.cert.org
Source: the record CVE-2021-34527 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse