Exploit database

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:C

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.

CVE Program

Exploit source choices

53 sources
Print Spooler Remote DLL Injection
MSF-windows--dcerpc--cve_2021_1675_printnightmareMetasploitWindows / remotePreferred

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.

2021-06-08cve_2021_1675_printnightmare.rb
0xsyr0/oscp
GH-1e9613ea0d155c33d16520580dbed873GitHubUnofficial GitHub source

OSCP Cheat Sheet

2021-10-2262 files · 3,887 stars
ascotbe/kernelhub
GH-8b280b255d15c1d9be88f37634c068eeGitHubUnofficial GitHub source

:palm_tree:Linux、macOS、Windows Kernel privilege escalation vulnerability collection, with compilation environment, demo GIF map, vulnerability details, executable file (提权漏洞合集)

2020-08-091,837 files · 3,202 stars
0x6d69636b/windows_hardening
GH-13213d5ab3c16eebd4c9c78441faa4afGitHubUnofficial GitHub source

HardeningKitty and Windows Hardening Settings

2017-10-23153 files · 2,680 stars
cube0x0/cve-2021-1675
GH-093ed259e4a03b5d9301a88fbffa84e0GitHubUnofficial GitHub source

C# and Impacket implementation of PrintNightmare CVE-2021-1675/CVE-2021-34527

2021-06-2921 files · 2,012 stars
b4rtik/sharpkatz
GH-c2f37df27b6dfacaca87242f2393c681GitHubUnofficial GitHub source

Porting of mimikatz sekurlsa::logonpasswords, sekurlsa::ekeys and lsadump::dcsync commands

2020-05-1942 files · 1,021 stars
byt3bl33d3r/itwasalladream
GH-6588d6174d773893409b80edc4379cb9GitHubUnofficial GitHub source

A PrintNightmare (CVE-2021-34527) Python Scanner. Scan entire subnets for hosts vulnerable to the PrintNightmare RCE

2021-07-0516 files · 802 stars
beetlechunks/spoolsploit
GH-3d4910cb7536526baefaa156adb663aeGitHubUnofficial GitHub source

A collection of Windows print spooler exploits containerized with other utilities for practical exploitation.

2021-07-0712 files · 548 stars
bc-security/moriarty
GH-ba199055b7cbffd63075d942014fd8e4GitHubUnofficial GitHub source

Moriarty is designed to enumerate missing KBs, detect various vulnerabilities, and suggest potential exploits for Privilege Escalation in Windows environments.

2023-12-1155 files · 517 stars
johnhammond/cve-2021-34527
GH-3e75eed07aac89853df05ec4cfbd24eeGitHubUnofficial GitHub source

johnhammond/cve-2021-34527 source repository

2021-07-0210 files · 332 stars
hlldz/cve-2021-1675-lpe
GH-e3d0c5a7a39ef5783b7b72226a3ce0a4GitHubUnofficial GitHub source

Local Privilege Escalation Edition for CVE-2021-1675/CVE-2021-34527

2021-07-0116 files · 326 stars
ly4k/printnightmare
GH-3c25d4cad33ddc4b2a53bc19418591c3GitHubUnofficial GitHub source

Python implementation for PrintNightmare (CVE-2021-1675 / CVE-2021-34527)

2021-09-263 files · 215 stars
nemo-wq/printnightmare-cve-2021-34527
GH-cc8fc9f3c68f25be2c0fe662ed579196GitHubUnofficial GitHub source

PrintNightmare - Windows Print Spooler RCE/LPE Vulnerability (CVE-2021-34527, CVE-2021-1675) proof of concept exploits

2021-07-0328 files · 181 stars
m8sec/cve-2021-34527
GH-b57a1985f93def6440e0934a3aee7d1cGitHubUnofficial GitHub source

PrintNightmare (CVE-2021-34527) PoC Exploit

2022-08-233 files · 119 stars
evilashz/cve-2021-1675-lpe-exp
GH-82fd3e8332a4bfb57a53dea5f29ee3edGitHubUnofficial GitHub source

