Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2021-42321

CVE-2021-42321: Microsoft Exchange Server RCE Vulnerability

CVE-2021-42321 is a remote code execution vulnerability in Microsoft Exchange Server that allows attackers to execute arbitrary code on vulnerable systems. This article covers technical details, affected versions, and mitigation.

Published: February 25, 2026

CVE-2021-42321 Overview

CVE-2021-42321 is a remote code execution vulnerability affecting Microsoft Exchange Server. This vulnerability exists in the deserialization process within Microsoft Exchange Server, allowing an authenticated attacker to execute arbitrary code on the vulnerable server. The flaw stems from improper validation of command-let (cmdlet) arguments, which can be exploited by sending specially crafted requests to the Exchange server.

Critical Impact

This vulnerability is actively exploited in the wild and listed in CISA's Known Exploited Vulnerabilities (KEV) catalog. Authenticated attackers can achieve remote code execution on vulnerable Exchange Server deployments, potentially leading to complete server compromise, data exfiltration, and lateral movement within enterprise networks.

Affected Products

  • Microsoft Exchange Server 2016 Cumulative Update 21
  • Microsoft Exchange Server 2016 Cumulative Update 22
  • Microsoft Exchange Server 2019 Cumulative Update 10
  • Microsoft Exchange Server 2019 Cumulative Update 11

Discovery Timeline

  • 2021-11-10 - CVE-2021-42321 published to NVD
  • 2025-10-30 - Last updated in NVD database

Technical Details for CVE-2021-42321

Vulnerability Analysis

CVE-2021-42321 is an insecure deserialization vulnerability that affects Microsoft Exchange Server's handling of serialized data. The vulnerability allows an authenticated attacker to exploit improper validation in the ChainedSerializationBinder component. When Exchange Server deserializes user-supplied data without adequate validation, it enables attackers to inject malicious objects that are instantiated during the deserialization process. This can result in arbitrary code execution with the privileges of the Exchange Server service account, which typically has significant access to the underlying Windows system and Active Directory environment.

The vulnerability requires authentication, meaning an attacker must have valid credentials to the Exchange Server. However, given the prevalence of credential theft and phishing attacks, this requirement does not significantly reduce the risk. Once authenticated, an attacker can leverage this vulnerability to gain complete control over the Exchange Server, access sensitive email communications, and potentially pivot to other systems within the network.

Root Cause

The root cause of CVE-2021-42321 lies in the ChainedSerializationBinder class within Microsoft Exchange Server. This component is responsible for controlling type resolution during deserialization operations. The vulnerability exists because the binder fails to properly restrict which types can be instantiated during deserialization. An attacker can craft a malicious serialized payload containing dangerous gadget chains that, when deserialized, execute arbitrary code. The lack of a strict allowlist for deserializable types enables attackers to leverage known .NET deserialization gadgets to achieve code execution.

Attack Vector

The attack vector for CVE-2021-42321 is network-based, requiring low complexity to exploit once the attacker has authenticated to the Exchange Server. The exploitation flow involves:

  1. An attacker authenticates to the Microsoft Exchange Server using valid credentials
  2. The attacker crafts a malicious serialized payload containing .NET deserialization gadgets
  3. The payload is submitted to Exchange Server through a vulnerable endpoint
  4. Exchange Server's ChainedSerializationBinder processes the payload without adequate type restrictions
  5. The malicious objects are instantiated, executing the attacker's code with Exchange Server privileges

The vulnerability does not require user interaction beyond the initial authentication, and the attacker can achieve complete compromise of the confidentiality, integrity, and availability of the target system.

Detection Methods for CVE-2021-42321

Indicators of Compromise

  • Unusual process spawning from w3wp.exe (IIS worker process) associated with Exchange application pools
  • Suspicious PowerShell activity originating from Exchange Server processes
  • Web shell files dropped in Exchange Server directories such as C:\inetpub\wwwroot\aspnet_client\
  • Unexpected network connections from Exchange Server to external IP addresses
  • Evidence of deserialization-related errors in Exchange Server logs

Detection Strategies

  • Monitor IIS logs for unusual POST requests to Exchange Web Services endpoints with large or anomalous payloads
  • Implement behavioral detection for command execution chains originating from Exchange processes
  • Deploy endpoint detection and response (EDR) solutions to identify suspicious child processes spawned by w3wp.exe
  • Analyze Exchange Server event logs for serialization-related exceptions or errors
  • Use network monitoring to detect unusual outbound traffic patterns from Exchange Servers

Monitoring Recommendations

  • Enable detailed logging on Microsoft Exchange Server including IIS request logging and Windows Security event logging
  • Implement SIEM rules to correlate Exchange-related authentication events with subsequent suspicious activity
  • Monitor for file system changes in Exchange Server directories, particularly the creation of new .aspx files
  • Configure alerts for process creation events where the parent process is associated with Exchange application pools
  • Regularly review Exchange Server health and security status using Microsoft's Exchange Server Health Checker tool

How to Mitigate CVE-2021-42321

Immediate Actions Required

  • Apply Microsoft security updates immediately to all affected Exchange Server installations
  • Verify that Exchange Servers are not running vulnerable cumulative update versions (2016 CU21/CU22, 2019 CU10/CU11 without patches)
  • Conduct forensic analysis of Exchange Servers to identify potential compromise before patching
  • Implement network segmentation to limit lateral movement from Exchange Servers
  • Review and restrict authentication to Exchange Servers using multi-factor authentication where possible

Patch Information

Microsoft has released security updates to address CVE-2021-42321. Administrators should apply the appropriate cumulative updates and security patches from the Microsoft Security Advisory CVE-2021-42321. The patches address the insecure deserialization vulnerability by implementing proper type restrictions in the ChainedSerializationBinder component. Organizations should prioritize patching given the vulnerability's inclusion in CISA's Known Exploited Vulnerabilities catalog.

Workarounds

  • Restrict network access to Exchange Server administrative interfaces to trusted IP ranges only
  • Implement Web Application Firewall (WAF) rules to inspect and block potentially malicious serialized payloads
  • Disable or restrict access to Exchange Web Services for non-essential users pending patch deployment
  • Consider temporary isolation of Exchange Servers from critical network segments if immediate patching is not possible
  • Enable Extended Protection for Authentication on Exchange Server as an additional defense measure
bash
# Verify Exchange Server version and installed updates
Get-ExchangeServer | Format-List Name,Edition,AdminDisplayVersion

# Check for suspicious web shells in common Exchange directories
Get-ChildItem -Path "C:\inetpub\wwwroot\aspnet_client" -Recurse -Include "*.aspx" | Select-Object FullName,CreationTime,LastWriteTime

# Review IIS application pool processes for suspicious child processes
Get-WmiObject Win32_Process | Where-Object {$_.ParentProcessId -eq (Get-Process -Name w3wp | Select-Object -First 1).Id}

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechMicrosoft Exchange

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability93.42%

  • 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-Other
  • Technical References
  • Packet Storm RCE Exploit

  • Packet Storm RCE Exploit

  • CISA Known Exploited Vulnerability CVE-2021-42321
  • Vendor Resources
  • Microsoft Security Advisory CVE-2021-42321
  • Related CVEs
  • CVE-2020-16875: Microsoft Exchange Server RCE Vulnerability

  • CVE-2021-26858: Microsoft Exchange Server RCE Vulnerability

  • CVE-2021-27065: Microsoft Exchange Server RCE Vulnerability

  • CVE-2021-26857: Microsoft Exchange Server RCE 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