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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2025-21224

CVE-2025-21224: Windows 10 21h2 LPD Service RCE Vulnerability

CVE-2025-21224 is a remote code execution vulnerability in Windows 10 21h2 Line Printer Daemon Service that allows attackers to execute arbitrary code. This article covers technical details, affected versions, and mitigation.

Published: April 29, 2026

CVE-2025-21224 Overview

CVE-2025-21224 is a remote code execution vulnerability affecting the Windows Line Printer Daemon (LPD) Service. The LPD service, which provides legacy print server functionality using the LPR/LPD protocol on TCP port 515, contains a use-after-free (CWE-416) vulnerability that can be exploited by remote attackers to execute arbitrary code on affected Windows systems. Successful exploitation allows attackers to gain complete control over the target system without requiring any user interaction or prior authentication.

Critical Impact

Remote attackers can exploit this use-after-free vulnerability in the Windows LPD Service to achieve arbitrary code execution with SYSTEM privileges, potentially compromising entire network environments through print server infrastructure.

Affected Products

  • Microsoft Windows 10 21H2
  • Microsoft Windows 10 22H2
  • Microsoft Windows 11 22H2
  • Microsoft Windows 11 23H2
  • Microsoft Windows 11 24H2
  • Microsoft Windows Server 2022
  • Microsoft Windows Server 2022 23H2
  • Microsoft Windows Server 2025

Discovery Timeline

  • 2025-01-14 - CVE-2025-21224 published to NVD
  • 2025-05-29 - Last updated in NVD database

Technical Details for CVE-2025-21224

Vulnerability Analysis

This vulnerability is classified as a use-after-free (CWE-416) condition within the Windows Line Printer Daemon Service. Use-after-free vulnerabilities occur when a program continues to use memory after it has been freed, allowing attackers to manipulate the freed memory region to achieve code execution. In the context of the LPD service, this memory corruption can be triggered remotely through the network without requiring authentication.

The vulnerability affects print server functionality that is commonly deployed in enterprise environments. While the attack complexity is considered high due to the need for precise timing and memory manipulation, the potential impact is severe as successful exploitation grants full control over the affected system. The attack can be executed entirely over the network without any user interaction required, making it particularly dangerous for internet-facing or poorly segmented print servers.

Root Cause

The root cause of CVE-2025-21224 lies in improper memory management within the Windows LPD Service. When processing certain requests, the service fails to properly validate or track memory allocations, leading to a condition where freed memory is subsequently accessed. This use-after-free condition can be weaponized by an attacker who crafts malicious requests that manipulate the timing and state of memory operations within the service.

Attack Vector

The attack vector for this vulnerability is network-based. An attacker can exploit CVE-2025-21224 by sending specially crafted requests to the LPD service listening on TCP port 515. The attack does not require authentication or any privileges on the target system. While the attack complexity is high—requiring the attacker to win a race condition or carefully manipulate memory state—no user interaction is needed, making this exploitable in automated attack scenarios.

The LPD protocol is a legacy print protocol that many organizations still deploy for compatibility with older systems. Organizations exposing this service to untrusted networks significantly increase their attack surface.

Detection Methods for CVE-2025-21224

Indicators of Compromise

  • Unexpected crashes or service restarts of the Print Spooler or LPD-related services
  • Anomalous network traffic to TCP port 515 from external or untrusted sources
  • Process creation events originating from lpdsvc.dll or print spooler components with unusual parent-child relationships
  • Memory access violations or application errors logged in Windows Event Viewer related to print services

Detection Strategies

  • Monitor network traffic for unusual connection patterns or malformed requests to TCP port 515
  • Implement endpoint detection rules to identify suspicious process behavior associated with the LPD service
  • Enable Windows Event Log auditing for Print Spooler and related service events
  • Deploy network intrusion detection signatures targeting LPD protocol anomalies

Monitoring Recommendations

  • Enable detailed logging for the Print Spooler service and monitor for crash events
  • Implement SIEM correlation rules to detect patterns of exploitation attempts against print services
  • Monitor for unexpected outbound connections from print server infrastructure
  • Track changes to print-related registry keys and service configurations

How to Mitigate CVE-2025-21224

Immediate Actions Required

  • Apply the latest security updates from Microsoft for all affected Windows versions immediately
  • Disable the LPD service on systems where legacy print functionality is not required
  • Restrict network access to TCP port 515 using firewall rules, limiting access to trusted administrative networks only
  • Implement network segmentation to isolate print servers from critical infrastructure

Patch Information

Microsoft has released security updates to address this vulnerability. Organizations should consult the Microsoft Security Update Guide for detailed patching instructions and the latest security updates for each affected Windows version. Apply patches through Windows Update, WSUS, or your organization's patch management system.

Workarounds

  • Disable the LPD Print Service feature through Windows Features if not required for business operations
  • Block inbound traffic to TCP port 515 at perimeter firewalls and host-based firewalls
  • Consider migrating from the legacy LPD protocol to modern print protocols such as IPP (Internet Printing Protocol)
  • Implement application whitelisting to prevent unauthorized code execution from print service components
bash
# Disable the LPD Print Service via PowerShell
Disable-WindowsOptionalFeature -Online -FeatureName "Print-LPD-Service" -NoRestart

# Block TCP port 515 using Windows Firewall
New-NetFirewallRule -DisplayName "Block LPD Service" -Direction Inbound -LocalPort 515 -Protocol TCP -Action Block

# Verify the LPD service is disabled
Get-Service -Name "LPDSVC" -ErrorAction SilentlyContinue | Select-Object Name, Status, StartType

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.1

  • EPSS Probability0.50%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-416

  • NVD-CWE-noinfo
  • Technical References
  • Vicarius Detection Script for CVE-2025-21224

  • Vicarius Mitigation Script for CVE-2025-21224
  • Vendor Resources
  • Microsoft Vulnerability Update
  • Related CVEs
  • CVE-2026-33414: Podman HyperV Backend RCE Vulnerability

  • CVE-2026-33826: Windows Active Directory RCE Vulnerability

  • CVE-2026-32183: Windows Snipping Tool RCE Vulnerability

  • CVE-2026-32149: Windows Hyper-V RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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