Skip to content
RCE Write-up Advanced

CVE-2025โ€“59287 โ€” When your patch server becomes the attack vector ๐Ÿ—ฟ

WSUS deserialises an attacker-supplied AuthorizationCookie without validation, allowing unauthenticated remote code execution as SYSTEM. Attackers can then push malicious updates or pivot within the network.

Aditya Bhatt Follow

Published on systemweakness.com

WSUS is the backbone for distributing Windows updates across many enterprise environments. It allows admins to manage, approve, and deploy updates internally โ€” saving bandwidth and providing central control.

Aditya Bhatt, on systemweakness.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the WSUS web service decrypts and deserialises an untrusted AuthorizationCookie using .NET BinaryFormatter without validating its contents.

Impact

An unauthenticated attacker could run code as SYSTEM on the WSUS server, potentially deploy malicious updates, pivot to domain controllers, or exfiltrate credentials; active exploitation has been observed.

What the attacker needed

Network access to WSUS ports 8530/8531; No authentication required

The fix

Microsoft released an out-of-band patch; if patching is not possible, disable WSUS or block inbound TCP 8530 and 8531.

How it was found

  1. Craft a fake AuthorizationCookie containing a serialised .NET object.
  2. Send the cookie to a vulnerable ASMX endpoint such as SimpleAuthWebService.asmx.
  3. The server deserialises the object, triggering a gadget chain that runs commands as SYSTEM.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

WSUS is a server that distributes Windows updates inside companies. A flaw let anyone send a specially crafted cookie that the server turned into running code, giving the attacker full control of the machine.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Aditya Bhatt

View all

25 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.