CVE DatabaseCVE-2021-27065
한국어 권고문 →
CVE-2021-270657.8/HIGHCISA KEVCWE-22CWE-22

Microsoft Exchange Server Arbitrary File Write and Remote Code Execution Vulnerability (CVE-2021-27065, ProxyLogon)

⚡ Jump to Patch
Affected Vendors
microsoft
Affected Components
exchange_server
Published Date
2021-03-03
CVSS v3.1
7.8
HIGH
EPSS (30d)
99.9%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

On-premises Microsoft Exchange Server 2013, 2016, and 2019 without the latest Cumulative Updates (CU) and Security Updates (SU)

Impact

Unauthenticated remote attackers can bypass authentication, abuse Exchange Admin Center (EAC) APIs to write arbitrary files, and execute malicious code with SYSTEM privileges

Mitigation

Immediately apply the official Microsoft Cumulative Updates (CU) and Security Updates (SU), and perform a thorough compromise assessment

Affected Products & Version Scope

On-premises Microsoft Exchange Server 2013, 2016, and 2019 (Exchange Online is not affected)

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

To remediate this vulnerability, run the Exchange Management Shell (EMS) or PowerShell as Administrator to verify the current version and apply the latest Cumulative Update (CU) and Security Update (SU).

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

# Restart IIS services after applying the security patch
iisreset /noforce

2. Temporary Workaround & Hardening Configuration

If immediate patching is not feasible, restrict external access to the EAC (/ecp) and OAB (/OAB) virtual directories using IIS URL Rewrite or IP address restrictions.

powershell
# Example: Restrict access to the IIS default web site using IP security configurations
Import-Module WebAdministration
Set-WebConfigurationProperty -pspath 'MACHINE/WEBROOT/APPHOST' -filter 'system.webServer/security/ipSecurity' -name 'allowUnlisted' -value $false

3. Log Audit & IoC Verification Commands

Audit the Exchange and IIS logs to detect potential exploitation attempts and unauthorized virtual directory resets.

powershell
# Search Exchange ECP logs for ResetVirtualDirectory activities containing potential webshell payloads
Select-String -Path 'C:\Program Files\Microsoft\Exchange Server\V15\Logging\ECP\Server\*.log' -Pattern 'ResetVirtualDirectory' | Select-Object -First 50

# Scan the IIS web directories for newly created or suspicious ASPX files
Get-ChildItem -Path 'C:\inetpub\wwwroot\aspnet_client\' -Recurse -Filter '*.aspx'
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
Cloudflare Enterprise & Pro WAF
Due to active exploitation of the ProxyLogon chain, immediately apply Microsoft's official security updates and conduct a comprehensive compromise assessment for webshells.

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

CVE-2021-27065 is an arbitrary file write vulnerability in the Exchange Admin Center (EAC) virtual directory configuration mechanism of Microsoft Exchange Server. The root cause lies in insufficient input validation and path traversal (CWE-22) flaws, allowing authenticated (or post-authentication bypass) attackers to write files to arbitrary paths on the server. This vulnerability is famously chained with the pre-authentication bypass vulnerability (CVE-2021-26855) to form the 'ProxyLogon' exploit chain.

2. Exploitation Mechanics & Attack Scenario

An attacker first bypasses frontend authentication to access the backend EAC API with administrative privileges. The attacker then modifies the 'ExternalUrl' parameter of an Offline Address Book (OAB) virtual directory to contain a malicious payload (such as an ASPX webshell). Finally, the attacker triggers the 'Reset Virtual Directory' function to export the configuration to a specified path within the IIS web root directory. By leveraging path traversal, the attacker forces the server to write the configuration file with a '.aspx' extension, allowing the web server to execute the embedded payload as code.

3. Infrastructure & Business Impact

This vulnerability is highly critical and is actively exploited in the wild, as documented in the CISA KEV catalog. Successful exploitation grants the attacker 'NT AUTHORITY\SYSTEM' privileges on the Exchange Server. This allows threat actors to compromise the entire Active Directory (AD) domain, exfiltrate sensitive email communications, deploy ransomware, and establish persistent backdoors within the enterprise network.

Official Vendor Advisories & References

Frequently Asked SecOps Questions (CVE-2021-27065)

FAQ

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

CVE-2021-27065 is rated CVSS 7.8 (HIGH) with a 30-day EPSS exploitation probability of 99.9%. 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-27065?

Primary impacted vendors include microsoft across exchange_server. Scope summary: On-premises Microsoft Exchange Server 2013, 2016, and 2019 (Exchange Online is not affected)

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

[Mitigation] Immediately apply the official Microsoft Cumulative Updates (CU) and Security Updates (SU), and perform a thorough compromise assessment 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-27065

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-27065 Microsoft Exchange Server Arbitrary File Write and Remote Code Execution Vulnerability (CVE-2021-27065, ProxyLogon) (CVSS 7.8) - Patch & Workaround | CVE Pulse