Skip to main content
Mallory
HighExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2020-0688: Microsoft Exchange Server Validation Key Remote Code Execution

Published Feb 11, 2020 · Updated 11 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days1 mention · peak 1 in a dayToday
CVSS8.8High · v3.1
EPSS100.0%100th percentile
CISA KEVYesAdded Nov 3, 2021
In the wildActivePer CISA KEV
Vendor
Microsoft Corporation
IdentifiersCVE-2020-0688CWE-502

CVE-2020-0688 is an authenticated remote code execution vulnerability affecting Microsoft Exchange Server 2010, 2013, 2016, and 2019. Vulnerable installations use shared, fixed cryptographic keys for the Exchange Control Panel (ECP) rather than generating unique keys during installation. An attacker with authenticated ECP access can use the known validation key and session-specific parameters to construct a correctly signed, malicious ASP.NET ViewState. Deserialization of this attacker-controlled object executes arbitrary code as SYSTEM. Although originally labeled a memory corruption vulnerability, the exploitation mechanism involves non-unique cryptographic keys and unsafe deserialization.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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 compromises the Exchange server with SYSTEM privileges, threatening the confidentiality, integrity, and availability of hosted email and server resources. Attackers can collect mailbox contents, deploy web shells or other malware, modify server configuration, and use the server as a foothold for persistence and lateral movement. Exploitation for remote execution and email collection has been observed in multiple state-sponsored campaigns.

Mitigation

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

Restrict network access to ECP to trusted administrative networks or VPN connections and protect internet-accessible ECP with multifactor authentication. These measures reduce exposure but do not replace patching; MFA should not be assumed to prevent exploitation when an attacker already has authenticated access. Monitor ECP requests for suspicious ViewState submissions, Exchange Control Panel application errors, and unexpected child processes of IIS worker processes. Segment externally accessible Exchange services from internal systems.

Remediation

Patch, then assume compromise.

Install Microsoft's security updates addressing CVE-2020-0688, released on February 11, 2020, or applicable superseding updates. Historical update targets include Exchange Server 2010 SP3 Update Rollup 30 and security updates for Exchange Server 2013 CU23, Exchange Server 2016 CU14/CU15, and Exchange Server 2019 CU3/CU4; installing a listed cumulative update alone should not be treated as confirmation that the security fix is present. Investigate previously exposed servers for compromise. If compromise is detected, isolate affected servers, remove malicious artifacts and persistence mechanisms, reset affected credentials, and investigate potential lateral movement.

Public exploits

Exploits

14 exploits validated by Mallory's analysis. Hidden: 5 rejected by Mallory's analysis as not a working exploit; 2 not yet analyzed, such as Exploit-DB entries.

