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-2021-27065

CVE-2021-27065: Microsoft Exchange Server RCE Vulnerability

CVE-2021-27065 is a remote code execution vulnerability in Microsoft Exchange Server that enables attackers to execute arbitrary code on vulnerable systems. This article covers technical details, affected versions, and mitigation.

Published: February 25, 2026

CVE-2021-27065 Overview

CVE-2021-27065 is a remote code execution vulnerability in Microsoft Exchange Server, part of the notorious ProxyLogon attack chain that was actively exploited in the wild. This vulnerability allows an authenticated attacker to write arbitrary files to the server, which can lead to remote code execution. The flaw resides in the Exchange Control Panel (ECP) component and enables attackers to write webshells to accessible directories on the Exchange server.

Critical Impact

This vulnerability has been actively exploited in the wild and is listed in CISA's Known Exploited Vulnerabilities catalog. When chained with CVE-2021-26855 (server-side request forgery), attackers can achieve unauthenticated remote code execution on vulnerable Exchange servers, potentially compromising entire enterprise email infrastructures.

Affected Products

  • Microsoft Exchange Server 2013 (SP1 through Cumulative Update 21)
  • Microsoft Exchange Server 2016 (Cumulative Update 8 through Cumulative Update 19)
  • Microsoft Exchange Server 2019 (RTM through Cumulative Update 8)

Discovery Timeline

  • March 3, 2021 - CVE-2021-27065 published to NVD
  • December 18, 2025 - Last updated in NVD database

Technical Details for CVE-2021-27065

Vulnerability Analysis

CVE-2021-27065 is a post-authentication arbitrary file write vulnerability (CWE-22 - Path Traversal) in Microsoft Exchange Server. The vulnerability exists in the Exchange Control Panel (ECP) functionality, specifically in how it handles Virtual Directory (VDir) configuration operations. An authenticated attacker can manipulate the VDir configuration to write arbitrary content to files on the Exchange server.

This vulnerability is particularly dangerous when combined with CVE-2021-26855, a server-side request forgery (SSRF) vulnerability that allows bypassing authentication. Together, these vulnerabilities form what security researchers dubbed "ProxyLogon" - enabling unauthenticated remote code execution against internet-facing Exchange servers.

The exploitation typically results in webshell deployment, giving attackers persistent access to compromised servers with the privileges of the Exchange service account (often SYSTEM-level access).

Root Cause

The root cause is improper validation of file paths during Virtual Directory configuration export operations in the Exchange Control Panel. The application fails to properly sanitize user-controlled input that influences file write operations, allowing path traversal sequences to write files to arbitrary locations on the file system. This constitutes a classic path traversal vulnerability (CWE-22) where insufficient input validation enables attackers to escape intended directory constraints.

Attack Vector

The attack requires an authenticated session to the Exchange Control Panel, which can be obtained through the companion SSRF vulnerability (CVE-2021-26855) or legitimate credentials. Once authenticated, the attacker:

  1. Accesses the Exchange Admin Center (EAC/ECP)
  2. Manipulates the OAB (Offline Address Book) Virtual Directory configuration
  3. Injects a webshell payload into the external URL field
  4. Triggers a VDir reset operation that writes the malicious content to a web-accessible location
  5. Accesses the deployed webshell for persistent command execution

The exploitation allows attackers to write ASPX webshells to directories served by IIS, providing a backdoor for executing arbitrary commands on the server. Public exploits are available through Packet Storm Security.

Detection Methods for CVE-2021-27065

Indicators of Compromise

  • Presence of unexpected ASPX files in Exchange web directories (particularly C:\inetpub\wwwroot\aspnet_client\ and C:\Program Files\Microsoft\Exchange Server\V15\FrontEnd\HttpProxy\owa\auth\)
  • Webshell files with suspicious names or recent timestamps in IIS directories
  • Modified OAB Virtual Directory external URL configurations containing script content
  • Evidence of China Chopper or similar webshell artifacts in web-accessible directories

Detection Strategies

  • Monitor Exchange IIS logs for POST requests to unusual ASPX files that were recently created
  • Scan Exchange server file systems for known webshell signatures and anomalous ASPX files
  • Review Windows Event Logs for unusual process spawning from w3wp.exe (IIS worker process)
  • Implement file integrity monitoring on Exchange web directories to detect unauthorized file creation
  • Query ECP logs for suspicious Virtual Directory configuration changes

Monitoring Recommendations

  • Enable enhanced Exchange audit logging and review ECP administrative actions regularly
  • Configure alerts for new file creation in Exchange web directories and IIS application folders
  • Monitor network traffic for connections to newly created or suspicious endpoints on Exchange servers
  • Deploy endpoint detection and response (EDR) solutions to identify post-exploitation activities such as webshell access and command execution

How to Mitigate CVE-2021-27065

Immediate Actions Required

  • Apply Microsoft security updates immediately for all affected Exchange Server versions
  • Run the Microsoft Safety Scanner on Exchange servers to detect and remove webshells
  • Search Exchange servers for indicators of compromise including suspicious ASPX files and modified configurations
  • If compromise is detected, consider the server compromised and initiate incident response procedures
  • Restrict internet access to Exchange services where possible until patching is complete

Patch Information

Microsoft released security updates to address this vulnerability on March 2, 2021. Organizations should apply the appropriate cumulative update and security update for their Exchange Server version:

  • Exchange Server 2013: Apply Cumulative Update 23 with the March 2021 security update
  • Exchange Server 2016: Apply Cumulative Update 19 or 20 with the March 2021 security update
  • Exchange Server 2019: Apply Cumulative Update 8 or 9 with the March 2021 security update

Refer to the Microsoft Security Advisory for CVE-2021-27065 for specific patch downloads and installation guidance.

Workarounds

  • Implement URL Rewrite rules to block known exploitation paths to the ECP endpoint
  • Restrict ECP access to trusted internal networks only using firewall rules
  • Disable Unified Messaging and OAB services if not required until patches can be applied
  • Place Exchange servers behind a VPN or implement additional authentication layers for administrative interfaces
bash
# Example: Check for suspicious ASPX files in common webshell locations
# Run on Exchange Server to identify potential webshells

Get-ChildItem -Path "C:\inetpub\wwwroot\aspnet_client" -Recurse -Include *.aspx
Get-ChildItem -Path "C:\Program Files\Microsoft\Exchange Server\V15\FrontEnd\HttpProxy\owa\auth" -Include *.aspx

# Check OAB Virtual Directory configuration for suspicious content
Get-OabVirtualDirectory | Select-Object Server,ExternalUrl | Format-List

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechMicrosoft Exchange

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability94.28%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • CWE-22
  • Technical References
  • Packet Storm RCE Exploit

  • Packet Storm Collector Tool

  • CISA Known Exploited Vulnerability
  • Vendor Resources
  • Microsoft Security Advisory CVE-2021-27065
  • Related CVEs
  • CVE-2020-16875: Microsoft Exchange Server RCE Vulnerability

  • CVE-2021-26858: Microsoft Exchange Server RCE Vulnerability

  • CVE-2021-26857: Microsoft Exchange Server RCE Vulnerability

  • CVE-2021-26855: Microsoft Exchange Server RCE Vulnerability
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