The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-34527

CVE-2021-34527: Windows Print Spooler RCE Vulnerability

CVE-2021-34527 is a remote code execution vulnerability in Windows Print Spooler, known as PrintNightmare, allowing attackers to execute code with SYSTEM privileges. This article covers technical details, affected systems, and mitigation.

Published: March 4, 2026

CVE-2021-34527 Overview

CVE-2021-34527, widely known as "PrintNightmare," is a remote code execution vulnerability in the Windows Print Spooler service. The vulnerability exists because the Print Spooler service improperly performs privileged file operations. An attacker who successfully exploits this vulnerability can execute arbitrary code with SYSTEM privileges, allowing them to install programs, view, change, or delete data, or create new accounts with full user rights.

This vulnerability is particularly dangerous because it affects virtually all versions of Windows, from Windows 7 through Windows 11 and Windows Server 2008 through Windows Server 2022. The Print Spooler service runs by default on most Windows systems, making the attack surface extremely broad.

Critical Impact

Successful exploitation allows attackers to achieve SYSTEM-level code execution remotely, enabling complete system compromise including data exfiltration, ransomware deployment, and persistent backdoor installation.

Affected Products

  • Microsoft Windows 7 SP1
  • Microsoft Windows 8.1
  • Microsoft Windows 10 (all versions: 1507, 1607, 1809, 20H2, 21H2, 22H2)
  • Microsoft Windows 11 (21H2, 22H2)
  • Microsoft Windows RT 8.1
  • Microsoft Windows Server 2008 SP2 and R2 SP1
  • Microsoft Windows Server 2012 and R2
  • Microsoft Windows Server 2016
  • Microsoft Windows Server 2019
  • Microsoft Windows Server 2022
  • Microsoft Windows Server 20H2

Discovery Timeline

  • July 2, 2021 - CVE-2021-34527 published to NVD
  • July 6, 2021 - Microsoft released security updates to address the vulnerability
  • July 7, 2021 - Additional security updates released for Windows Server 2012, Windows Server 2016, and Windows 10 Version 1607
  • December 18, 2025 - Last updated in NVD database

Technical Details for CVE-2021-34527

Vulnerability Analysis

The PrintNightmare vulnerability stems from improper privilege handling within the Windows Print Spooler service (spoolsv.exe). The service fails to properly restrict access to the RpcAddPrinterDriverEx() function, which allows authenticated users to install printer drivers. Because printer drivers execute with SYSTEM privileges, an attacker can abuse this functionality to load a malicious DLL that executes arbitrary code with the highest privilege level.

The vulnerability can be exploited both locally and remotely. In the remote attack scenario, an authenticated domain user can target any system with the Print Spooler service enabled, making it particularly devastating in Active Directory environments where a single compromised low-privilege account can lead to domain-wide compromise.

Root Cause

The root cause lies in the Print Spooler's inadequate validation of access permissions when processing driver installation requests. The RpcAddPrinterDriverEx() function accepts a driver path that can point to a remote SMB share, and the service loads the specified DLL without properly verifying whether the caller has sufficient privileges to perform such operations. Additionally, certain registry configurations (NoWarningNoElevationOnInstall and UpdatePromptSettings) can further weaken security when misconfigured.

Attack Vector

The attack is network-based and requires low privileges (authenticated user). An attacker can exploit this vulnerability by:

  1. Setting up a malicious SMB share hosting a weaponized DLL
  2. Connecting to a target system's Print Spooler service via RPC
  3. Calling RpcAddPrinterDriverEx() with a driver path pointing to the malicious DLL
  4. The Print Spooler loads and executes the DLL with SYSTEM privileges

The attack does not require user interaction and can be executed remotely against any accessible Windows system running the Print Spooler service. Technical details and proof-of-concept materials are available from the Packet Storm Exploit Report and CERT Vulnerability Note #383432.

Detection Methods for CVE-2021-34527

