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-2021-34523

CVE-2021-34523: Exchange Server Privilege Escalation Bug

CVE-2021-34523 is a privilege escalation vulnerability in Microsoft Exchange Server that enables attackers to gain elevated permissions. This article covers technical details, affected versions, impact, and mitigation.

Updated: May 16, 2026

CVE-2021-34523 Overview

CVE-2021-34523 is an elevation of privilege vulnerability in Microsoft Exchange Server. The flaw resides in the Exchange PowerShell backend and allows an unauthenticated attacker to impersonate arbitrary users when combined with the broader ProxyShell exploit chain. CISA has confirmed active exploitation and added the issue to its Known Exploited Vulnerabilities catalog. The vulnerability affects Exchange Server 2013, 2016, and 2019 across multiple cumulative update levels. With an EPSS probability of 93.998%, the likelihood of exploitation remains elevated.

Critical Impact

Unauthenticated network attackers can elevate privileges within Microsoft Exchange Server and, when chained with related ProxyShell vulnerabilities, achieve remote code execution as SYSTEM.

Affected Products

  • Microsoft Exchange Server 2013 Cumulative Update 23
  • Microsoft Exchange Server 2016 Cumulative Update 19 and 20
  • Microsoft Exchange Server 2019 Cumulative Update 8 and 9

Discovery Timeline

  • 2021-07-14 - CVE-2021-34523 published to the National Vulnerability Database
  • 2025-10-30 - Last updated in NVD database

Technical Details for CVE-2021-34523

Vulnerability Analysis

CVE-2021-34523 is one of three vulnerabilities that compose the ProxyShell attack chain, alongside CVE-2021-34473 and CVE-2021-31207. The flaw exists in the Microsoft Exchange PowerShell backend service. Specifically, the issue stems from improper validation of the user identity passed through the Client Access Service (CAS) frontend to the PowerShell backend.

When exploited, an attacker can pass a crafted identity token to the backend, allowing them to execute PowerShell commands in the context of a privileged Exchange user such as the SYSTEM account. The vulnerability is classified as elevation of privilege but operates over the network without authentication when chained with the ProxyShell preauth path traversal (CVE-2021-34473).

Root Cause

The root cause is improper handling of the user identity context in the Exchange RemotePowerShell backend. The backend service trusts identity assertions forwarded from the frontend without sufficient verification. An attacker who controls the request path can specify an arbitrary user, including high-privilege Exchange administrators, bypassing intended authorization boundaries.

Attack Vector

Attackers reach the vulnerable endpoint over HTTPS by targeting the Autodiscover service on a publicly exposed Exchange server. Combined with the path confusion in CVE-2021-34473, the attacker accesses the PowerShell backend without authentication. They then use CVE-2021-34523 to impersonate a privileged mailbox and CVE-2021-31207 to write an arbitrary file (typically a web shell) for code execution.

The vulnerability mechanism is documented in the ZDI Advisory ZDI-21-822 and in the Packet Storm Exploit Analysis.

Detection Methods for CVE-2021-34523

Indicators of Compromise

  • HTTP requests to the Autodiscover service containing the string /autodiscover/autodiscover.json with a ?Email= parameter referencing PowerShell and embedded @ characters used for path confusion.
  • Unexpected .aspx files written to Exchange virtual directories such as \inetpub\wwwroot\aspnet_client\ or the Exchange Front End auth directory.
  • New mailboxes or mailbox export operations originating from external IP addresses targeting the /powershell endpoint.
  • Anomalous child processes spawned by w3wp.exe running under the Exchange app pool, including cmd.exe, powershell.exe, or csc.exe.

Detection Strategies

  • Inspect IIS logs on Exchange servers for Autodiscover requests with embedded PowerShell strings and abnormal query parameters, which indicate ProxyShell probing.
  • Hunt for web shell artifacts by reviewing recent file creation events in Exchange web directories and correlating with the IIS worker process.
  • Monitor Exchange management role assignments and mailbox export requests for activity that does not align with authorized administrator behavior.

Monitoring Recommendations

  • Forward IIS, Exchange, and Windows event logs to a centralized SIEM for correlation against known ProxyShell indicators.
  • Enable PowerShell script block logging and Module Logging on all Exchange servers to capture commands executed through the backend.
  • Track outbound network connections from Exchange servers to identify command and control activity following exploitation.

How to Mitigate CVE-2021-34523

Immediate Actions Required

  • Apply the May 2021 or later Exchange Server Cumulative Update and Security Update from Microsoft on all on-premises Exchange servers.
  • Audit Exchange servers for existing web shells and unauthorized mailbox exports before assuming the environment is clean, since CISA has confirmed active exploitation.
  • Restrict external access to the Exchange Autodiscover and PowerShell virtual directories where feasible, using a reverse proxy or IP allowlisting.

Patch Information

Microsoft addressed CVE-2021-34523 in the April and May 2021 Exchange Server security updates. Refer to the Microsoft Security Advisory CVE-2021-34523 for the specific update packages mapped to each supported Cumulative Update. Organizations should also review the CISA Known Exploited Vulnerability entry for required federal remediation timelines.

Workarounds

  • No supported workaround replaces patching; if patching must be delayed, block external HTTPS access to /autodiscover and /powershell virtual directories at the network edge.
  • Disable remote PowerShell access for non-administrative users on Exchange to reduce the impact of identity impersonation.
  • Place Exchange servers behind an authenticating reverse proxy that strips path-confusion characters from inbound URLs.
bash
# Disable remote PowerShell for standard users on Exchange Server
Get-User -ResultSize Unlimited | Where-Object {$_.RemotePowerShellEnabled -eq $true -and $_.AdminDisplayVersion -notlike '*Admin*'} | Set-User -RemotePowerShellEnabled $false

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechMicrosoft Exchange

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability94.00%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/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 Analysis

  • ZDI Advisory ZDI-21-822

  • CISA Known Exploited Vulnerability
  • Vendor Resources
  • Microsoft Security Advisory CVE-2021-34523
  • Related CVEs
  • CVE-2025-64666: Microsoft Exchange Server Privilege Escalation

  • CVE-2022-41080: Exchange Server Privilege Escalation Flaw

  • CVE-2022-41040: Microsoft Exchange Server Privilege Escalation

  • CVE-2024-21410: Microsoft Exchange Server Privilege Escalation
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