Join our Newsletter — 33% off our NHI Course

How do you patch or mitigate CVE-2021-42321 (Microsoft Exchange Server Remote Code Execution)?

CISA’s required action for CVE-2021-42321 is to apply updates per vendor instructions. In practice, find every instance of Microsoft Exchange in your estate, apply the vendor security update or documented mitigation, and if no fix can be applied, remove internet exposure or take the product out of service. After patching, review logs for signs of earlier exploitation, because attackers used this flaw in the wild.

What to do first when patching Exchange for CVE-2021-42321

Start by finding every Microsoft Exchange instance that is reachable in your environment, including forgotten servers, lab systems, and internet-facing edge systems. The practical question is not whether one server is patched, but whether vulnerability management has covered the full estate and verified the result. For this CVE, the immediate decision is simple: apply the vendor security update or the documented mitigation, then confirm the server is no longer exposed through the path that made exploitation possible.

Where patching is feasible, treat the update as the preferred fix and validate it after deployment rather than assuming success. If Exchange cannot be patched quickly, the fallback is to remove internet exposure or take the product out of service until you can restore a supported, protected state. That trade-off is often safer than leaving a known exploited server online while waiting for a maintenance window.

Because this issue was used in the wild, patching is only part of the response. Your verification step should include checking which hosts were vulnerable before remediation and whether any of them were exposed long enough to be targeted. That makes asset inventory and exposure review as important as the update itself.

How to reduce exposure when the fix must wait

If you cannot remediate immediately, shrink the attack surface first. Disconnect public access, place the system behind controlled access, or remove the service from use if you cannot bound the risk another way. In practice, this means choosing the least dangerous temporary state, not keeping a vulnerable Exchange server online because it is still operationally convenient.

When Exchange must remain available briefly, the containment goal is to prevent external reachability while you schedule the vendor fix. That usually means restricting inbound access, tightening administrative paths, and watching for any route that still allows hostile traffic to reach the vulnerable service. CISA’s Known Exploited Vulnerabilities Catalog is the right reference point for confirming that the issue is treated as an active exploitation problem, not just a routine patch item.

Do not rely on compensating controls that merely make exploitation harder while leaving the server exposed. For a KEV-listed Exchange flaw, “later” is a risky answer unless you can clearly show that the host is unreachable from the relevant threat path and that the exposure window is closed.

What to check after patching or mitigation

After you patch or isolate the system, review logs for earlier exploitation indicators. That review matters because attackers were already abusing the flaw, so a successful update does not tell you whether the server was previously compromised. Focus on the time before remediation, not only on current status.

Look for unusual web requests, unexpected administrative activity, new accounts, suspicious process execution, and changes to mail or server configuration around the exposure window. If you find evidence of compromise, treat the event as an incident response problem, not a patch validation exercise. In that case, you may need to rebuild the server, rotate credentials used by the Exchange service, and review any adjacent systems that could have been reached through the same foothold.

That investigation should be limited to evidence that can distinguish normal Exchange behavior from attacker activity. A noisy log review without a clear time window and a defined hypothesis usually misses the earliest signs of misuse.

Risk and Threat Considerations

Exchange is often externally reachable, so a remotely exploitable flaw creates immediate exposure if patching lags. The main risk is not just unauthorized code execution, but the downstream ability to read mail, alter configuration, and use the server as a foothold for broader compromise.

Failure mechanism: An attacker targets an exposed Exchange server before the update is applied, then uses the code execution path to establish access, deploy follow-on tooling, or modify the system for persistence.

Impact: The result can include mailbox compromise, service disruption, credential exposure, and a larger incident if the server is trusted by other internal systems.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

CIS Controls v8 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
CIS Controls v8 CIS-7 — Continuous Vulnerability Management Exchange RCE response depends on finding every exposed instance and remediating quickly.
CIS-4 — Secure Configuration of Enterprise Assets and Software Mitigation may require removing internet exposure or hardening reachable Exchange systems.
Recommendation — Continuously inventory, prioritize, patch, and verify vulnerable Exchange servers. Harden Exchange assets and remove unnecessary external exposure.
NIST SP 800-53 Rev 5 RA-5 — Vulnerability Monitoring and Scanning The issue requires identifying affected systems and confirming remediation across the estate.
SI-2 — Flaw Remediation The core action is applying vendor updates or approved mitigations for a known exploited flaw.
AU-6 — Audit Record Review, Analysis, and Reporting Post-patch log review is needed to detect earlier exploitation signs.
Recommendation — Scan for vulnerable Exchange instances and track remediation to closure. Apply the vendor fix or approved mitigation and verify installation. Review Exchange and related logs for indicators of pre-patch compromise.

Practitioner Guidance

What to prioritise: Patch or remove exposure first, then verify that every Exchange instance is covered. The most common failure is patching the obvious production server while leaving a forgotten or internet-facing secondary instance untouched.

What to verify: Confirm the vendor update or documented mitigation was actually applied, and confirm the vulnerable service is no longer reachable from the attack path that matters. If you had to defer the fix, document the containment decision and the exact time the system was isolated.

Decision rule: If you cannot quickly prove the server is patched and unreachable, treat it as high-risk until you can. If logs show pre-patch exploitation, escalate to incident response and assess credential rotation and server rebuild before returning the system to service.

Practitioner takeaway: For a KEV-listed Exchange RCE, the safe posture is not “patched eventually”, it is “patched, verified, and reviewed for prior compromise” or else isolated until that state is achieved.