Cloudanix VulnDB

CVE-2021-31196

High · 7.2 CISA KEV

CVSS

7.2

EPSS

54.1%

Published

Jul 14, 2021

CISA due date

Sep 11, 2024

Cloudanix analysis

Act now SSVC: Attend

A vulnerable server could let someone with powerful access run their own commands on it, putting data and service reliability at risk.

Active In The Wild
Exploitation
Remote Authenticated
Attacker needs
High Privilege
Complexity
Low
Impact
Remote Code Execution
Component
Network Service
Class
RCE
Remediation
Patch
Effort
Low
Patch risk
Low

What it actually does

This is a network-reachable remote code execution class vulnerability with low attack complexity but requiring high privileges according to the supplied CVSS vector. Successful exploitation allows an authenticated attacker with sufficient privileges to cause the vulnerable server-side component to execute attacker-controlled code in the context of the affected service, potentially leading to full confidentiality, integrity, and availability compromise of the application host. The provided metadata is internally inconsistent: the description names Microsoft Exchange Server, while the affected package and fixed-version data identify Apache Dubbo artifacts; teams should validate both product mappings during scoping.

Why it matters to the business

Because this vulnerability is listed in CISA KEV, marked as actively exploited in the wild, has a high EPSS score of 0.54056, and has a KEV remediation deadline of 2024-09-11, unpatched exposure should be treated as urgent even though the issue is older. Affected internet-facing or privileged middleware and messaging systems could be used to steal sensitive data, deploy web shells or backdoors, disrupt business services, and pivot deeper into the environment. If Apache Dubbo is in use, the ecosystem impact may extend through downstream services that embed the vulnerable Maven dependency rather than only through explicitly deployed servers.

How an attack unfolds

An attacker first identifies an exposed or reachable affected service and obtains or compromises credentials with the level of privilege required to reach the vulnerable execution path. They then send a crafted authenticated request, RPC call, or administrative action to the vulnerable component. The server processes the malicious input and executes attacker-controlled code under the service account, such as a Java application process in an Apache Dubbo deployment or an IIS/Exchange worker process if the Exchange mapping applies. After code execution, the attacker commonly validates execution with a lightweight command, writes a web shell or secondary payload, creates persistence, collects credentials or sensitive data, and uses the compromised host to move laterally. Given KEV status and active-in-the-wild maturity, defenders should assume public or operationalized exploitation techniques exist and prioritize both patching and retrospective hunting.

How to fix it

Patch or upgrade all affected products and embedded dependencies. For Apache Dubbo Maven deployments, upgrade org.apache.dubbo:dubbo to version 2.7.13 or later. For source-based Apache Dubbo deployments, ensure the fix commit 9c49efeacfd87d2d4409fb000cebd58e1114ec8a or a later release containing it is present. If Microsoft Exchange Server is in scope based on vendor advisory validation, apply the relevant Microsoft security updates from July 2021 or later cumulative/security update levels and follow Microsoft Exchange post-patching guidance. Where immediate patching is not possible, restrict network access to affected services, remove internet exposure, require strong MFA for administrative access, rotate privileged credentials after patching, disable unnecessary interfaces, and monitor service processes for child-process execution. Because the KEV due date has passed, treat unpatched systems as compliance and operational risk exceptions requiring documented compensating controls.

How to confirm the fix worked

Confirm remediation by inventorying both deployed servers and software dependencies. For Apache Dubbo, use software composition analysis, Maven dependency trees, SBOMs, and runtime package inspection to verify org.apache.dubbo:dubbo is 2.7.13 or later and no shaded or transitive vulnerable copy remains. For Git/source deployments, verify the deployed code includes commit 9c49efeacfd87d2d4409fb000cebd58e1114ec8a or a later tagged release. For Exchange environments, validate installed cumulative updates and security updates using Microsoft-supported health and version checks, and confirm all internet-facing Exchange roles are patched. Re-run vulnerability scanners after patching, but also verify with authenticated checks because unauthenticated network banners may be inaccurate. Validate compensating controls by confirming administrative/RPC endpoints are not reachable from untrusted networks and that EDR or audit telemetry captures service-process child execution.