View more in app →
exchange_ecp_viewstate.rbThis repository contains a single Metasploit exploit module targeting Microsoft Exchange Server's Control Panel (ECP) web interface, specifically exploiting CVE-2020-0688. The exploit leverages a .NET ViewState deserialization vulnerability caused by static cryptographic keys (validationKey and decryptionKey) across Exchange installations. By authenticating to the ECP web interface and crafting a malicious ViewState payload, the module achieves remote code execution as NT AUTHORITY\SYSTEM. The exploit requires valid credentials and network access to the Exchange server's ECP interface (typically over HTTPS/443). The module supports both direct command execution and staged payloads via Metasploit's command stager. The code is written in Ruby and is structured as a standard Metasploit module, with all logic contained in a single file. The main endpoints targeted are '/owa/auth.owa' for authentication and '/ecp/default.aspx' for the ViewState attack. This exploit is operational and can be used to gain full control over vulnerable Exchange servers.Disclosed Feb 11, 2020 · Framework: metasploit · ruby · networkWeaponizedCVE-2020-0688This repository contains a Python exploit script (CVE-2020-0688.py) targeting Microsoft Exchange Server instances vulnerable to CVE-2020-0688, a ViewState deserialization vulnerability. The exploit requires valid Exchange user credentials and interacts with the /owa/auth.owa endpoint to authenticate and obtain a session cookie. It then extracts the VIEWSTATEGENERATOR value from the Exchange Control Panel (ECP) page and prompts the user to generate a malicious ViewState payload using ysoserial.net. The payload is then delivered to the /ecp/default.aspx endpoint, resulting in arbitrary command execution on the server. The repository is structured simply, with the main exploit logic in a single Python file and a README providing usage instructions. The exploit is operational, requiring some manual steps (payload generation) but automating authentication and payload delivery.Jumbo-WJB · Disclosed Feb 26, 2020 · python · networkOperationalcve-2020-0688This repository provides a set of Python scripts to exploit CVE-2020-0688, a remote code execution vulnerability in Microsoft Exchange Server (2010-2019) due to a fixed cryptographic key in ViewState. The main files are: - 'cve-2020-0688.py': Automates login to Exchange OWA, retrieves necessary session and ViewState information, and helps craft a ysoserial.NET ViewState payload for command execution. The user must supply a ysoserial-generated payload for exploitation. - '0688-detect.py': Similar to the main exploit, but appears to focus on detection and basic exploitation, including version checks and a hardcoded payload for testing vulnerability. - 'ExchangeCmdPy.py': A more advanced exploit script that, after authentication and exploitation, provides an interactive shell (via the GiveMeShell class) to execute commands, run shellcode, install a memory shell, and remove persistence artifacts. It automates the full exploitation chain and post-exploitation interaction. - 'requirements.txt': Lists dependencies (pycryptodome, requests, urllib3). The exploit requires valid Exchange credentials and network access to the target's OWA and ECP endpoints. It leverages the ViewState deserialization flaw to execute arbitrary commands, and can provide persistent access via a memory shell. Several Exchange ECP endpoints are referenced for exploitation. The repository is operational and provides both exploitation and post-exploitation capabilities.Ridter · Disclosed Feb 27, 2020 · python · networkOperationalCVE-2020-0688_EXPThis repository provides an exploit for CVE-2020-0688, a remote code execution vulnerability in Microsoft Exchange Server due to a fixed cryptographic key in the ViewState parameter. The main exploit script, CVE-2020-0688_EXP.py, is a Python tool that automates the exploitation process. It authenticates to the target Exchange server's OWA (Outlook Web App) interface using provided credentials, retrieves necessary session and ViewState information, and then generates a malicious ViewState payload using ysoserial.NET (included in the repository). The payload can execute arbitrary system commands on the server. The script supports both encrypted and unencrypted payloads. The README provides usage instructions and lists several example vulnerable endpoints under the /ecp/ path. The repository also includes documentation and configuration files for ysoserial.NET, which is used to generate the serialized payloads. The exploit requires valid credentials and network access to the Exchange server's ECP endpoints. The overall structure is straightforward: one main Python exploit script, a README, and supporting files for ysoserial.NET.Yt1g3r · Disclosed Feb 27, 2020 · python · networkOperationalcve-2020-0688This repository contains a Python exploit script (cve-2020-0688.py) targeting Microsoft Exchange Server's CVE-2020-0688 vulnerability. The exploit leverages ysoserial.exe to generate a malicious .NET ViewState payload containing an arbitrary system command, which is then sent to the Exchange Control Panel (ECP) endpoint via a crafted URL. The script requires the user to specify the target Exchange URL, a command to execute, and a valid ASP.NET session ID. The default payload writes a file to the target's C: drive, demonstrating successful code execution. The repository also includes documentation files, .xml files related to serialization libraries, and a configuration file for ysoserial.exe. The exploit is operational and demonstrates remote code execution capabilities against vulnerable Exchange servers.truongtn · Disclosed Feb 28, 2020 · python · networkOperationalCVE-2020-0688This repository contains a Python exploit script (CVE-2020-0688.py) targeting Microsoft Exchange Server 2016 and 2019 instances vulnerable to CVE-2020-0688. The exploit requires valid domain credentials and interacts with the Exchange server's /owa/auth.owa and /ecp/default.aspx endpoints over HTTPS. It uses ysoserial.exe (included in the Release directory) to generate a malicious .NET ViewState payload that, when delivered to the server, results in remote code execution of arbitrary system commands. The script is operational and automates the authentication, payload generation, and exploitation process. The other files in the repository are .xml documentation/configuration files and are not directly involved in the exploit process.youncyb · Disclosed Feb 28, 2020 · python · networkOperationalCVE-2020-0688This repository contains operational exploit and detection tools for CVE-2020-0688, a critical deserialization vulnerability in Microsoft Exchange Server's MachineKeySection. The main files are: - ExchangeDetect.cs: A C# tool that authenticates to a target Exchange server using provided credentials, then crafts and sends a malicious __VIEWSTATE parameter to /ecp/default.aspx to detect if the server is vulnerable. It checks for a custom response header (X-ZCG-TEST) to confirm exploitation. - RemoteStub.cs: A C# web shell stub that can be deployed to a compromised server. It receives encrypted payloads via the __SCROLLPOSITION parameter, decrypts them, and can execute commands, run shellcode, or return the process architecture. It returns results in a hidden __VIEWSTATE field. - README.md: Provides build and usage instructions for the tools, including command-line options for detection and exploitation (command execution, shellcode injection, architecture detection). The exploit requires valid Exchange credentials and network access to the target's OWA and ECP endpoints. The tools are capable of both detecting the vulnerability and, with the related ExchangeCmd tool (not included in the provided files), achieving remote code execution. The endpoints targeted are the standard Exchange OWA and ECP URLs over HTTPS. The code is written in C# and is operational, providing real exploitation capabilities for CVE-2020-0688.zcgonvh · Disclosed Mar 1, 2020 · csharp · networkOperationalcve-2020-0688-webshell-upload-techniqueThis repository contains a Python exploit script targeting Microsoft Exchange servers vulnerable to CVE-2020-0688, a .NET deserialization vulnerability. The exploit requires valid Exchange credentials and interacts with the server's /owa/auth.owa and /ecp/default.aspx endpoints to authenticate and leak necessary session and viewstate information. It then uploads an ASPX webshell to /ecp/HybridLogout.aspx, allowing the attacker to execute arbitrary system commands via the webshell's 'cmd' parameter. The script is operational, providing an interactive shell for command execution. The repository consists of a README and a single Python exploit script, with the main entry point being 'fuckchina_v2.py'. No hardcoded IPs or domains are present; endpoints are relative to the user-supplied Exchange server URL.w4fz5uck5 · Disclosed Jun 12, 2020 · python · networkOperationalCVE-2020-0688This repository contains a PowerShell exploit script (CVE-2020-0688.ps1) targeting the Microsoft Exchange Server ViewState deserialization vulnerability (CVE-2020-0688). The exploit leverages the fact that all vulnerable Exchange installations use the same static cryptographic keys for ViewState, allowing an authenticated attacker to craft a malicious ViewState payload (using ysoserial.net) that is deserialized by the server, resulting in remote code execution as SYSTEM. The script requires the attacker to provide the Exchange ECP URL, valid credentials, the command to execute, and the path to ysoserial.exe. It automates the login process, retrieves necessary session and ViewState parameters, generates the payload, and triggers the exploit by sending a crafted request to the /ecp/default.aspx endpoint. The repository also includes a README with detailed usage instructions and a GPLv3 license file. The main attack vector is network-based, requiring access to the Exchange web interface and valid credentials. The endpoints of interest are /owa/auth.owa (for authentication) and /ecp/default.aspx (for payload delivery).MrTiz · Disclosed Jan 4, 2021 · powershell · networkOperationalCVE-2020-0688-GUIThis repository is a C# WPF GUI tool for exploiting CVE-2020-0688, a remote code execution vulnerability in Microsoft Exchange Server. The project consists of a Visual Studio solution with a main application in 'CVE-2020-0688-GUI'. The GUI allows the user to specify a target Exchange server (without the protocol prefix), provide valid credentials, and choose between executing a command or loading a shellcode binary. The tool enforces that only one mode (command or shellcode) can be used at a time. The exploit logic is triggered via the 'EXPLOIT' button, which instantiates an 'ExchangeExploit' object (not included in the provided files, likely part of a dependency or omitted code) to perform the attack. The result of the exploitation attempt is displayed in the GUI. The repository is not part of a framework and is a standalone operational exploit tool. The README provides usage instructions and credits the original author of the command-line version. The only fingerprintable endpoint in the code is the example 'mail.nasa.gov', used as a placeholder for the target Exchange server address.W01fh4cker · Disclosed May 9, 2024 · csharp · xaml · networkOperationalCVE-2020-0688This repository is an exploit for CVE-2020-0688, a remote code execution vulnerability in Microsoft Exchange Server due to fixed cryptographic keys in ViewState. The main exploit logic is implemented in 'exploit.py', which automates authentication to OWA, checks for vulnerability, and leverages ysoserial.net (ysonet.exe) to generate a malicious ViewState payload. The exploit allows the attacker to execute arbitrary commands, upload files, and obtain a reverse shell on the target Exchange server. The attacker must provide valid credentials and host a web server for payload delivery. The 'script.bat' file is a base64-encoded PowerShell script that establishes a reverse shell using netcat. The repository structure is straightforward: 'exploit.py' (main exploit), 'script.bat' (reverse shell payload), and 'README.md' (usage instructions). The exploit targets Exchange servers accessible over the network and requires the attacker to modify configuration parameters for their environment.tvdat20004 · Disclosed Aug 4, 2025 · python · batch · networkOperationalcve-2020-0688This repository provides a proof-of-concept exploit for CVE-2020-0688, a remote code execution vulnerability in Microsoft Exchange Server's ECP (Exchange Control Panel) due to improper handling of ViewState. The repository contains two files: a README.md with usage instructions and a Python script (exploit.py) that automates the login process to the Exchange OWA/ECP interface. The script attempts to authenticate with provided credentials, extract the __VIEWSTATEGENERATOR and ASP.NET_SessionId values, and then constructs a ysoserial.net command to generate a malicious ViewState payload. The payload is designed to trigger a DNS request (as a demonstration of code execution) to an attacker-controlled domain. The exploit is not fully functional and is marked as a mockup requiring further development and a test environment. The main attack vector is network-based, targeting the Exchange web interface. Notable endpoints include the ECP default.aspx page, the OWA login endpoint (auth.owa), and a DNS domain used for out-of-band verification.random-robbie · Disclosed Feb 25, 2020 · python · networkPoCPSForgot2kEyXCHANGEThis repository contains a PowerShell proof-of-concept exploit for CVE-2020-0688, a vulnerability in Microsoft Exchange Server where all unpatched servers use the same cryptographic keys for ViewState. The main script, PSForgot2kEyXCHANGE.ps1, allows an attacker with valid Exchange credentials to execute arbitrary commands as SYSTEM on a vulnerable Exchange server. The exploit works by authenticating to the server, generating a malicious ViewState payload using ysoserial.net, and sending it to the Exchange Control Panel endpoint. The repository includes a README with usage instructions and a LICENSE file. The only code file is the PowerShell script, which is self-contained but requires ysoserial.net to function. The attack vector is network-based, targeting Exchange servers over HTTP(S), and the script requires the attacker to supply the target server URL, credentials, command to execute, and the path to ysoserial.net.justin-p · Disclosed Mar 4, 2020 · powershell · networkPoCecp_slapThis repository contains a Go-based proof-of-concept exploit for CVE-2020-0688, a remote code execution vulnerability in Microsoft Exchange Server's ECP (Exchange Control Panel) component. The repository consists of three files: a LICENSE, a README.md with detailed usage instructions, and the main exploit code in 'ecp_slap.go'. ecpslap.go implements three main functions: - 'scan': Authenticates to the target Exchange server's ECP endpoint using provided credentials, checks for vulnerability indicators, and saves authentication cookies to 'cookies.txt'. - 'generate': Assists in generating a ysoserial.net ViewState payload for command execution, outputting the appropriate command line for ysoserial.net. - 'exploit': Uses the cookies and the serialized payload to send an authenticated request to the ECP endpoint, triggering code execution on the vulnerable server. The exploit requires valid credentials and targets the ECP endpoint (typically https://<target>/ecp). It leverages ysoserial.net to generate a malicious ViewState payload, which is then delivered to the server to achieve arbitrary command execution. The README provides comprehensive instructions, including manual validation steps and references to official advisories and write-ups. The code is a functional proof-of-concept and does not include weaponized features such as automated payload generation or post-exploitation modules.zyn3rgy · Disclosed Oct 23, 2020 · go · networkPoC
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
FAQ

Frequently asked questions

Is CVE-2020-0688 exploited in the wild?
Yes. As of Nov 5, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 3, 2021.
Is there a public exploit for CVE-2020-0688?
Yes. Mallory tracks 14 public exploits or proofs of concept for CVE-2020-0688, the earliest disclosed Feb 11, 2020.
Is there a patch for CVE-2020-0688?
Install Microsoft's security updates addressing CVE-2020-0688, released on February 11, 2020, or applicable superseding updates. Historical update targets include Exchange Server 2010 SP3 Update Rollup 30 and security updates for Exchange Server 2013 CU23, Exchange Server 2016 CU14/CU15, and Exchange Server 2019 CU3/CU4; installing a listed cumulative update alone should not be treated as confirmation that the security fix is present.
What products are affected by CVE-2020-0688?
Microsoft Corporation Exchange Server.
How severe is CVE-2020-0688?
CVE-2020-0688 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 100.0% (100th percentile) as of Nov 5, 2026.
Activity feed

Recent activity

106 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+72 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

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, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence52Every report linking this CVE to a named adversary.
Associated malware24Malware families linked to this CVE, with evidence and IOCs.
Detection signatures2YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity8Community discussion across Reddit, Mastodon, and other social sources.