CVE-2021-31207: Microsoft Exchange Server Mailbox Export Arbitrary File Write (ProxyShell)
- Vendor
- Microsoft Corporation
CVE-2021-31207 is a post-authentication security feature bypass in Microsoft Exchange Server associated with mailbox export functionality. It enables arbitrary file writes that can lead to arbitrary code execution as SYSTEM. The vulnerability forms the final file-write stage of ProxyShell, alongside CVE-2021-34473 and CVE-2021-34523. The complete chain allows unauthenticated remote attackers to compromise vulnerable Exchange servers and deploy web shells.
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 Exchange server through arbitrary file writes and SYSTEM-level code execution. ProxyShell exploitation has enabled persistent web-shell access and enterprise-network footholds subsequently used for credential theft, lateral movement, data exfiltration, and ransomware deployment. These broader outcomes involve the complete exploit chain and follow-on attacker activity, not CVE-2021-31207 alone.
Mitigation
If you can’t patch tonight, do this now.
Use virtual patching or an applicable intrusion-prevention signature for Exchange mailbox-export arbitrary file writes while updates are pending. Restrict unnecessary network access to Exchange services, deploy endpoint protection and EDR on Exchange servers, and review proxy and IIS logs for ProxyShell exploitation. Hunt for web shells and investigate unexpected server-side command execution.
Remediation
Patch, then assume compromise.
Apply the applicable Microsoft Exchange security update addressing CVE-2021-31207, released on May 11, 2021, under KB5003435, or an update that supersedes it. Remediate the other ProxyShell components, CVE-2021-34473 and CVE-2021-34523, addressed by KB5001779. Installing only the March 2021 ProxyLogon updates does not address ProxyShell. Investigate previously exposed servers for web shells and retained attacker access; patching does not remove an existing compromise.
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 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-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?
- Apply the applicable Microsoft Exchange security update addressing CVE-2021-31207, released on May 11, 2021, under KB5003435, or an update that supersedes it. Remediate the other ProxyShell components, CVE-2021-34473 and CVE-2021-34523, addressed by 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 26, 2026.
Recent activity
77 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.