PrintNightmare , Local Privilege Escalation of CVE-2021-1675 or CVE-2021-34527

2021-07-0111 files · 56 stars
clearbluejar/cve-markdown-charts
GH-a6bfca51f431233a4959d439eb5881aaGitHubUnofficial GitHub source

A simple tool to create mermaid js markdown charts from CVE IDs and CVE keyword searches.

2022-02-186 files · 47 stars
hackerhouse-opensource/cve-2021-34527
GH-32185ff0b0c6bebab0b8ea1c5a12ff2fGitHubUnofficial GitHub source

CVE-2021-34527 AddPrinterDriverEx() Privilege Escalation

2022-09-0513 files · 23 stars
cvedb/awesome-cve-repo
GH-5d2d5bc79e38467342aae25328e8c9d0GitHubUnofficial GitHub source

cvedb/awesome-cve-repo source repository

2023-03-237 files · 9 stars
auduongxuan/cve-2022-26809
GH-cb005120f0d856488c96fb1c7454114eGitHubUnofficial GitHub source

auduongxuan/cve-2022-26809 source repository

2022-04-1421 files · 7 stars
carloslacasa/cyber-ansible
GH-c75ccde4d2e0f188d7ae2d48eef24c51GitHubUnofficial GitHub source

Ansible playbooks related to Cybersecurity

2021-01-30270 files · 6 stars
darkstuff-lab/spoolsploit
GH-89f2880003475124b0f9c7ed684ff389GitHubUnofficial GitHub source

darkstuff-lab/spoolsploit source repository

2023-03-0312 files · 4 stars
tomparte/printnightmare
GH-e34c9aebd927e2ee4e9c8662c86dd412GitHubUnofficial GitHub source

To fight against Windows security breach PrintNightmare! (CVE-2021-34527, CVE-2021-1675)

2021-07-284 files · 3 stars
0xirison/printnightmare-patcher
GH-eec319df6d673a55f816986955a78b65GitHubUnofficial GitHub source

A patch for PrintNightmare vulnerability that occurs to print spooler service for Windows machines [CVE-2021-34527]

2021-07-123 files · 2 stars
adampumphrey/powershell
GH-f33efd8c2d31819c24aabd35114efecaGitHubUnofficial GitHub source

Various PowerShell scripts created from May 2021 to Sept 2021

2021-06-2516 files · 2 stars
cvedb/top
GH-2e626f612a2d87f79d1d9385117cfa16GitHubUnofficial GitHub source

cvedb/top source repository

2023-03-1911 files · 2 stars
3xoa-offsec/vectorhunt-beta
GH-82325c9ab8430211eda35cbde0c50819GitHubUnofficial GitHub source

3xoa-offsec/vectorhunt-beta source repository

2025-10-07224 files · 1 stars
ais1on/cyeg-rag
GH-f2959b83a7bbfd4b0bc295961f120654GitHubUnofficial GitHub source

一个专为威胁情报分析设计的高级RAG(检索增强生成)系统,集成了知识图谱、混合检索和大语言模型,支持DeepSeek-Chat和ZhipuAI Embedding-3

2025-06-0560 files · 1 stars
amaranese/cve-2021-34527
GH-65ba38738eb2bd4e187fe41ed913f6beGitHubUnofficial GitHub source

amaranese/cve-2021-34527 source repository

2021-12-1311 files · 1 stars
angui0o/awesome-redteam
GH-736e2cbdd41fd8389b6854c2df8f3b1bGitHubUnofficial GitHub source

angui0o/awesome-redteam source repository

2024-05-17144 files · 1 stars
austin-src/cve-checker
GH-1bae4411ce96f2a8aeb2cc4cab5536cfGitHubUnofficial GitHub source

Script for checking Active Directory CVE's on Domain Controllers

2023-03-142 files · 1 stars
cyb3rpeace/cve-2021-34527
GH-052a94d6007ffafa343e645b870ffebfGitHubUnofficial GitHub source

