CVE-2021-27065: Microsoft Exchange Server Post-Authentication Arbitrary File Write in ProxyLogon
- Vendor
- Microsoft Corporation
CVE-2021-27065 is a post-authentication arbitrary file-write vulnerability affecting on-premises Microsoft Exchange Server 2013, 2016, and 2019. Insufficient path validation in the Exchange Control Panel's DDI WriteFileActivity functionality allows an authenticated attacker to write attacker-controlled content to arbitrary server locations. Writing a web shell into a web-accessible location enables remote code execution. The vulnerability forms part of the ProxyLogon exploit chain: combining it with the CVE-2021-26855 server-side request forgery vulnerability permits exploitation without previously possessing valid credentials. Microsoft released fixes on March 2, 2021. The vulnerability has been actively exploited by espionage actors and financially motivated attackers.
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 server integrity through arbitrary file writes and can lead to remote command execution and persistent access through web shells. Subsequent activity can expose mailboxes, server files, and credentials and enable additional malware deployment, ransomware, cryptomining, and lateral movement. Broader Active Directory compromise is a potential downstream consequence, not an automatic result of this vulnerability alone. Exchange Online and Microsoft 365 cloud email services were not known to be affected.
Mitigation
If you can’t patch tonight, do this now.
Until updates can be applied, disconnect vulnerable Exchange servers from untrusted networks or restrict HTTPS access to trusted clients through isolation, access controls, or a VPN. Microsoft's Exchange On-premises Mitigation Tool and temporary Exchange mitigations can reduce exposure but do not cover every exploitation method and are not substitutes for patching. Monitor Exchange and IIS logs, web-directory integrity, unexpected IIS child processes, credential theft, and anomalous outbound connections. Perimeter restrictions do not prevent exploitation by attackers who already have internal access.
Remediation
Patch, then assume compromise.
Apply Microsoft's security updates addressing CVE-2021-27065, originally released on March 2, 2021, or superseding updates applicable to the Exchange deployment. Install required cumulative-update prerequisites and run updates with administrator privileges, completing required reboots and verifying successful installation. Investigate potentially exposed servers for historical exploitation, unexpected web-accessible files, web shells, and unauthorized configuration changes. If compromise is identified, preserve forensic evidence, isolate affected systems, remove malicious artifacts and persistence, and reset compromised credentials as part of incident response. Patching alone does not remove an existing compromise.
Exploits
8 exploits validated by Mallory's analysis. Hidden: 3 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.
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-27065 exploited in the wild?
- Yes. As of Nov 11, 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-27065?
- Yes. Mallory tracks 8 public exploits or proofs of concept for CVE-2021-27065, the earliest disclosed Mar 2, 2021.
- Is there a patch for CVE-2021-27065?
- Apply Microsoft's security updates addressing CVE-2021-27065, originally released on March 2, 2021, or superseding updates applicable to the Exchange deployment. Install required cumulative-update prerequisites and run updates with administrator privileges, completing required reboots and verifying successful installation.
- What products are affected by CVE-2021-27065?
- Microsoft Corporation Exchange Server.
- How severe is CVE-2021-27065?
- CVE-2021-27065 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 99.9% (100th percentile) as of Nov 11, 2026.
Recent activity
101 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.