CVE-2021-27065: Microsoft Exchange Server Arbitrary File Write in the ProxyLogon Chain
- Vendor
- Microsoft Corporation
CVE-2021-27065 is a post-authentication arbitrary file-write vulnerability affecting on-premises Microsoft Exchange Server 2013, 2016, and 2019. An authenticated attacker can write files to arbitrary paths on the server, enabling web shell installation and subsequent remote code execution. It is a component of the ProxyLogon exploitation chain and can be combined with the authentication capability provided by CVE-2021-26855 to compromise a server without valid credentials. The vulnerability was actively exploited before Microsoft released out-of-band security updates on March 2, 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 Exchange server's confidentiality, integrity, and availability through attacker-controlled file writes and subsequent code execution. Deployed web shells can provide persistent remote access, access to mailboxes and server files, credential theft, and additional malware deployment. Compromised Exchange servers can become footholds for lateral movement, data exfiltration, cryptomining, or ransomware deployment; these downstream outcomes depend on subsequent attacker activity.
Mitigation
If you can’t patch tonight, do this now.
Until patched, disconnect vulnerable Exchange servers from the internet or restrict untrusted HTTPS access, including access to Exchange webmail and administrative interfaces, using isolation, access controls, or a VPN. Microsoft released interim ProxyLogon mitigation tooling and IIS/service-level mitigations, but these may affect functionality and do not cover every exploitation method. Monitor Exchange and IIS logs, unexpected web-directory changes, and suspicious server-side command execution. Perimeter restrictions do not stop attackers who already have internal access, and temporary mitigations are not substitutes for patching or incident response.
Remediation
Patch, then assume compromise.
Apply Microsoft's March 2, 2021 security update addressing CVE-2021-27065, or a subsequent applicable update containing the fix. The original update prerequisites were Exchange Server 2013 CU23, Exchange Server 2016 CU18 or CU19, and Exchange Server 2019 CU7 or CU8; older installations required a prerequisite cumulative update before patching. Run updates with administrator privileges and verify successful installation. Investigate potentially exposed servers for historical exploitation and web shells. Patching does not remove existing implants or invalidate stolen credentials; confirmed compromise requires incident response, removal of persistence, and resetting affected credentials.
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 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-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 March 2, 2021 security update addressing CVE-2021-27065, or a subsequent applicable update containing the fix. The original update prerequisites were Exchange Server 2013 CU23, Exchange Server 2016 CU18 or CU19, and Exchange Server 2019 CU7 or CU8; older installations required a prerequisite cumulative update before patching.
- 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 26, 2026.
Recent activity
103 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.