Typical attack path

  1. Identify externally reachable or internally accessible affected Exchange Server or Apache Dubbo services.
  2. Acquire valid high-privilege credentials or compromise an account that can access the vulnerable functionality.
  3. Send a crafted authenticated request or RPC interaction that triggers server-side code execution.
  4. Execute operating-system commands or load a payload in the context of the vulnerable service process.
  5. Establish persistence, commonly through a web shell, scheduled task, service, startup item, or modified application artifact.
  6. Collect credentials, configuration secrets, mailbox/application data, or tokens available to the compromised service.
  7. Pivot to adjacent systems or disrupt service availability through destructive commands or ransomware staging.

How to detect it

To determine whether exploitation already occurred, review authentication, application, process creation, file integrity, and network telemetry around the affected service. For Exchange-scoped investigations, examine IIS logs, Exchange HTTP proxy logs, ECP/OWA activity, Exchange Admin Audit logs, Windows Security Event ID 4688, Sysmon process creation events, PowerShell operational logs, and file changes under Exchange and IIS web directories. Look for authenticated administrative access followed by unusual child processes from w3wp.exe or Exchange service processes, suspicious ASPX files, encoded PowerShell, outbound connections, archive creation, and credential-dumping behavior. For Apache Dubbo-scoped investigations, review Dubbo RPC access logs, application logs, JVM logs, container logs, EDR telemetry for java child processes, and network flows to common Dubbo service ports such as 20880. Look for unexpected deserialization or invocation errors, unusual class-loading activity, Java processes spawning operating-system shells, payload downloads, new cron jobs or scheduled tasks, and post-exploitation traffic to unfamiliar external hosts. Correlate any suspicious execution with account logins and privileged actions because the supplied vector indicates exploitation requires high privileges.

  • w3wp.exe spawning cmd.exe
  • w3wp.exe spawning powershell.exe
  • w3wp.exe spawning /bin/sh
  • java.exe spawning cmd.exe
  • java.exe spawning powershell.exe
  • java spawning /bin/sh
  • java spawning bash
  • powershell.exe -EncodedCommand
  • powershell.exe -enc
  • cmd.exe /c whoami
  • /bin/sh -c whoami
  • Runtime.getRuntime().exec
  • java.lang.ProcessBuilder
  • /inetpub/wwwroot/aspnet_client/system_web/
  • C:\inetpub\wwwroot\aspnet_client\system_web\
  • *.aspx web shell in Exchange or IIS webroot
  • org.apache.dubbo:dubbo
  • dubbo://
  • 20880

What your security team should do

  • Immediately identify whether Microsoft Exchange Server, Apache Dubbo, or org.apache.dubbo:dubbo are present, because the supplied advisory metadata contains conflicting product signals.
  • Prioritize patching any internet-facing, business-critical, or privileged affected systems; KEV and active exploitation status make this higher priority than CVSS alone suggests.
  • Upgrade Apache Dubbo dependencies to 2.7.13 or later and ensure transitive or shaded vulnerable copies are removed from application builds.
  • If Exchange is applicable, apply supported Microsoft security updates and run vendor health checks after patching.
  • Restrict access to administrative, RPC, OWA/ECP, and Dubbo service endpoints to trusted networks only; remove direct internet exposure where possible.
  • Hunt retrospectively for service processes spawning shells, scripting engines, download utilities, archive tools, or unexpected child processes.
  • Review privileged account activity before and after suspected exposure; rotate credentials and secrets accessible from affected hosts if exploitation cannot be ruled out.
  • Inspect application webroots, deployment directories, temporary directories, scheduled tasks, services, and startup locations for persistence artifacts.
  • Create SIEM detections for java.exe, w3wp.exe, or Exchange service processes launching command interpreters or PowerShell.
  • Document remediation against the CISA KEV deadline and track remaining exceptions with time-bound compensating controls.

The record

Microsoft Exchange Server Remote Code Execution Vulnerability

Affected packages

Ecosystem Package Introduced Fixed