CVE DatabaseCVE-2021-34523
한국어 권고문 →
CVE-2021-345239.0/CRITICALCISA KEV

Microsoft Exchange Server Elevation of Privilege Vulnerability (CVE-2021-34523, ProxyShell)

⚡ Jump to Patch
Affected Vendors
microsoft
Affected Components
exchange_server
Published Date
2021-07-14
CVSS v3.1
9.0
CRITICAL
EPSS (30d)
100.0%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

Microsoft Exchange Server 2013, 2016, and 2019 on-premises deployments

Impact

Attackers can elevate privileges to SYSTEM, enabling remote code execution (RCE) when chained with other ProxyShell vulnerabilities

Mitigation

Immediately apply the official Microsoft Cumulative Updates (CU) and Security Updates (SU), and restrict external access to Exchange IIS ports

Affected Products & Version Scope

Microsoft Exchange Server 2013 (up to CU23), Exchange Server 2016 (up to CU20), and Exchange Server 2019 (up to CU9)

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

The primary remediation is to apply the latest Cumulative Update (CU) and Security Update (SU) provided by Microsoft. Use the following PowerShell commands to verify your current Exchange version and prepare for patching.

powershell
# Check current Exchange Server version and build number
Get-ExchangeServer | Format-List Name, Edition, AdminDisplayVersion

# Restart IIS and Exchange services after applying the security patch
Restart-Service W3SVC, MSExchangeIS, MSExchangeMailboxAssistants

2. Temporary Workaround & Hardening Configuration

If patching cannot be performed immediately, configure an IIS URL Rewrite rule to block malicious requests targeting the Autodiscover and PowerShell backend endpoints.

powershell
# Import IIS administration module and define the blocking rule
Import-Module WebAdministration
$website = 'Default Web Site'
$ruleName = 'Block_ProxyShell_Exploit'

# Add URL Rewrite rule to block autodiscover.json requests
Add-WebConfigurationProperty -pspath 'IIS:\Sites\Default Web Site' -filter 'system.webServer/rewrite/rules' -name '.' -value @{name=$ruleName;patternSyntax='Regular Expressions';stopProcessing='True'}
Set-WebConfigurationProperty -pspath 'IIS:\Sites\Default Web Site' -filter "system.webServer/rewrite/rules/rule[@name='$ruleName']/match" -name 'url' -value '.*autodiscover\.json.*'
Set-WebConfigurationProperty -pspath 'IIS:\Sites\Default Web Site' -filter "system.webServer/rewrite/rules/rule[@name='$ruleName']/action" -name 'type' -value 'CustomResponse'
Set-WebConfigurationProperty -pspath 'IIS:\Sites\Default Web Site' -filter "system.webServer/rewrite/rules/rule[@name='$ruleName']/action" -name 'statusCode' -value 403

3. Log Audit & IoC Verification Commands

Scan IIS log files to detect potential exploitation attempts targeting the ProxyShell vulnerability chain.

powershell
# Search IIS logs for ProxyShell exploitation patterns (autodiscover.json and powershell)
$LogPath = 'C:\inetpub\logs\LogFiles\W3SVC1\*'
Select-String -Path $LogPath -Pattern 'autodiscover.json.*@.*powershell' | Select-Object -First 20 -Property Path, LineNumber, Line
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
Cloudflare Enterprise & Pro WAF
Due to active exploitation by ransomware groups, immediately apply the latest Microsoft Exchange security updates and restrict external access to administrative endpoints.

Block Exploits Instantly with Managed Virtual Patching Rules

Can't patch production immediately? Deploy managed WAF rules at the edge to intercept RCE, SQLi, and deserialization payloads before they hit your origin server.

3-min setup · Automated Zero-Day Managed Rules
Practice Exploiting & Patching This Web Vulnerability in an Interactive Lab
Launch Hands-On Security Lab

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

This vulnerability (CVE-2021-34523) is an elevation of privilege vulnerability in the PowerShell backend component of Microsoft Exchange Server. Part of the notorious 'ProxyShell' vulnerability chain, it stems from a failure in the Client Access Service (CAS) to properly validate and sanitize user privileges when proxying requests to the backend PowerShell endpoint (/powershell).

2. Exploitation Mechanics & Attack Scenario

An attacker initiates the attack by exploiting an authentication bypass vulnerability in the Exchange Autodiscover service (CVE-2021-34473). Once inside, the attacker leverages CVE-2021-34523 to elevate their session privileges to an Exchange administrator or SYSTEM level. With these elevated privileges, the attacker can execute administrative PowerShell cmdlets, such as exporting mailboxes, to drop web shells and achieve arbitrary remote code execution (RCE).

3. Infrastructure & Business Impact

Listed in CISA's Known Exploited Vulnerabilities (KEV) catalog and carrying an EPSS score of 0.9999, this vulnerability has been actively exploited in the wild by multiple threat actors. Successful exploitation allows complete compromise of the Exchange Server, leading to sensitive email data theft, lateral movement within the Active Directory (AD) domain, and potential deployment of ransomware across the entire corporate network.

Official Vendor Advisories & References

Frequently Asked SecOps Questions (CVE-2021-34523)

FAQ

Q1. How critical is CVE-2021-34523 and is it actively exploited in the wild?

CVE-2021-34523 is rated CVSS 9.0 (CRITICAL) with a 30-day EPSS exploitation probability of 100.0%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.

Q2. Which vendors and products are affected by CVE-2021-34523?

Primary impacted vendors include microsoft across exchange_server. Scope summary: Microsoft Exchange Server 2013 (up to CU23), Exchange Server 2016 (up to CU20), and Exchange Server 2019 (up to CU9)

Q3. What temporary mitigations or workarounds exist for CVE-2021-34523 before patching?

[Mitigation] Immediately apply the official Microsoft Cumulative Updates (CU) and Security Updates (SU), and restrict external access to Exchange IIS ports Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2021-34523

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (microsoft)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2021-34523 Microsoft Exchange Server Elevation of Privilege Vulnerability (CVE-2021-34523, ProxyShell) (CVSS 9.0) - Patch & Workaround | CVE Pulse