cyb3rpeace/cve-2021-34527 source repository

2022-06-2410 files · 1 stars
d0nkeyk0ng787/printnightmare-poc
GH-689150654a8cc92139a937d052d3d417GitHubUnofficial GitHub source

This is a PrintNightmare POC I wrote in my endeavour to better learn C, the WinAPI, and exploit/malware dev

2023-09-087 files · 1 stars
0xss0rz/windows_exploit
GH-c06337e074de5a2bd82096e6b39896ebGitHubUnofficial GitHub source

CVE-2021-1675/CVE-2021-34527 PrintNightmare & CVE-2020-0668

2024-06-057 files · 0 stars
adamamicro/cahard
GH-e5cdacc9d98732b4f7a56d101324dfe3GitHubUnofficial GitHub source

adamamicro/cahard source repository

2022-02-093 files · 0 stars
aldawli/cve-2021-34527-
GH-b0b734a19feca4d30118a50a81c15e43GitHubUnofficial GitHub source

PrintNightmare Report

2026-05-272 files · 0 stars
alfesito/windows_hardening
GH-5ffd78ef5a882b727485d0f64efc49beGitHubUnofficial GitHub source

alfesito/windows_hardening source repository

2024-08-09117 files · 0 stars
andrellorente/nvd_cve_extractor
GH-497b6cc637e859e8f405fd23b129725bGitHubUnofficial GitHub source

andrellorente/nvd_cve_extractor source repository

2024-07-142 files · 0 stars
anissehounaoui/pentesting-tools
GH-f475c1ed8a3a79d6cf760ab052c7cd08GitHubUnofficial GitHub source

This repo contains popular pentesting scripts and tools

2024-06-3022 files · 0 stars
ausk1ll9/cve-2021-34527
GH-4e320797809edcfe93bc3efa0905eff3GitHubUnofficial GitHub source

CVE-2021-34527 is a critical remote code execution and local privilege escalation vulnerability dubbed "PrintNightmare."

2025-05-213 files · 0 stars
badr0b0t33/nsfw-malware
GH-483f26c93830392831ea0d00b51818aaGitHubUnofficial GitHub source

Windows file-less hybrid malware dev for educational and security research purposes only.

2025-06-0643 files · 0 stars
badr0b0t33/printattck
GH-fc37a905aa24205c4165312d216750d0GitHubUnofficial GitHub source

Fileless ransomware for educational and security research purposes only.

2025-06-0762 files · 0 stars
chuggelfischli/hardeningkitty
GH-5377fb2b036ce2e1a061f9a48927bdcaGitHubUnofficial GitHub source

Harening Kitty Folder for Complete Setup for Customers

2025-01-27117 files · 0 stars
code-is-hope/cve-reporter
GH-e4d2ab89bdb90d769dc7d461f44aaa12GitHubUnofficial GitHub source

CVE-Reporting Tool

2024-04-095 files · 0 stars
crimsoncore/sharpkatz
GH-35fd60321fca23a9991e0df895b95ed1GitHubUnofficial GitHub source

crimsoncore/sharpkatz source repository

2025-07-3187 files · 0 stars
d0rb/cve-2021-34527
GH-b7cab2a2fc55d2ac4ac15d0a1cd552d6GitHubUnofficial GitHub source

CVE-2021-34527 PrintNightmare PoC

2023-08-202 files · 0 stars
darkm4n/advanced-vulnerability-scanner
GH-51e17a6af843901b78d708ed2d29f3f8GitHubUnofficial GitHub source

Advanced Vulnerability Scanner with Interactive Web Interface - ماسح الثغرات الأمنية المتقدم مع واجهة ويب تفاعلية

2025-10-0127 files · 0 stars
denizse/cve-2021-34527
GH-0dca8265b0c6edc23596d489f16562b8GitHubUnofficial GitHub source

Small Powershell Script to detect Running Printer Spoolers on Domain Controller

2021-07-013 files · 0 stars