CVE-2021-34523: Microsoft Exchange PowerShell Privilege Escalation (ProxyShell)
- Vendor
- Microsoft Corporation
CVE-2021-34523 is an elevation-of-privilege vulnerability in the Microsoft Exchange Server PowerShell backend and a component of the ProxyShell exploit chain. Improper validation of access tokens allows an attacker to supply an identity through the X-Rps-CAT query parameter and impersonate a local administrator when executing Exchange PowerShell commands. Affected deployments include unpatched Exchange Server 2013, 2016, and 2019 installations. Chaining this vulnerability with CVE-2021-34473 and CVE-2021-31207 enables unauthenticated remote code execution and arbitrary file writes with elevated privileges. Exploitation has been observed in the wild.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation compromises confidentiality and integrity by allowing administrative identity impersonation and unauthorized execution of Exchange PowerShell commands. The complete ProxyShell chain can enable server takeover, web-shell deployment, and persistent access. Subsequent intrusions have involved mailbox abuse, credential theft, lateral movement, cryptocurrency mining, and ransomware deployment; these are follow-on consequences rather than capabilities independently provided by this privilege-escalation flaw.
Mitigation
If you can’t patch tonight, do this now.
Use intrusion-prevention or virtual-patching protections for Exchange access-token privilege escalation while updates are pending. Restrict unnecessary external access to Exchange services, deploy endpoint protection and EDR on Exchange servers, and review IIS and proxy logs for anomalous requests involving the PowerShell backend or X-Rps-CAT parameter. Hunt for web shells and unauthorized PowerShell activity, and implement web-shell mitigation controls. These measures do not replace security updates.
Remediation
Patch, then assume compromise.
Install the applicable Microsoft Exchange security update addressing CVE-2021-34523, or a superseding update. Microsoft fixed this vulnerability in April 2021, including through KB5001779, but omitted the CVE from the original April security-update documentation. Customers who installed the applicable April 2021 update already received this fix. Apply updates addressing all three ProxyShell vulnerabilities, including the May 2021 fix for CVE-2021-31207. Investigate potentially exposed servers for existing compromise, because patching does not remove attacker persistence.
Exploits
5 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2021-34523 exploited in the wild?
- Yes. As of Nov 26, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 3, 2021.
- Is there a public exploit for CVE-2021-34523?
- Yes. Mallory tracks 5 public exploits or proofs of concept for CVE-2021-34523, the earliest disclosed Apr 6, 2021.
- Is there a patch for CVE-2021-34523?
- Install the applicable Microsoft Exchange security update addressing CVE-2021-34523, or a superseding update. Microsoft fixed this vulnerability in April 2021, including through KB5001779, but omitted the CVE from the original April security-update documentation.
- What products are affected by CVE-2021-34523?
- Microsoft Corporation Exchange Server.
- How severe is CVE-2021-34523?
- CVE-2021-34523 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 100.0% (100th percentile) as of Nov 26, 2026.
Recent activity
78 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.