The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2022-41040

CVE-2022-41040: Microsoft Exchange Server Privilege Escalation

CVE-2022-41040 is a privilege escalation vulnerability in Microsoft Exchange Server that allows attackers to gain elevated system privileges. This article covers the technical details, affected versions, impact, and mitigation.

Published: February 25, 2026

CVE-2022-41040 Overview

CVE-2022-41040 is a Server-Side Request Forgery (SSRF) vulnerability in Microsoft Exchange Server that allows authenticated attackers to elevate privileges. This vulnerability, commonly known as "ProxyNotShell," enables attackers with valid credentials to remotely trigger the flaw and potentially chain it with other vulnerabilities for remote code execution. The vulnerability exists in the Exchange Server's Autodiscover endpoint, where improper handling of requests allows attackers to abuse the server's ability to make requests on behalf of the user.

Critical Impact

This vulnerability is actively exploited in the wild and has been added to CISA's Known Exploited Vulnerabilities Catalog. Authenticated attackers can exploit this SSRF flaw to gain elevated privileges on vulnerable Exchange servers, potentially leading to complete server compromise when chained with CVE-2022-41082.

Affected Products

  • Microsoft Exchange Server 2013 Cumulative Update 23
  • Microsoft Exchange Server 2016 Cumulative Update 22 and Cumulative Update 23
  • Microsoft Exchange Server 2019 Cumulative Update 11 and Cumulative Update 12

Discovery Timeline

  • October 3, 2022 - CVE-2022-41040 published to NVD
  • October 30, 2025 - Last updated in NVD database

Technical Details for CVE-2022-41040

Vulnerability Analysis

CVE-2022-41040 is a Server-Side Request Forgery (SSRF) vulnerability classified under CWE-918. The flaw resides in Microsoft Exchange Server's handling of Autodiscover requests. When an authenticated attacker crafts a specially malformed request to the Autodiscover endpoint, they can force the Exchange server to make arbitrary requests to internal resources or backend services that should not be directly accessible.

This vulnerability is particularly dangerous because it can be chained with CVE-2022-41082, a remote code execution vulnerability in Exchange's PowerShell backend. The combination of these two vulnerabilities, dubbed "ProxyNotShell," allows attackers to first bypass frontend access controls using the SSRF (CVE-2022-41040) and then execute arbitrary code via the PowerShell backend (CVE-2022-41082).

The attack requires valid Exchange credentials but does not require administrative privileges, making it exploitable by any authenticated user within the organization or by attackers who have compromised low-privilege credentials.

Root Cause

The root cause of CVE-2022-41040 lies in insufficient validation of user-supplied input within the Autodiscover endpoint of Microsoft Exchange Server. The vulnerability is similar to the earlier ProxyShell vulnerabilities but uses a different URL path pattern to bypass the mitigations Microsoft had previously deployed. The Exchange Server fails to properly sanitize and validate URLs in certain request parameters, allowing attackers to manipulate the server into making requests to arbitrary internal endpoints.

Attack Vector

The attack is network-based and can be executed remotely by any authenticated user. The attacker sends a specially crafted HTTP request to the vulnerable Exchange Server's Autodiscover endpoint. The malicious request contains a manipulated URL parameter that causes the server to forward the request to an internal backend service, specifically targeting the PowerShell remoting endpoint when chained with CVE-2022-41082.

The exploitation involves sending requests to paths like /autodiscover/autodiscover.json with carefully crafted query parameters that exploit the SSRF condition. The attacker leverages this to access internal services that would normally be inaccessible from the network, bypassing Exchange's security boundaries.

Detection Methods for CVE-2022-41040

Indicators of Compromise

  • HTTP requests to /autodiscover/autodiscover.json containing suspicious query strings with @ characters followed by internal paths
  • Requests containing patterns like /autodiscover/autodiscover.json?@evil.com/path or similar URL manipulation attempts
  • Unusual PowerShell activity originating from the Exchange Server's w3wp.exe process
  • Presence of webshells or suspicious files in Exchange directories following exploitation

Detection Strategies

  • Monitor IIS logs for requests to the Autodiscover endpoint containing abnormal URL patterns, particularly those with embedded @ symbols and paths to internal services
  • Implement network detection rules for HTTP requests matching ProxyNotShell exploitation patterns targeting Exchange servers
  • Enable enhanced logging on Exchange servers and forward logs to SIEM for correlation with known attack indicators
  • Deploy endpoint detection and response (EDR) solutions to identify post-exploitation activities such as spawned processes from IIS worker processes

Monitoring Recommendations

  • Configure alerting for any HTTP requests to Exchange Autodiscover endpoints containing suspicious URL encoding or path traversal attempts
  • Monitor Exchange Server processes for unusual child process creation, particularly PowerShell processes spawned by w3wp.exe
  • Implement file integrity monitoring on Exchange installation directories to detect webshell deployment
  • Review authentication logs for credential usage patterns that may indicate compromised accounts being used for exploitation

How to Mitigate CVE-2022-41040

Immediate Actions Required

  • Apply the latest Microsoft security updates for Exchange Server immediately, as patches are available in the November 2022 Patch Tuesday release
  • If patching is not immediately possible, implement the URL Rewrite mitigation rule provided by Microsoft to block exploitation attempts
  • Audit authentication logs for evidence of compromise and investigate any suspicious activity
  • Consider restricting remote PowerShell access and reviewing Exchange service configurations

Patch Information

Microsoft has released security updates to address CVE-2022-41040 as part of the November 2022 Patch Tuesday release cycle. Organizations should apply the latest cumulative updates for their respective Exchange Server versions. Detailed patch information and download links are available through the Microsoft Security Update Guide. Additional technical details can be found in the Microsoft Security Advisory and the CERT Vulnerability Note VU#915563.

Workarounds

  • Implement Microsoft's recommended URL Rewrite rule to block malicious requests targeting the Autodiscover endpoint with suspicious patterns
  • Disable remote PowerShell access for non-administrative users if not required for business operations
  • Implement network segmentation to limit access to Exchange Server management interfaces
  • Consider placing Exchange servers behind a web application firewall (WAF) with rules to detect and block ProxyNotShell exploitation attempts
bash
# IIS URL Rewrite Rule (add to web.config in the Autodiscover directory)
# This blocks requests containing the malicious pattern used in exploitation
# Navigate to: %ProgramFiles%\Microsoft\Exchange Server\V15\FrontEnd\HttpProxy\owa\web.config
# Add the following URL Rewrite rule to block exploitation attempts:
# Pattern to block: .*autodiscover\.json.*\@.*Powershell.*
# Action: Abort Request

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechMicrosoft Exchange

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability94.19%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • CWE-918
  • Technical References
  • Packet Storm Remote Code Execution

  • CERT Vulnerability ID 915563

  • SecPod November 2022 Patch Analysis

  • CISA Known Exploited Vulnerabilities Catalog
  • Vendor Resources
  • Microsoft CVE-2022-41040 Update

  • Microsoft Security Advisory CVE-2022-41040
  • Related CVEs
  • CVE-2025-64666: Microsoft Exchange Server Privilege Escalation

  • CVE-2022-41080: Exchange Server Privilege Escalation Flaw

  • CVE-2021-34523: Exchange Server Privilege Escalation Flaw

  • CVE-2024-21410: Microsoft Exchange Server Privilege Escalation
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English