CVE-2021-31207: Microsoft Exchange Server Post-Authentication Arbitrary File Write (ProxyShell)
- Vendor
- Microsoft Corporation
CVE-2021-31207 is a security feature bypass vulnerability in Microsoft Exchange Server associated with mailbox export functionality. An authenticated attacker can write arbitrary files, enabling deployment of a web shell and arbitrary code execution in the SYSTEM context. It is the post-authentication file-write component of ProxyShell, which chains CVE-2021-34473, CVE-2021-34523, and CVE-2021-31207 to achieve unauthenticated remote code execution on vulnerable Exchange servers. CVE-2021-31207 alone is not an authentication bypass. Microsoft released its patch on May 11, 2021.
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 can compromise the confidentiality, integrity, and availability of the affected Exchange server through arbitrary file creation and SYSTEM-level code execution. ProxyShell exploitation has enabled web shell deployment and persistent access, providing a foothold for credential theft, lateral movement, data exfiltration, cryptocurrency mining, and ransomware deployment. These subsequent activities require additional attacker actions rather than being automatic effects of this vulnerability.
Mitigation
If you can’t patch tonight, do this now.
Where immediate patching is not possible, use intrusion-prevention or virtual-patching controls covering ProxyShell and the Exchange mailbox-export arbitrary-file-write behavior. Deploy endpoint detection and response on Exchange servers, review IIS and proxy logs for ProxyShell activity, and hunt for unauthorized web shells. Restrict unnecessary network access and segment Exchange infrastructure to limit exposure and post-compromise movement. These controls supplement rather than replace security updates.
Remediation
Patch, then assume compromise.
Install the applicable Microsoft Exchange security update addressing CVE-2021-31207, identified as KB5003435, or a superseding update appropriate to the installed Exchange version. Remediate the complete ProxyShell chain by also applying updates addressing CVE-2021-34473 and CVE-2021-34523, identified as KB5001779. The affected Exchange product families include Exchange Server 2013, 2016, and 2019. March 2021 ProxyLogon patches alone do not remediate ProxyShell. Investigate previously exposed servers for compromise and remove attacker access; patching does not remove existing web shells or backdoors.
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-31207 exploited in the wild?
- Yes. As of Nov 5, 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-31207?
- Yes. Mallory tracks 5 public exploits or proofs of concept for CVE-2021-31207, the earliest disclosed Apr 6, 2021.
- Is there a patch for CVE-2021-31207?
- Install the applicable Microsoft Exchange security update addressing CVE-2021-31207, identified as KB5003435, or a superseding update appropriate to the installed Exchange version. Remediate the complete ProxyShell chain by also applying updates addressing CVE-2021-34473 and CVE-2021-34523, identified as KB5001779.
- What products are affected by CVE-2021-31207?
- Microsoft Corporation Exchange Server.
- How severe is CVE-2021-31207?
- CVE-2021-31207 has a CVSS v3.1 score of 6.6 (Medium) and an EPSS score of 99.8% (100th percentile) as of Nov 5, 2026.
Recent activity
75 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.