Skip to content
RCE Write-up Advanced

SharePoint Vulnerabilities (CVE-2025-53770 & CVE-2025-53771): Everything You Need to Know

Two zero-day vulnerabilities in on-premises SharePoint, CVE-2025-53771 (authentication bypass via a forged Referer header) and CVE-2025-53770 (unsafe deserialisation leading to remote code execution), were chained together in the ToolShell exploit. Attackers could gain unauthenticated access, execute code, and deploy a web shell to extract machine keys and achieve persistent remote code execution.

Hila Ramati Follow

Published on wiz.io

Microsoft has issued urgent guidance following the discovery of two zero-day vulnerabilities affecting on-premises Microsoft SharePoint servers, identified as CVE-2025-53770 and CVE-2025-53771. These vulnerabilities are actively being exploited in the wild.

Hila Ramati, on wiz.io

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 authentication bypass stems from SharePoint trusting a spoofable Referer header, and the remote code execution stems from deserialising untrusted data without validation.

Impact

Attackers could achieve unauthenticated remote code execution and persistent access to on-premises SharePoint servers, with active exploitation observed in the wild.

What the attacker needed

On-premises SharePoint server; internet-facing server; no authentication required

The fix

Microsoft released emergency patches for SharePoint Server Subscription Edition and SharePoint Server 2019, and recommended rotating ASP.NET machine keys and enabling AMSI if patching is not immediately possible.

How it was found

  1. Send a POST request to the ToolPane endpoint with a crafted Referer header to bypass authentication.
  2. Submit a malicious payload in the POST body that exploits insecure deserialisation, leading to command execution.
  3. Drop an ASPX web shell into a SharePoint layouts directory for persistent access.
  4. Use the web shell to extract the ValidationKey and DecryptionKey from the machineKey configuration.
  5. Craft malicious ViewState payloads signed with the stolen keys to achieve remote code execution.

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.

SharePoint is a Microsoft product for sharing documents and building internal websites. Two flaws were found: one let an attacker pretend to be logged in without a password, and the other let them run their own commands on the server. Together, these allowed an attacker to take full control of the server and install a hidden backdoor.

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 Hila Ramati

View all

2 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.