Skip to main content
Meet us at Black Hat USA 2026— Las Vegas, August 1–6Book a Meeting
Mallory
HighCISA KEVExploited in the wildPublic exploit

ProxyNotShell RCE in Microsoft Exchange Server

IdentifiersCVE-2022-41082CWE-502· Deserialization of Untrusted Data

CVE-2022-41082 is the remote code execution component of the ProxyNotShell exploit chain affecting on-premises Microsoft Exchange Server 2013, 2016, and 2019. Public reporting consistently describes it as exploitable when Exchange PowerShell is reachable by the attacker, typically after chaining with CVE-2022-41040 to reach the privileged /powershell endpoint via Autodiscover SSRF. The provided content further states that exploitation occurs through Exchange PowerShell remoting and deserialization/type-conversion behavior in Exchange. Specifically, Exchange’s custom PowerShell SerializationTypeConverter ultimately passes attacker-controlled SerializationData into BinaryFormatter deserialization, and published analysis of CVE-2022-41082 describes abuse of allowed types and gadget chains, including the original System.UnitySerializationHolder/XamlReader path, to achieve code execution. Attackers send crafted PowerShell remoting requests, including serialized payload data, to trigger execution in the Exchange context.

Share:
For your environment

Are you exposed to this one?

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.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows arbitrary code execution on the vulnerable Exchange server. Reporting in the provided content shows this has been used in the wild to deploy web shells, establish backdoors, perform reconnaissance, dump credentials, move laterally, exfiltrate data, and support follow-on ransomware or espionage activity. Because Exchange is a high-value, privileged enterprise system with access to mail and often close integration with Active Directory, compromise can lead to broader domain compromise.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is not possible, implement Microsoft-recommended URL filtering in IIS or a WAF to block the ProxyNotShell access path, using the pattern .*autodiscover.json.Powershell. applied to URL-decoded request URIs, as reflected in the provided advisory. Restrict exposure of Exchange PowerShell, limit internet exposure of OWA/Autodiscover where feasible, enable Exchange Emergency Mitigation Service, ensure Exchange AMSI integration is enabled and functioning, audit antivirus exclusions on Exchange, and constrain outbound connectivity from Exchange servers via allow-listed proxies. Monitoring for suspicious access to /autodiscover and /powershell and for Exchange child-process anomalies is also warranted.

Remediation

Patch, then assume compromise.

Apply Microsoft’s official security updates for CVE-2022-41082 and the associated ProxyNotShell chain. The content states Microsoft released patches on November 8, 2022, and advisory material also references applying the official Microsoft patches for CVE-2022-41040 and CVE-2022-41082. Ensure Exchange Server 2013, 2016, and 2019 systems are fully updated and monitor Microsoft for any superseding cumulative or security updates.
PUBLIC EXPLOITS

Exploits

3 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos (4 hidden).

VALID 3 / 7 TOTALView more in app
CVE-2022-41082MaturityPoCVerified exploit

This repository is a proof-of-concept exploit for CVE-2022-41082 (OWASSRF), targeting Microsoft Exchange servers. It consists of three files: a README.md with detailed usage and background, a Python exploit script (poc.py), and a requirements.txt listing dependencies. The main exploit script, poc.py, automates the process of authenticating to the Exchange OWA endpoint, starting a local RPC server, and leveraging the OWASSRF vulnerability to execute arbitrary PowerShell commands on the target server. The attacker provides a command file containing the payload, which is base64-encoded and injected into the PowerShell session. The exploit can be used for a variety of post-exploitation actions, including establishing a reverse shell. The script requires valid credentials for a user with Remote PowerShell access and targets the Exchange server over HTTPS endpoints. The repository is structured as a standalone PoC and does not belong to a larger exploit framework.

soltanali0Disclosed Oct 24, 2024pythonnetwork
OWASSRF-CVE-2022-41082-POCMaturityPoCVerified exploit

This repository provides a working exploit for two Microsoft Exchange vulnerabilities: CVE-2022-41082 (ProxyNotShell/OWASSRF, post-auth RCE) and CVE-2022-41076 (TabShell, privilege escalation via PowerShell sandbox escape). The main exploit is implemented in 'poc.py', a Python script that authenticates to the Exchange OWA endpoint using provided credentials, sets up a local HTTP server to relay PowerShell requests, and abuses the Exchange PowerShell endpoint to execute arbitrary commands on the server. The command to execute is read from a file (default: 'cmd'), which can be set to any desired payload (e.g., launching calc.exe). The exploit leverages the PowerShell Remoting Protocol (PSRP) via a bundled 'pypsrp' library. The included 'TabShell.ps1' PowerShell script is used for privilege escalation after initial access, allowing the attacker to break out of the restricted PowerShell sandbox. The repository is well-structured, with clear separation between the exploit logic, supporting library code, and payload scripts. It targets unpatched Exchange 2013, 2016, and 2019 servers as of November 2022, and requires valid credentials for exploitation. The attack vector is network-based, targeting the Exchange OWA and PowerShell endpoints over HTTP(S).

balki97Disclosed Dec 22, 2022pythonpowershellnetwork
CVE-2022-41082-POCMaturityPoCVerified exploit

This repository provides a working exploit for two Microsoft Exchange vulnerabilities: CVE-2022-41082 (ProxyNotShell/OWASSRF, a post-auth RCE) and CVE-2022-41076 (TabShell, a privilege escalation via PowerShell sandbox escape). The main exploit logic is in 'poc.py', which authenticates to the Exchange OWA endpoint using provided credentials, then abuses the PowerShell endpoint to execute arbitrary commands. The exploit sets up a local HTTP server to relay requests and uses the included 'pypsrp' library for PowerShell Remoting Protocol (PSRP) communication. The payload is customizable and can be any PowerShell command, with examples provided (calc.exe, mspaint.exe, ipconfig.exe). The 'TabShell.ps1' script demonstrates privilege escalation by breaking out of the restricted PowerShell sandbox after initial access is gained. The repository is structured with a main PoC script, a PowerShell privilege escalation script, a command file for payloads, and a full implementation of the pypsrp library for PSRP communication. The exploit is operational and can be used to achieve RCE and privilege escalation on vulnerable, unpatched Exchange servers with valid credentials.

bigherocenterDisclosed Feb 21, 2023pythonpowershellnetwork
EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Microsoft CorporationExchange Serverapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence56

Every observed campaign linking this CVE to a named adversary.

Associated malware23

Malware families riding this exploit, with evidence and IOCs.

Detection signatures3

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity2

Community discussion across Reddit, Mastodon, and other social sources.