Code Injection in Microsoft Windows and Windows Server - CVE-2021-34527
Published: June 8, 2021 / Updated: September 6, 2022
Vulnerability details
The vulnerability allows a remote user to execute arbitrary code on the target system.
The vulnerability exists due to improper input validation within the RpcAddPrinterDriverEx() function. A remote user can send a specially crafted request to the Windows Print Spooler and execute arbitrary code with SYSTEM privileges.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Note, the vulnerability is being considered a zero-day and dubbed PrintNightmare. This is a different vulnerability than #VU54508 (CVE-2021-1675).
Affected software
Windows Server
Solutions Enabler Virtual Appliance
Solutions Enabler
Unisphere for PowerMax Virtual Appliance
Unisphere for PowerMax
How to mitigate CVE-2021-34527
Solutions Enabler - addressed in versions 9.1.0.17, 9.2.2.0
Unisphere for PowerMax Virtual Appliance - addressed in versions 9.1.0.28, 9.2.2.2
Unisphere for PowerMax - addressed in versions 9.1.0.28, 9.2.2.2
Links to Public Exploits and PoC-codes
- Exploit #8344 - cve-2021-34527 (CVE-2021-34527 AddPrinterDriverEx() Privilege Escalation) (September 6, 2022)
- Exploit #8293 - CVE-2021-34527 (PrintNightmare (CVE-2021-34527) PoC Exploit) (August 24, 2022)
- Exploit #7886 - Print Spooler Remote DLL Injection (May 24, 2022)
- Exploit #7166 - CVE-2021-34527 () (December 13, 2021)
- Exploit #6536 - PrintNightmare-CVE-2021-1675-CVE-2021-34527 (CVE-2021-1675 / CVE-2021-34527 - PrintNightmare Python, C# and PowerShell Exploits Implementations (LPE & RCE)) (July 12, 2021)
- Exploit #6523 - Print Spooler Remote DLL Injection (July 8, 2021)
- Exploit #6513 - CVE-2021-1675_CVE-2021-34527_PrintNightmare (Windows Print Spooler Remote Code Execution Vulnerability (CVE-2021-34527) proof of concept exploits) (July 4, 2021)
- Exploit #6512 - PrintNightmare-CVE-2021-34527 (PrintNightmare - Windows Print Spooler RCE/LPE Vulnerability (CVE-2021-34527, CVE-2021-1675) proof of concept exploits) (July 4, 2021)
- Exploit #6511 - CVE-2021-34527 () (July 4, 2021)
- Exploit #6510 - CVE-2021-1675 (Pure PowerShell implementation of CVE-2021-1675 Print Spooler Local Privilege Escalation (PrintNightmare)) (July 4, 2021)
- Exploit #6507 - PrintNightmare-CVE-2021-1675 (Youtube : https://youtu.be/Zr0KjYDSFKQ) (July 4, 2021)
- Exploit #6506 - cve-2021-1675-printnightmare (to catch cve-2021-1675-printnightmare) (July 4, 2021)
- Exploit #6498 - CVE-2021-1675 () (July 1, 2021)
- Exploit #6496 - CVE-2021-1675-LPE (Local Privilege Escalation Edition for CVE-2021-1675/CVE-2021-34527) (July 1, 2021)
- Exploit #6495 - CVE-2021-1675-LPE-EXP (PrintNightmare , Local Privilege Escalation of CVE-2021-1675 or CVE-2021-34527) (July 1, 2021)
- Exploit #6493 - CVE-2021-1675_PrintNightMare () (July 1, 2021)
- Exploit #6492 - CVE-2021-1675 (CVE-2021-1675 Detection Info) (July 1, 2021)
- Exploit #6484 - CVE-2021-1675 (C# and Impacket implementation of PrintNightmare CVE-2021-1675/CVE-2021-34527) (June 29, 2021)