CVE-2021-34473
CVE-2021-34473 is a critical-severity vulnerability in Microsoft Exchange Server with a CVSS 3.x base score of 9.1. It is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, confirming it has been exploited in the wild (added 2021-11-03). The underlying weakness is classified as CWE-918.
Key facts
- Severity: Critical (CVSS 3.x base score 9.1)
- CVSS v2: 10.0
- EPSS exploit prediction: 100% (100th percentile)
- Actively exploited: Yes — listed in CISA KEV (added 2021-11-03)
- EU (EUVD) id: EUVD-2021-21128
- EU exploitation: Flagged exploited in the ENISA EU Vulnerability Database (since 2021-11-03)
- Weakness: CWE-918
- Affected product: Microsoft Exchange Server
- Published:
- Last modified:
Description
Microsoft Exchange Server Remote Code Execution Vulnerability
CVE-2021-34473: Microsoft Exchange Server ProxyShell SSRF (CWE-918)
AI-generated analysis based on the vulnerability data on this page.
| Field | Value |
|---|---|
| CVE | CVE-2021-34473 |
| CWE | CWE-918 — Server-Side Request Forgery (SSRF) |
| CVSS v2 | 10.0 (AV:N/AC:L/Au:N/C:C/I:C/A:C) |
| CVSS v3 | 9.1 CRITICAL (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N) |
| EPSS | 0.99999 (99.999th percentile) |
| KEV | Yes — listed since 2021-11-03 |
| EU Exploited | Yes — since 2021-11-03 |
| Published | 2021-07-14 |
Summary
CVE-2021-34473 is a critical unauthenticated Server-Side Request Forgery (SSRF) vulnerability in Microsoft Exchange Server. It is widely known as the first link in the "ProxyShell" exploit chain (alongside CVE-2021-34523 and CVE-2021-31207). A remote, unauthenticated attacker can leverage this flaw to access backend services that are normally only reachable from localhost, enabling authentication bypass and ultimately remote code execution.
Background
Microsoft Exchange Server exposes frontend HTTP services that proxy requests to backend application components. In affected versions, the frontend proxy can be tricked into routing attacker-controlled requests to internal backend endpoints—most notably the Exchange Control Panel (ECP) and other administrative interfaces—without requiring valid credentials. This architectural weakness has been heavily targeted by both commodity and nation-state threat actors since its disclosure.
Root Cause
CWE-918: Server-Side Request Forgery (SSRF)
The root cause is a path-confusion flaw in how Exchange's frontend (typically IIS/HTTP.sys) normalizes and routes incoming requests. By crafting a request with a specific URI structure, an attacker can cause the frontend to treat the request as destined for a local backend endpoint. The frontend then forwards the request to the backend with a X-BEResource or similar internal header, effectively granting the attacker unauthenticated access to privileged internal APIs. The backend incorrectly trusts the frontend's routing decision and processes the request as if it originated internally.
Impact
| Metric | Value |
|---|---|
| Attack Vector | Network |
| Attack Complexity | Low |
| Privileges Required | None |
| User Interaction | None |
| Scope | Unchanged |
| Confidentiality | High |
| Integrity | High |
| Availability | None (CVSS v3); Complete (CVSS v2) |
The CVSS v3 score of 9.1 (Critical) reflects the ease of exploitation over the network without any credentials or user interaction. While the CVSS v3 Availability impact is rated "None," the chained exploitation (ProxyShell) reliably achieves remote code execution, giving an attacker full control over the Exchange server and, by extension, the Active Directory environment it is joined to. Data exfiltration, mailbox access, lateral movement, and domain compromise are all realistic outcomes.
Exploitation Walkthrough (Defensive Perspective)
Ethics caveat: The following is a high-level, defensive-oriented description of exploitation mechanics. No weaponized code or step-by-step reproduction instructions are provided. This information is intended to help defenders understand detection opportunities and architectural weaknesses.
-
Initial SSRF trigger: The attacker sends a crafted HTTP request to the public-facing Exchange frontend. The URI is manipulated so that the frontend proxy misinterprets the target path and forwards it to a sensitive backend endpoint (e.g.,
/ecp/). -
Backend access: Because the backend trusts the frontend routing, it processes the request without enforcing external authentication. This allows the attacker to access internal administrative interfaces.
-
Chaining: In the full ProxyShell chain, this SSRF is combined with CVE-2021-34523 (Elevation of Privilege) and CVE-2021-31207 (Security Feature Bypass) to achieve authenticated access to ECP and ultimately write an arbitrary file (e.g., an ASPX web shell) to disk.
Defensive takeaway: The critical failure point is the trust boundary between the frontend proxy and backend application. Any request that circumvents this boundary should be treated as highly suspicious.
Affected and Patched Versions
Affected
- Microsoft Exchange Server 2013 — Cumulative Update 23
- Microsoft Exchange Server 2016 — Cumulative Update 19
- Microsoft Exchange Server 2016 — Cumulative Update 20
- Microsoft Exchange Server 2019 — Cumulative Update 8
- Microsoft Exchange Server 2019 — Cumulative Update 9
Patched
Microsoft released security updates for supported Exchange versions on July 13, 2021. Organizations must apply the relevant cumulative update or security patch for their Exchange version. Out-of-support versions (e.g., Exchange 2010) do not receive patches and should be decommissioned or isolated.
Remediation
- Patch immediately. Apply the Microsoft security updates released in July 2021 (and any subsequent servicing updates) for all supported Exchange Server versions.
- Compensating controls (if patching is delayed):
- Restrict external access to Exchange web services (OWA, ECP, EWS, ActiveSync, Autodiscover) to trusted IP ranges or VPN-only access.
- Deploy a hardened reverse proxy or Web Application Firewall (WAF) with rules to detect anomalous URI patterns and
X-BEResource-like headers. - Enable Extended Protection for Authentication on Exchange virtual directories where supported.
- Architecture hygiene:
- Remove or disable unnecessary Exchange virtual directories.
- Ensure Exchange servers are not directly exposed to the internet without additional filtering layers.
Detection
- Network: Monitor for anomalous HTTP requests to Exchange frontends containing unusual URI encoding, doubled slashes, or paths targeting
/ecp/from external source IPs. - Headers: Look for unexpected internal headers (
X-BEResource,X-AnonResource-Backend) in frontend-to-backend traffic. - Endpoint: Monitor the Exchange server filesystem for unexpected ASPX or other script files appearing in web-accessible directories.
- Logs: Review IIS and Exchange logs for
POSTrequests to ECP from unauthenticated external sources, or for suspicious activity immediately following SSRF-like request patterns. - Threat Intelligence: The extremely high EPSS score (0.99999) and confirmed KEV status mean that any externally facing, unpatched Exchange server should be assumed compromised until investigated.
Assessment
CVE-2021-34473 is a textbook example of how a single SSRF flaw can collapse an entire enterprise identity stack. Its inclusion in the ProxyShell chain made it one of the most exploited vulnerabilities of 2021, and it remains relevant years later due to slow patching cycles in exposed Exchange environments.
EPSS/KEV context: With an EPSS of 0.99999 and confirmed active exploitation since November 2021, this vulnerability is effectively a "patch or perish" issue. The CISA KEV listing and EU exploitation advisories underscore that nation-state and criminal actors alike have incorporated this flaw into their playbooks.
Lessons:
- Trust boundaries matter. The frontend-to-backend trust model in Exchange was architecturally brittle; similar proxy-to-backend designs in other products should be audited for path-confusion and SSRF risks.
- Patch velocity saves breaches. The gap between disclosure (July 2021) and mass exploitation (late summer/autumn 2021) was weeks, not months—highlighting the need for emergency patching SLAs for internet-facing identity infrastructure.
References
- http://packetstormsecurity.com/files/163895/Microsoft-Exchange-ProxyShell-Remote-Code-Execution.html
- https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-34473
- https://www.zerodayinitiative.com/advisories/ZDI-21-821/
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-34473
Frequently asked questions
- What is CVE-2021-34473?
- Microsoft Exchange Server Remote Code Execution Vulnerability
- How severe is CVE-2021-34473?
- CVE-2021-34473 has a CVSS 3.x base score of 9.1, rated critical severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability none.
- Is CVE-2021-34473 being actively exploited?
- Yes. CVE-2021-34473 is on CISA's Known Exploited Vulnerabilities (KEV) catalog, added on 2021-11-03, which means active exploitation has been confirmed. It should be prioritised for remediation.
- What products are affected by CVE-2021-34473?
- CVE-2021-34473 primarily affects Microsoft Exchange Server. In total, 5 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2021-34473?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Because this CVE is known to be actively exploited, treat remediation as urgent — CISA KEV typically sets a short remediation deadline.
- Does CVE-2021-34473 have an EU (EUVD) identifier?
- Yes. CVE-2021-34473 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2021-21128. It is also flagged as exploited in the EUVD (since 2021-11-03).
- When was CVE-2021-34473 published?
- CVE-2021-34473 was published on 2021-07-14 and last updated on 2026-06-17.
References
- http://packetstormsecurity.com/files/163895/Microsoft-Exchange-ProxyShell-Remote-Code-Execution.html
- https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-34473
- https://www.zerodayinitiative.com/advisories/ZDI-21-821/
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-34473
Affected products (5)
- cpe:2.3:a:microsoft:exchange_server:2013:cumulative_update_23:*:*:*:*:*:*
- cpe:2.3:a:microsoft:exchange_server:2016:cumulative_update_19:*:*:*:*:*:*
- cpe:2.3:a:microsoft:exchange_server:2016:cumulative_update_20:*:*:*:*:*:*
- cpe:2.3:a:microsoft:exchange_server:2019:cumulative_update_8:*:*:*:*:*:*
- cpe:2.3:a:microsoft:exchange_server:2019:cumulative_update_9:*:*:*:*:*:*
More vulnerabilities in Microsoft Exchange Server
- CVE-2007-0213 — Critical (CVSS 10.0): Microsoft Exchange Server 2000 SP3, 2003 SP1 and SP2, and 2007 does not properly decode certain MIME encoded e-mails,…
- CVE-2004-0840 — Critical (CVSS 10.0): The SMTP (Simple Mail Transfer Protocol) component of Microsoft Windows XP 64-bit Edition, Windows Server 2003, Windows…
- CVE-2004-0574 — Critical (CVSS 10.0): The Network News Transfer Protocol (NNTP) component of Microsoft Windows NT Server 4.0, Windows 2000 Server, Windows…
- CVE-1999-0385 — Critical (CVSS 10.0): The LDAP bind function in Exchange 5.5 has a buffer overflow that allows a remote attacker to conduct a denial of…
- CVE-2024-21410 — Critical (CVSS 9.8): Microsoft Exchange Server Elevation of Privilege Vulnerability
- CVE-2023-21709 — Critical (CVSS 9.8): Microsoft Exchange Server Elevation of Privilege Vulnerability
All CVEs affecting Microsoft Exchange Server →
Other CWE-918 (Server-Side Request Forgery (SSRF)) vulnerabilities
- CVE-2026-47938 — Critical (CVSS 10.0): Adobe Campaign Classic (ACC) versions 7.4.3 build 9394 and earlier are affected by a Server-Side Request Forgery (SSRF)…
- CVE-2026-35431 — Critical (CVSS 10.0): Server-side request forgery (ssrf) in Microsoft Entra ID Entitlement Management allows an unauthorized attacker to…
- CVE-2026-32186 — Critical (CVSS 10.0): Server-side request forgery (ssrf) in Microsoft Bing allows an unauthorized attacker to elevate privileges over a…
- CVE-2026-33107 — Critical (CVSS 10.0): Server-side request forgery (ssrf) in Azure Databricks allows an unauthorized attacker to elevate privileges over a…
- CVE-2026-32871 — Critical (CVSS 10.0): FastMCP is a Pythonic way to build MCP servers and clients. Prior to version 3.2.0, the OpenAPIProvider in FastMCP…
- CVE-2026-32169 — Critical (CVSS 10.0): Server-side request forgery (ssrf) in Azure Cloud Shell allows an unauthorized attacker to elevate privileges over a…
Browse all CWE-918 (Server-Side Request Forgery (SSRF)) vulnerabilities →