CVE-2022-41040: ProxyNotShell: Authenticated SSRF in Microsoft Exchange Server
- Vendor
- Microsoft Corporation
CVE-2022-41040 is an authenticated server-side request forgery vulnerability affecting on-premises Microsoft Exchange Server 2013, 2016, and 2019. Insufficient input filtering in the Autodiscover mechanism allows an attacker with valid low-privilege Exchange credentials to direct requests to the privileged Exchange PowerShell endpoint. It forms the first stage of the ProxyNotShell exploit chain, enabling attackers to reach and trigger the separate remote code execution vulnerability CVE-2022-41082. Microsoft classifies CVE-2022-41040 as an elevation-of-privilege vulnerability. Exploitation was observed in the wild in 2022. Exchange Online is unaffected.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation crosses an Exchange privilege boundary and exposes privileged PowerShell functionality to an authenticated attacker. When chained with CVE-2022-41082, it enables arbitrary code execution in the SYSTEM context, potentially compromising the confidentiality, integrity, and availability of the Exchange server. Observed chained exploitation has supported backdoor deployment, persistence, and lateral movement. Remote code execution should not be attributed to the SSRF flaw alone.
Mitigation
If you can’t patch tonight, do this now.
Until updates can be installed, apply Microsoft's revised ProxyNotShell IIS URL Rewrite or equivalent WAF filtering guidance against decoded request URIs to block malicious Autodiscover-to-PowerShell requests. Restrict external Exchange access through firewall or VPN controls, disable Remote PowerShell for non-administrative users where feasible, and allow-list necessary outbound connections from Exchange servers. These measures reduce exposure but do not replace patching: network restrictions do not prevent exploitation by attackers already inside the network, and ProxyNotShell URL rewrite rules do not block the separate OWASSRF chain. Review IIS logs and endpoint telemetry for suspicious Autodiscover requests and unexpected PowerShell-related execution.
Remediation
Patch, then assume compromise.
Install the applicable Microsoft Exchange security updates released on November 8, 2022, addressing CVE-2022-41040 and CVE-2022-41082, or superseding updates. The fixes are covered by KB5019758 for affected Exchange Server 2013, 2016, and 2019 deployments. Verify successful installation and review exposed servers for evidence of prior exploitation; patching does not remove existing attacker access or persistence. Exchange Online customers require no action for this vulnerability.
Exploits
3 exploits validated by Mallory's analysis. Hidden: 2 rejected by Mallory's analysis as not a working exploit.
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.
References
Frequently asked questions
- Is CVE-2022-41040 exploited in the wild?
- Yes. As of Nov 4, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Sep 30, 2022.
- Is there a public exploit for CVE-2022-41040?
- Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2022-41040, the earliest disclosed Sep 28, 2022.
- Is there a patch for CVE-2022-41040?
- Install the applicable Microsoft Exchange security updates released on November 8, 2022, addressing CVE-2022-41040 and CVE-2022-41082, or superseding updates. The fixes are covered by KB5019758 for affected Exchange Server 2013, 2016, and 2019 deployments.
- What products are affected by CVE-2022-41040?
- Microsoft Corporation Exchange Server.
- How severe is CVE-2022-41040?
- CVE-2022-41040 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 100.0% (100th percentile) as of Nov 4, 2026.
Recent activity
43 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.