CVE DatabaseCVE-2021-31196
한국어 권고문 →
CVE-2021-311967.2/HIGHCISA KEV

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

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

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

Microsoft Exchange Server 2013, 2016, and 2019

Impact

High-privileged remote attackers can execute arbitrary code and gain full system control over the Exchange Server

Mitigation

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

Affected Products & Version Scope

Microsoft Exchange Server 2013, 2016, and 2019 (without the latest Cumulative and Security Updates)

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

Refer to the Microsoft Security Update Guide to download and install the appropriate Security Update (SU) for your Exchange version. Verify your current build using the Exchange Management Shell (EMS).

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

# Restart IIS services after applying the security patch
Restart-Service W3SVC, WAS -Force

2. Temporary Workaround & Hardening Configuration

If patching cannot be applied immediately, restrict external access to sensitive Exchange endpoints (such as PowerShell and EAC) using IIS URL Rewrite rules.

xml
<!-- Example IIS web.config rule to restrict external PowerShell access -->
<configuration>
  <system.webServer>
    <rewrite>
      <rules>
        <rule name='Block External PowerShell' stopProcessing='true'>
          <match url='^powershell' />
          <conditions>
            <add input='{REMOTE_ADDR}' pattern='^10\.0\.' negate='true' />
          </conditions>
          <action type='CustomResponse' statusCode='403' statusReason='Forbidden' statusDescription='Access Denied' />
        </rule>
      </rules>
    </rewrite>
  </system.webServer>
</configuration>

3. Log Audit & IoC Verification Commands

Run the following PowerShell command to detect anomalous child processes spawned by the IIS worker process (w3wp.exe), which may indicate web shell execution.

powershell
# Detect suspicious child processes spawned by w3wp.exe
Get-CimInstance Win32_Process | Where-Object {
    $_.ParentProcessId -in (Get-Process -Name w3wp).Id
} | Select-Object ProcessId, Name, CommandLine, CreationDate | Format-Table -AutoSize
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
Cloudflare Enterprise & Pro WAF
Due to active exploitation in the wild, immediately apply the official Microsoft security updates and restrict external access to Exchange management interfaces.

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-31196 is a critical Remote Code Execution (RCE) vulnerability in Microsoft Exchange Server. The root cause lies in the unsafe deserialization or improper validation of user-supplied input within specific Exchange internal components. Although the exploit requires high privileges (PR:H), a successful attack allows the execution of arbitrary commands with SYSTEM privileges, bypassing further security boundaries.

2. Exploitation Mechanics & Attack Scenario

An attacker typically gains initial access or high-privileged credentials through phishing, credential stuffing, or by chaining other vulnerabilities (such as ProxyShell). Once authenticated, the attacker sends a specially crafted network request containing a malicious payload to the vulnerable Exchange endpoint. The server processes this payload under the context of the SYSTEM account, enabling the attacker to deploy web shells, establish persistence, and perform lateral movement across the Active Directory domain.

3. Infrastructure & Business Impact

This vulnerability is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, confirming active exploitation in the wild. With an EPSS score of 0.5406 (54.06%), the threat level is extremely high. Successful exploitation can lead to complete domain compromise, sensitive email data exfiltration, ransomware deployment, and severe business disruption.

Official Vendor Advisories & References

Frequently Asked SecOps Questions (CVE-2021-31196)

FAQ

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

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

Primary impacted vendors include microsoft across exchange_server. Scope summary: Microsoft Exchange Server 2013, 2016, and 2019 (without the latest Cumulative and Security Updates)

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

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

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