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-2022-21851

CVE-2022-21851: Windows 10 Remote Desktop RCE Vulnerability

CVE-2022-21851 is a remote code execution vulnerability in Microsoft Windows 10 Remote Desktop Client that allows attackers to execute arbitrary code. This article covers technical details, affected versions, and mitigation.

Published: February 17, 2026

CVE-2022-21851 Overview

CVE-2022-21851 is a Remote Code Execution vulnerability affecting the Microsoft Remote Desktop Client (RDP Client) across virtually all supported versions of Windows. This vulnerability allows an attacker to execute arbitrary code on a victim's system when the user connects to a malicious RDP server controlled by the attacker. The attack requires user interaction—specifically, the victim must initiate a Remote Desktop connection to the attacker's server.

Critical Impact

Successful exploitation allows attackers to achieve full system compromise through remote code execution when victims connect to malicious RDP servers, potentially leading to complete loss of confidentiality, integrity, and availability.

Affected Products

  • Microsoft Windows 10 (all versions including 1607, 1809, 1909, 20H2, 21H1, 21H2)
  • Microsoft Windows 11 (x64 and ARM64)
  • Microsoft Windows 7 SP1
  • Microsoft Windows 8.1 (Enterprise and RT editions)
  • Microsoft Windows Server 2008 R2 SP1/SP2
  • Microsoft Windows Server 2012 and 2012 R2
  • Microsoft Windows Server 2016
  • Microsoft Windows Server 2019
  • Microsoft Windows Server 2022 and 20H2

Discovery Timeline

  • January 11, 2022 - CVE-2022-21851 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2022-21851

Vulnerability Analysis

This vulnerability resides in the Windows Remote Desktop Client (mstsc.exe) and affects how the client processes certain data received from an RDP server during a connection handshake or session. The vulnerability is classified as a client-side Remote Code Execution (RCE) flaw, meaning the attack is triggered when a user connects to a malicious server rather than when an attacker connects to a vulnerable service.

The attack scenario involves social engineering, where an attacker convinces a victim to connect to a rogue RDP server. Once the connection is established, the malicious server can send specially crafted responses that exploit the vulnerability in the RDP client, leading to arbitrary code execution in the context of the user running the Remote Desktop Client.

Root Cause

The root cause of CVE-2022-21851 has not been publicly disclosed in detail by Microsoft (classified as NVD-CWE-noinfo). However, based on the vulnerability class and attack pattern, it likely involves improper validation or handling of server-provided data during RDP protocol negotiation or session establishment. This could include buffer handling issues, type confusion, or improper parsing of protocol-specific structures sent by the server to the client.

Attack Vector

The attack vector is network-based and requires user interaction. An attacker must:

  1. Set up a malicious RDP server with exploit payloads
  2. Convince the victim to initiate an RDP connection to the attacker-controlled server (via phishing, DNS hijacking, or social engineering)
  3. The malicious server sends crafted data that triggers the vulnerability in the victim's RDP client
  4. Arbitrary code executes on the victim's machine with the privileges of the user running the RDP client

The vulnerability can be particularly dangerous in environments where users frequently connect to external or untrusted RDP servers, or where attackers can intercept or redirect legitimate RDP connection attempts.

Detection Methods for CVE-2022-21851

Indicators of Compromise

  • Unusual RDP client (mstsc.exe) crashes or unexpected behavior during connection attempts
  • Network connections to unknown or suspicious RDP servers on port 3389
  • Unexpected child processes spawned by mstsc.exe that are not typical RDP-related processes
  • Memory access violations or application errors logged for Remote Desktop Client

Detection Strategies

  • Monitor for mstsc.exe process creating suspicious child processes or loading unexpected DLLs
  • Implement network monitoring to detect RDP connections to external or non-whitelisted IP addresses
  • Deploy endpoint detection rules for anomalous behavior following RDP client execution
  • Use SentinelOne's behavioral AI to detect post-exploitation activities following RDP client compromise

Monitoring Recommendations

  • Enable Windows Event logging for Remote Desktop Client connections and errors
  • Monitor network traffic for outbound RDP connections to non-corporate destinations
  • Implement DNS monitoring to detect potential redirection attacks targeting RDP infrastructure
  • Configure alerts for Application Event Log entries related to mstsc.exe faults or crashes

How to Mitigate CVE-2022-21851

Immediate Actions Required

  • Apply the January 2022 Microsoft security updates immediately to all affected systems
  • Educate users about the risks of connecting to untrusted RDP servers
  • Implement network policies to restrict outbound RDP connections to approved destinations only
  • Consider using Remote Desktop Gateway to control and audit RDP connection destinations

Patch Information

Microsoft addressed this vulnerability in the January 2022 Patch Tuesday security updates. Organizations should apply the relevant cumulative updates for their Windows versions. Detailed patch information and download links are available from the Microsoft Security Update Guide for CVE-2022-21851. Organizations using Windows Update for Business or WSUS should ensure the January 2022 updates are approved and deployed.

Workarounds

  • Restrict RDP client usage to only connect to trusted, internal servers until patches are applied
  • Use firewall rules to block outbound connections on port 3389 to external networks
  • Deploy application whitelisting to prevent execution of malicious payloads that could be delivered via this vulnerability
  • Implement Network Level Authentication (NLA) requirements on all RDP servers to add an authentication layer before full session establishment
bash
# Block outbound RDP connections to external networks via Windows Firewall
netsh advfirewall firewall add rule name="Block External RDP" dir=out action=block protocol=tcp remoteport=3389 remoteip=0.0.0.0/0
# Note: Adjust the remoteip parameter to exclude internal network ranges as needed

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 Probability7.89%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • NVD-CWE-noinfo
  • Technical References
  • Microsoft Vulnerability Update CVE-2022-21851

  • Microsoft Security Advisory CVE-2022-21851
  • Related CVEs
  • CVE-2026-33826: Windows Active Directory RCE Vulnerability

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

  • CVE-2026-32149: Windows Hyper-V RCE Vulnerability

  • CVE-2026-31995: Openclaw Command Injection Vulnerability
Default Legacy - Prefooter | 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