Indicators of Compromise

  • Suspicious DLL files created in the C:\Windows\System32\spool\drivers\\x64\3\ directory
  • Unusual print driver installations logged in Windows Event Viewer (Event ID 316 in Microsoft-Windows-PrintService/Admin)
  • Network connections from spoolsv.exe to external or unusual SMB shares
  • Creation of unexpected user accounts or privilege modifications following Print Spooler activity

Detection Strategies

  • Monitor for Event ID 316 (Printer driver installation) in Microsoft-Windows-PrintService/Admin log
  • Enable and monitor Windows Event ID 4688 (Process Creation) with command-line logging for suspicious rundll32.exe or DLL loading activities
  • Deploy SentinelOne Singularity Platform to detect and block malicious DLL injection attempts targeting the Print Spooler service
  • Use endpoint detection rules to identify spoolsv.exe spawning unexpected child processes or loading unsigned DLLs

Monitoring Recommendations

  • Implement network monitoring to detect SMB traffic originating from spoolsv.exe to non-standard destinations
  • Configure alerting for any changes to Point and Print registry keys under HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Printers\PointAndPrint
  • Regularly audit printer driver installations across the environment using SCCM or similar management tools
  • Leverage the Vicarius Detection Script for CVE-2021-34527 for vulnerability assessment

How to Mitigate CVE-2021-34527

Immediate Actions Required

  • Apply Microsoft security updates released on July 6, 2021 and later immediately to all affected systems
  • Disable the Print Spooler service on systems where printing is not required, especially on Domain Controllers
  • Verify that NoWarningNoElevationOnInstall and UpdatePromptSettings registry values are set to 0 or are not defined
  • Restrict inbound connections to the Print Spooler service using Windows Firewall or network segmentation

Patch Information

Microsoft has released security updates addressing CVE-2021-34527. These updates are documented in the Microsoft Security Advisory CVE-2021-34527. Additional guidance is available in KB5005010: Restricting installation of new printer drivers after applying the July 6, 2021 updates.

Note that security updates released on and after July 6, 2021 contain protections for both CVE-2021-1675 and CVE-2021-34527 (PrintNightmare).

Workarounds

  • Disable the Print Spooler service entirely using Stop-Service -Name Spooler -Force; Set-Service -Name Spooler -StartupType Disabled
  • Use Group Policy to disable Point and Print functionality for non-administrative users
  • Configure the RestrictDriverInstallationToAdministrators registry value to restrict driver installation to administrators only
  • Implement network-level blocking of SMB traffic (port 445) to critical servers where printing is not required
bash
# Disable Print Spooler service (PowerShell)
Stop-Service -Name Spooler -Force
Set-Service -Name Spooler -StartupType Disabled

# Verify secure registry configuration
# Ensure these values are 0 or not present
reg query "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Printers\PointAndPrint" /v NoWarningNoElevationOnInstall
reg query "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Printers\PointAndPrint" /v UpdatePromptSettings

# Restrict driver installation to administrators (requires July 2021 or later updates)
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\PointAndPrint" /v RestrictDriverInstallationToAdministrators /t REG_DWORD /d 1 /f

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechWindows

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability94.27%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • NVD-CWE-noinfo
  • Technical References
  • Packet Storm Exploit Report

  • CERT Vulnerability Note #383432

  • Vicarius Detection Script for CVE-2021-34527

  • Vicarius Mitigation Script for CVE-2021-34527

  • CISA Known Exploited Vulnerabilities Catalog
  • Vendor Resources
  • Microsoft Security Advisory CVE-2021-34527
  • Related CVEs
  • CVE-2026-31995: Openclaw Command Injection Vulnerability

  • CVE-2026-25190: Windows GDI RCE Vulnerability

  • CVE-2026-25166: Windows System Image Manager RCE Flaw

  • CVE-2026-25173: Windows RRAS RCE Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English