Blog/Incident analysis

ProxyLogon: the week every unpatched Exchange server was someone's

Four Exchange Server flaws went from targeted espionage to indiscriminate mass exploitation in days. CISA ordered agencies to patch or disconnect, and the FBI removed web shells by court order.

CyberWatch AI28 November 2026 · 6 min read
A rack-mounted server with cables and a technician's hand reaching toward a front panel

Microsoft released the Exchange Server patches on Tuesday 2 March 2021, outside its normal monthly cycle, which is always a signal. By the weekend, the picture had changed completely. What had been a careful espionage campaign against selected targets became an indiscriminate scramble, with multiple unrelated groups racing to plant backdoors on every unpatched Exchange server they could reach before administrators got to them.

That transition, from targeted to industrial in under a week, is why ProxyLogon is still the reference case for mass exploitation. The vulnerabilities mattered. The speed at which exploitation generalized after disclosure mattered more.

What the vulnerabilities were

Four CVEs, which work as a chain:

  • CVE-2021-26855 is a server-side request forgery in Exchange. An unauthenticated attacker who could reach the server over HTTPS could make the server send requests on their behalf, which in practice meant authenticating as the server itself. This is the one named ProxyLogon by DEVCORE's Orange Tsai, who reported it to Microsoft in early January 2021.
  • CVE-2021-26857 is an insecure deserialization flaw in the Unified Messaging service, giving code execution as SYSTEM, though it needs administrator permission or another vulnerability first.
  • CVE-2021-26858 and CVE-2021-27065 are post-authentication arbitrary file write flaws. Combined with the first CVE's authentication bypass, they let an attacker write a file anywhere on the server.

Chained, the result is pre-authentication remote code execution as SYSTEM on an internet-facing mail server holding the organization's entire email history. Affected products were on-premises Exchange Server 2013, 2016 and 2019, with a defense-in-depth update also issued for 2010. Exchange Online was not affected, a distinction that was repeatedly lost in coverage at the time and which materially changed who needed to act.

The web shell is the point

The file the attackers wrote was almost always a web shell: a small script dropped into a directory the web server will execute, which accepts commands over ordinary-looking HTTP requests. Microsoft documented the pattern in detail, and it is the single most important technical fact about this event.

A web shell does not care about patches. Once it exists, the vulnerability that delivered it is irrelevant. An organization that applied Microsoft's updates on 3 March and considered the matter closed could still have had an attacker in its mail server in June, reading everything, with no exploit traffic to detect because the exploit was no longer needed. Stolen email archives and harvested credentials were the usual follow-on, and in some cases ransomware families including DearCry arrived through the same access.

The timeline

  • 6 January 2021: Volexity observes exploitation of CVE-2021-26855 in the wild, nearly two months before a patch exists.
  • Early January 2021: the vulnerabilities are reported to Microsoft through responsible disclosure.
  • 2 March 2021: Microsoft releases out-of-band security updates and publishes its HAFNIUM analysis. Volexity publishes the same day.
  • 3 March 2021: CISA issues Emergency Directive 21-02, requiring federal civilian agencies to update or disconnect affected on-premises Exchange products.
  • Early-to-mid March: exploitation becomes indiscriminate. Microsoft later reported multiple distinct threat groups using the same vulnerabilities. Automated scanning and mass web shell deployment follow.
  • 31 March 2021: CISA issues Supplemental Direction v1, adding forensic triage and server hardening requirements, because patching was clearly insufficient.
  • 13 April 2021: the Department of Justice announces a court-authorized FBI operation that remotely removed web shells from hundreds of US Exchange servers. The same day, CISA's Supplemental Direction v2 requires agencies to apply Microsoft's April update for additional vulnerabilities.
  • 19 July 2021: the UK, the US and allies publicly attribute the Exchange campaign to actors affiliated with China's Ministry of State Security.

Confirmed versus unknown

Confirmed: the CVEs and their mechanism, the patch dates, Microsoft's attribution of the original campaign to HAFNIUM, the shift to multiple exploiting groups, the web shell technique, the CISA directive and its supplements, the FBI operation, and the July 2021 joint government attribution.

Not confirmed, and frequently stated as if it were: the number of victims. KrebsOnSecurity reported sources briefed on the response describing at least 30,000 US organizations compromised, and various scanning projects produced global estimates in the tens of thousands. Neither Microsoft nor CISA published a count. Those estimates were produced from internet scans of vulnerable or backdoored servers, which is a reasonable proxy and not a victim tally, since a server can be backdoored by several actors or counted twice. Use the figures as an order of magnitude and attribute them to whoever produced them.

Also unknown: how the disclosure leaked. Exploitation generalized remarkably fast after Microsoft's advisory, and there was contemporaneous speculation about whether exploit details had escaped before publication. No public finding has settled that question.

Why it mattered

It redefined the patch window. Before ProxyLogon, a week to test and deploy a critical patch for an internet-facing server was defensible in many organizations. After it, the operating assumption became that mass scanning begins within hours of disclosure and that proof-of-concept code will be public within days. CISA's later guidance on known exploited vulnerabilities, and its catalog of them, grew directly out of this pattern.

It made compromise assessment a routine step. When a vulnerability has been exploited before the patch existed, applying the patch tells you nothing about your current state. Microsoft published indicators and scripts; CISA mandated forensic triage for federal agencies. The habit this should have instilled, and partly did, is that an emergency patch on an exposed server triggers a hunt, not a change ticket closure. Our vulnerability management guide treats that as a required pair of actions rather than two separate activities.

