IIS WebDeploy RCE Vulnerability Gets Public PoC
## Cybersecurity: Microsoft IIS Web Deploy Vulnerability
Cybersecurity: Microsoft IIS Web Deploy Vulnerability
A remote code execution (RCE) vulnerability has been identified in Microsoft's IIS Web Deploy toolchain, known as CVE-2025-53772 . This flaw exists within the unsafe deserialization logic of the msdeployagentservice and msdeploy.axd endpoints, permitting authenticated attackers to execute arbitrary code on susceptible web servers.
IIS Web Deploy (msdeploy) is a Microsoft toolset designed for packaging and synchronizing web applications, IIS configurations, and associated resources across environments. It supports two primary deployment paths: the Web Management Service (WMSvc) accessible via the /msdeploy.axd HTTP(S) endpoint, and the Web Deploy Agent Service (MsDepSvc).
The vulnerability arises from the deserialization of HTTP header values, specifically the MSDeploy.SyncOptions header, which is expected to be a GZip-compressed, Base64-encoded blob. Internally, this header undergoes Base64 decoding, GZip decompression, and deserialization using .NET's BinaryFormatter. This process can be manipulated by an attacker to execute unauthorized commands.
When the MSDeploy.SyncOptions header is inadequately validated, an attacker with authentication can exploit it. The attack involves a crafted serialized object graph, typically utilizing delegates to invoke System.Diagnostics.Process.Start for command execution.
A public GitHub gist illustrates a minimal C# payload generator. This generator creates a SortedSet delegate chain, which is serialized, compressed, and encoded before being sent in the SyncOptions header of an HTTP POST to /msdeploy.axd. If accepted, the server decompresses, deserializes, and executes the command.
A remote code execution (RCE) vulnerability has been identified in Microsoft's IIS Web Deploy toolchain, known as CVE-2025-53772 .
Valid credentials, potentially obtained through credential theft or misconfiguration, allow attackers to deploy backdoors, pivot to other systems, or extract sensitive data. Many enterprises use Web Deploy for automated deployments, increasing the potential window for post-compromise activities.
Microsoft has assigned CVE-2025-53772 a severity score of 8.8 and recommends immediate updates to Web Deploy. Until patches are widely applied, organizations should:
Restrict access to Web Deploy endpoints using IP allow-lists or VPN tunnels. Enforce least-privilege on service accounts used by msdeploy services. Monitor IIS logs for unusual SyncOptions header usage. Consider disabling the MsDepSvc and /msdeploy.axd handlers if unnecessary.
Substituting BinaryFormatter with secure deserialization libraries or custom validation is advised. In high-risk settings, isolating Web Deploy hosts behind deployment bastions can limit lateral movement after compromise.
CVE-2025-53772 highlights the risks of unsafe deserialization and underscores the necessity for robust input validation in deployment pipelines. Organizations must promptly address and secure their Web Deploy infrastructure against this critical RCE threat.
Based on reporting by GBHackers.
