Remote Code Execution in Microsoft Web Deploy via CVE-2025-53772
An unauthenticated or low-privilege attacker can achieve remote code execution in Microsoft Web Deploy versions prior to 10.0.2001 by exploiting insecure deserialization of the 'MSDeploy.SyncOptions' HTTP header.
CVE search metadata
CVE search record: CVE-2025-53772. Severity: high. CVSS: 8.8. EPSS: 23.92%. KEV: no. Product: Web Deploy (< 10.0.2001). Brief: Remote Code Execution in Microsoft Web Deploy via CVE-2025-53772. Brief link: https://feed.craftedsignal.io/briefs/2026-09-cve-2025-53772/
Microsoft Web Deploy (msdeploy) versions prior to 10.0.2001 are vulnerable to remote code execution (RCE) due to insecure deserialization of untrusted data (CWE-502). The vulnerability resides in the processing of the 'MSDeploy.SyncOptions' HTTP header, which is passed to a .NET 'BinaryFormatter' for deserialization. By providing a specially crafted serialized object, an attacker can leverage a gadget chain to trigger arbitrary code execution under the context of the service account.
The vulnerability is exploitable via two primary endpoints: the Web Deploy Agent Service ('/MSDEPLOYAGENTSERVICE') on port 80 using NTLM authentication, and the WMSvc service ('/msdeploy.axd') on port 8172 using Basic authentication. Public proof-of-concept code is available, significantly increasing the risk of exploitation. Defenders should verify the version of 'msdeploy.exe' on their IIS servers and prioritize patching to 10.0.2001 or higher.
Attack Chain
- Attacker performs reconnaissance to identify IIS servers exposing the Web Deploy Agent Service (port 80) or WMSvc (port 8172).
- Attacker obtains or identifies low-privilege credentials valid for the targeted service authentication (NTLM or Basic).
- Attacker crafts a serialized .NET payload designed to trigger a TypeConfuseDelegate gadget chain.
- Attacker sends an HTTP POST request to the target endpoint, inserting the malicious payload into the 'MSDeploy.SyncOptions' header.
- The target application's 'BinaryFormatter.Deserialize()' method processes the header, instantiating the malicious object graph.
- The gadget chain execution causes the application process to invoke 'Process.Start' to run arbitrary system commands (e.g., 'cmd.exe').
- Attacker achieves remote code execution, typically resulting in the creation of persistence mechanisms or the execution of further payloads.
Impact
Successful exploitation allows an attacker to execute arbitrary code on the server, potentially leading to full system compromise. Given the service's role in deployment and administration, this can facilitate lateral movement, exfiltration of application data, or the deployment of ransomware. The vulnerability has a CVSS 8.8 score and is actively being targeted with public exploit code.
Recommendation
- Patch Microsoft Web Deploy to version 10.0.2001 or later immediately across all IIS environments.
- Disable the Web Deploy Agent Service and WMSvc if they are not strictly required for business operations.
- Apply the detection rules below to identify exploitation attempts targeting the 'MSDeploy.SyncOptions' header.
- Restrict network access to port 80/8172 endpoints via firewalls to only authorized management subnets.
- Monitor logs for unusual 'cmd.exe' or 'powershell.exe' process spawns originating from the 'msdeploy.exe' process or related IIS worker processes.
Immediate actions
Patch all instances of Microsoft Web Deploy to 10.0.2001 or later
Mitigations
Disable Web Deploy Agent Service if not required
CVE-2025-53772
Detection coverage 1
Detect CVE-2025-53772 Exploitation Attempt
highDetects exploitation attempts against CVE-2025-53772 by identifying suspicious characters or serialized content within the MSDeploy.SyncOptions HTTP header.
Detection queries are available on the platform. Get full rules →