CVE-2021-42321 is a post-authentication deserialization vulnerability in Microsoft Exchange Server that permits remote code execution. Identified affected releases include Exchange Server 2016 CU21/CU22 and Exchange Server 2019 CU10/CU11. The vulnerable path involves TypedBinaryFormatter failing to pass a serialization binder correctly, ineffective type restrictions in ChainedSerializationBinder, and ClaimsPrincipal deserialization invoking an unfiltered BinaryFormatter.Deserialize operation. An attacker can supply serialized data through the BinaryData field of an Exchange Web Services CreateUserConfiguration request and trigger deserialization through GetClientAccessToken. Public proof-of-concept exploits exist, and exploitation in the wild has been documented.
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
2 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos.
This repository contains a single Metasploit module targeting Microsoft Exchange Server vulnerabilities (CVE-2021-42321 and CVE-2022-23277) in the ChainedSerializationBinder component. The exploit requires valid Exchange user credentials and targets Exchange 2016 CU21/CU22 and 2019 CU10/CU11 prior to the March 2022 Security Update. The module leverages authenticated access to the Exchange Web Services (EWS) endpoint (/ews/exchange.asmx) to create a malicious user configuration object, which is then deserialized to achieve remote code execution as SYSTEM. The exploit supports multiple payload types, including direct command execution, file droppers, and PowerShell stagers, and is fully integrated into the Metasploit framework, allowing for payload customization and automated exploitation. The code is mature, weaponized, and suitable for post-authentication exploitation scenarios. The only fingerprintable endpoint is the EWS SOAP endpoint, which is standard for Exchange servers.
This repository contains a proof-of-concept exploit for CVE-2021-42321, a remote code execution vulnerability in Microsoft Exchange Server. The main file, 'CVE-2021-42321_poc.py', is a Python script that crafts and sends a malicious serialized .NET payload (gadgetData) to the Exchange Web Services (EWS) SOAP API endpoint '/ews/exchange.asmx' on a target Exchange server. The script authenticates using NTLM credentials and performs a sequence of SOAP requests to first retrieve the inbox folder ID, delete any existing user configuration, and then create a new user configuration containing the malicious payload. The payload is designed to trigger code execution on the server (e.g., launching calc or mspaint). The exploit requires valid credentials and a vulnerable Exchange Server. The repository also includes a brief README referencing the CVE and the official Microsoft patch. No hardcoded endpoints are present; the user must specify the target Exchange server URL and credentials.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
10 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
A Microsoft Exchange vulnerability (CVE-2021-42321) referenced in the context of a threat actor claiming to sell an 'implementation' (i.e., exploit capability) for it to gain access to victim networks.
A Microsoft Exchange vulnerability demonstrated at the 2021 Tianfu Cup and subsequently exploited in the wild within days, illustrating the operational risks associated with competition-discovered vulnerabilities.
A vulnerability listed as one of several publicly available exploits leveraged by Forest Blizzard.
A post-auth remote code execution deserialization vulnerability in Microsoft Exchange Server. The content describes technical analysis of the deserialization sink and source, and shows how authenticated attackers can achieve RCE via EWS user configuration data and GetClientAccessToken.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.