The print spooler service can be abused by an authenticated remote attacker to load a DLL through a crafted DCERPC request, resulting in remote code execution as NT AUTHORITY\SYSTEM. This module uses the MS-RPRN vector which requires the Print Spooler service to be running.
Vulnerability
CVE-2021-34527
Windows Print Spooler Remote Code Execution Vulnerability
Vulnerability details
- Score
- 8.8
- Severity
- high
CVSS 3.1 · microsoft
Vector string
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:F/RL:O/RC:CDescription
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.
CVE ProgramExploit source choices
53 sourcesOSCP Cheat Sheet
:palm_tree:Linux、macOS、Windows Kernel privilege escalation vulnerability collection, with compilation environment, demo GIF map, vulnerability details, executable file (提权漏洞合集)
HardeningKitty and Windows Hardening Settings
C# and Impacket implementation of PrintNightmare CVE-2021-1675/CVE-2021-34527
Porting of mimikatz sekurlsa::logonpasswords, sekurlsa::ekeys and lsadump::dcsync commands
A PrintNightmare (CVE-2021-34527) Python Scanner. Scan entire subnets for hosts vulnerable to the PrintNightmare RCE
A collection of Windows print spooler exploits containerized with other utilities for practical exploitation.
Moriarty is designed to enumerate missing KBs, detect various vulnerabilities, and suggest potential exploits for Privilege Escalation in Windows environments.
johnhammond/cve-2021-34527 source repository
Local Privilege Escalation Edition for CVE-2021-1675/CVE-2021-34527
Use to build an anonymous SMB file server.
Python implementation for PrintNightmare (CVE-2021-1675 / CVE-2021-34527)
PrintNightmare - Windows Print Spooler RCE/LPE Vulnerability (CVE-2021-34527, CVE-2021-1675) proof of concept exploits
PrintNightmare (CVE-2021-34527) PoC Exploit
PrintNightmare , Local Privilege Escalation of CVE-2021-1675 or CVE-2021-34527
A simple tool to create mermaid js markdown charts from CVE IDs and CVE keyword searches.
CVE-2021-34527 AddPrinterDriverEx() Privilege Escalation
cvedb/awesome-cve-repo source repository
auduongxuan/cve-2022-26809 source repository
Ansible playbooks related to Cybersecurity
darkstuff-lab/spoolsploit source repository
dywhoami/cve-2021-34527-scanner-based-on-cube0x0-poc source repository
How to fix the PrintNightmare vulnerability
To fight against Windows security breach PrintNightmare! (CVE-2021-34527, CVE-2021-1675)
A patch for PrintNightmare vulnerability that occurs to print spooler service for Windows machines [CVE-2021-34527]
Various PowerShell scripts created from May 2021 to Sept 2021
cvedb/top source repository
3xoa-offsec/vectorhunt-beta source repository
一个专为威胁情报分析设计的高级RAG(检索增强生成)系统,集成了知识图谱、混合检索和大语言模型,支持DeepSeek-Chat和ZhipuAI Embedding-3
amaranese/cve-2021-34527 source repository
angui0o/awesome-redteam source repository
Script for checking Active Directory CVE's on Domain Controllers
cyb3rpeace/cve-2021-34527 source repository
This is a PrintNightmare POC I wrote in my endeavour to better learn C, the WinAPI, and exploit/malware dev
whoami-chmod777/cve-2021-1675-cve-2021-34527 source repository
CVE-2021-1675/CVE-2021-34527 PrintNightmare & CVE-2020-0668
adamamicro/cahard source repository
PrintNightmare Report
alfesito/windows_hardening source repository
andrellorente/nvd_cve_extractor source repository
This repo contains popular pentesting scripts and tools
CVE-2021-34527 is a critical remote code execution and local privilege escalation vulnerability dubbed "PrintNightmare."
Windows file-less hybrid malware dev for educational and security research purposes only.
Fileless ransomware for educational and security research purposes only.
programmatic-vulnerability-remediations
Harening Kitty Folder for Complete Setup for Customers
CVE-Reporting Tool
crimsoncore/sharpkatz source repository
OKU 2105 Capstone Research on PrintNightmare
CVE-2021-34527 PrintNightmare PoC
Advanced Vulnerability Scanner with Interactive Web Interface - ماسح الثغرات الأمنية المتقدم مع واجهة ويب تفاعلية
Small Powershell Script to detect Running Printer Spoolers on Domain Controller