CVE DatabaseCVE-2021-26857
한국어 권고문 →
CVE-2021-268577.8/HIGHCISA KEVCWE-502CWE-502

Microsoft Exchange Server Remote Code Execution Vulnerability (CVE-2021-26857) Security Advisory

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

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

Microsoft Exchange Server 2013, 2016, and 2019

Impact

Attackers can execute arbitrary code with SYSTEM privileges, leading to full compromise of the mail server

Mitigation

Immediately apply the official Microsoft Cumulative Updates (CU) and Security Updates (SU)

Affected Products & Version Scope

Microsoft Exchange Server 2013, 2016, and 2019 with Unified Messaging role enabled

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

Refer to the Microsoft Security Update Guide to apply the latest Cumulative Update (CU) and Security Update (SU). Use the following PowerShell commands to verify your Exchange Server version and apply updates.

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, MSExchangeUM

2. Temporary Workaround & Hardening Configuration

If patching cannot be applied immediately, disable the vulnerable Unified Messaging (UM) service or restrict access to the UM virtual directories.

powershell
# Stop and disable the Unified Messaging service
Stop-Service MSExchangeUM
Set-Service MSExchangeUM -StartupType Disabled

# Restrict access to the UM virtual directory in IIS
Import-Module WebAdministration
Set-WebConfigurationProperty -Filter '/system.webServer/security/ipSecurity' -Name 'allowUnlisted' -Value $false -PSPath 'IIS:\sites\Default Web Site\UnifiedMessaging'

3. Log Audit & IoC Verification Commands

Inspect the Application event logs and check for anomalous child processes spawned by the Unified Messaging service.

powershell
# Query Application logs for Unified Messaging errors and anomalies
Get-WinEvent -LogName Application | Where-Object { $_.ProviderName -eq 'MSExchange Unified Messaging' -and $_.LevelDisplayName -eq 'Error' } | Select-Object TimeCreated, Id, Message -First 50

# Detect anomalous child processes (e.g., cmd.exe, powershell.exe) spawned by MSExchangeUM
Get-CimInstance Win32_Process | Where-Object { $_.ParentProcessId -in (Get-Process -Name MSExchangeUM -ErrorAction SilentlyContinue).Id } | Select-Object ProcessId, Name, CommandLine
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
SentinelOne Singularity AI EDR
CVE-2021-26857 is a highly critical, actively exploited vulnerability; immediately apply official Microsoft patches and audit Unified Messaging service exposure.

Block Kernel Privilege Escalation & Ransomware Payloads Before You Can Reboot

Protect unpatched Windows, Linux, and macOS workloads against in-memory exploitation and lateral movement with autonomous EDR.

100% MITRE ATT&CK Detection · 1-Click Rollback

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

This vulnerability is an insecure deserialization vulnerability (CWE-502) existing in the Unified Messaging (UM) service of Microsoft Exchange Server. It occurs when the UM service deserializes untrusted user-controlled data without proper validation, allowing an attacker to inject malicious serialized payloads.

2. Exploitation Mechanics & Attack Scenario

An attacker sends a specially crafted serialized payload to the Unified Messaging service on the Exchange Server. When the vulnerable deserialization routine (such as .NET BinaryFormatter) processes this payload, it instantiates and executes arbitrary objects in memory. While exploiting this vulnerability alone requires administrative privileges, it can be chained with an SSRF vulnerability like CVE-2021-26855 (ProxyLogon) to allow an unauthenticated remote attacker to execute arbitrary code with SYSTEM privileges.

3. Infrastructure & Business Impact

This vulnerability has been actively exploited in the wild by threat actors (e.g., Hafnium) and is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Successful exploitation allows attackers to compromise all email data, harvest credentials, access Active Directory, and establish a persistent foothold within the internal network, posing a catastrophic risk to business operations.

Official Vendor Advisories & References

Frequently Asked SecOps Questions (CVE-2021-26857)

FAQ

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

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

Primary impacted vendors include microsoft across exchange_server. Scope summary: Microsoft Exchange Server 2013, 2016, and 2019 with Unified Messaging role enabled

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

[Mitigation] Immediately apply the official Microsoft Cumulative Updates (CU) and Security Updates (SU) 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-26857

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-26857 Microsoft Exchange Server Remote Code Execution Vulnerability (CVE-2021-26857) Security Advisory (CVSS 7.8) - Patch & Workaround | CVE Pulse