It accelerated the move off self-hosted mail. For a lot of mid-sized organizations, the realization that running Exchange meant owning an internet-facing remote code execution risk, forever, with a two-day response expectation, was decisive. That is a rational response, with a trade-off worth naming: it concentrates email for a large part of the economy into a small number of providers, which is a different risk rather than no risk. Our cloud security guide covers that side of the ledger.

What to take from it

  1. Know every internet-facing service you run, by name and version. A great many Exchange servers compromised in March 2021 belonged to organizations that had forgotten they existed: a legacy hybrid connector, a mail server kept alive for one application. You cannot patch in 48 hours what is not on a list.
  2. Separate "patched" from "clean". After any emergency patch on an exposed system, check for persistence. Web shells, scheduled tasks, new local accounts, modified service configurations. Vendors usually publish indicators alongside the patch, and that is exactly what they are for.
  3. Watch the web server's own directories. File integrity monitoring on the directories a web application serves from is cheap and catches web shells reliably. Many of the organizations that caught this early did so because an unexpected .aspx file appeared somewhere it should not have.
  4. Treat a vendor's out-of-band release as an incident trigger. Microsoft breaking its own patch cycle is information. So is a CISA emergency directive, even if you are not a federal agency: the directive exists because the agency judged the risk too high to wait, and your risk is probably not very different. Reading those as inputs is part of a working threat intelligence function.
  5. Plan for the possibility that your mail is already read. If an attacker had your mail server for two months, password reset emails, contract negotiations, legal advice and internal arguments are all in their hands. The follow-on fraud, particularly vendor email compromise, often arrives months later from a position of excellent knowledge.

Unexpected invoice or payment-change request after a breach? Stolen mailboxes make convincing fraud. Paste the message into CyberWatch AI Scan for a free check before acting on payment instructions.

The detail that has aged most interestingly is the FBI's April operation. A court authorized federal agents to reach into privately owned servers and delete files, because the owners had not done it themselves and the backdoors were a continuing danger to everyone else. It was narrowly scoped and legally novel, and it happened because mass exploitation produces a tail of compromised systems whose owners never find out. That tail is the real cost of these events, and it does not show up in any of the victim estimates. For anyone running the kind of exposed infrastructure this affected, the practical conclusion is unromantic: be in the first wave of patching, then go looking, and write down what you found in a post-incident review even if the answer was nothing.

Frequently asked questions

Was ProxyLogon an attack or a vendor failure?

An attack, exploiting genuine vulnerabilities in Microsoft Exchange Server. Microsoft attributed the initial campaign to a group it named HAFNIUM, assessed as state-sponsored and operating out of China. The vulnerabilities were real defects, but the event was driven by deliberate exploitation.

Which vulnerabilities were involved?

Four: CVE-2021-26855, a server-side request forgery that allowed pre-authentication access; CVE-2021-26857, insecure deserialization in the Unified Messaging service; and CVE-2021-26858 and CVE-2021-27065, both post-authentication arbitrary file write flaws. Chained together they gave remote code execution as SYSTEM.

Was Exchange Online or Microsoft 365 affected?

No. The vulnerabilities were in on-premises Exchange Server 2013, 2016 and 2019, with a defense-in-depth update also issued for 2010. Microsoft's cloud-hosted email was not affected.

When were the patches released?

Microsoft released out-of-band security updates on 2 March 2021, outside its normal monthly cycle. Volexity had observed exploitation beginning on 6 January 2021, nearly two months earlier.

How many servers were compromised?

There is no authoritative count. Contemporaneous reporting by KrebsOnSecurity cited sources briefed on the response describing at least 30,000 US organizations, and global estimates ran higher. Microsoft and CISA never published a figure, so treat all numbers as estimates.

Why did patching alone not fix it?

Because attackers installed web shells, small scripts that provide ongoing remote access through the web server. A web shell survives a patch. Organizations had to patch and then hunt for and remove the backdoors already in place.

What was the FBI operation about?

In April 2021 the Department of Justice announced a court-authorized operation in which the FBI remotely deleted web shells from hundreds of vulnerable US Exchange servers whose owners had not removed them. It is one of the few publicized cases of law enforcement remediating private systems directly.

What is the main lesson for defenders?

Internet-facing mail and collaboration servers need a patch path measured in hours, and a compromise assessment after any emergency patch. If a vulnerability has been exploited before the fix exists, applying the fix tells you nothing about whether you are already breached.

Sources

  1. HAFNIUM targeting Exchange Servers with 0-day exploits, Microsoft Threat Intelligence
  2. Multiple Security Updates Released for Exchange Server, Microsoft Security Response Center
  3. ED 21-02: Mitigate Microsoft Exchange On-Premises Product Vulnerabilities, US Cybersecurity and Infrastructure Security Agency
  4. Mitigate Microsoft Exchange Server Vulnerabilities (AA21-062A), US Cybersecurity and Infrastructure Security Agency
  5. Active Exploitation of Microsoft Exchange Zero-Day Vulnerabilities, Volexity
  6. CVE-2021-26855, CVE Program
  7. Justice Department Announces Court-Authorized Effort to Disrupt Exploitation of Microsoft Exchange Server Vulnerabilities, US Department of Justice
  8. At Least 30,000 U.S. Organizations Newly Hacked Via Holes in Microsoft's Email Software, KrebsOnSecurity
  9. UK and allies hold Chinese state responsible for pervasive pattern of hacking, UK National Cyber Security Centre
Share this article
LinkedIn WhatsApp X
For organizations

Your people get these messages at work too.

CyberWatch AI sends your staff realistic practice attacks, trains the gaps it finds, and shows management exactly where the organization stands.