SharePoint CVE-2025-53770 and CVE-2025-53771: Patch and Response Guide

CVE-2025-53770 (remote code execution through unsafe deserialization) and CVE-2025-53771 (a spoofing flaw used to bypass authentication) let attackers take over on-premises SharePoint Server without logging in. Both were exploited in the wild in July 2025, and once a Metasploit module and public proof-of-concept code appeared, exploitation became easy for anyone.

Jul 25, 2025 - 10:00
Updated: 
105.1k

Cyber Threats, Scams & Online Safety in Cybersecurity & Ethical Hacking · News & analysis

Security Tools, Authorized Labs & CTFs

SharePoint CVE-2025-53770 and CVE-2025-53771: Patch and Response Guide

Quick answer: CVE-2025-53770 (remote code execution through unsafe deserialization) and CVE-2025-53771 (a spoofing flaw used to bypass authentication) let attackers take over on-premises SharePoint Server without logging in. Both were exploited in the wild in July 2025, and once a Metasploit module and public proof-of-concept code appeared, exploitation became easy for anyone. To respond: install Microsoft's July 2025 or later security updates for SharePoint Server Subscription Edition, 2019 or 2016; enable AMSI in Full Mode with Defender Antivirus; rotate the ASP.NET machine keys and restart IIS; then hunt for web shells and suspicious activity. SharePoint Online in Microsoft 365 was not affected.

Key takeaways

  • Affected: SharePoint Server Subscription Edition, 2019 and 2016 (on-premises).
  • Patching is necessary but not sufficient; stolen machine keys must be rotated.
  • SharePoint 2010 and 2013 are out of support and received no fix.
  • Public exploit code means any internet-facing unpatched server should be assumed compromised.
  • CISA added CVE-2025-53770 to its Known Exploited Vulnerabilities catalogue.

Table of Contents

What Do the Two CVEs Do?

CVETypeRole in the attack
CVE-2025-53771Spoofing (path traversal in authentication)Reach the ToolPane endpoint without logging in
CVE-2025-53770Deserialization of untrusted dataRun code on the server

They are variants of CVE-2025-49706 and CVE-2025-49704, fixed earlier in July 2025, that bypassed those fixes. The chain is known as ToolShell. For who exploited it and the Microsoft MAPP question, see our analysis of the MAPP leak question.

Which Versions Need Which Action?

ProductAction
SharePoint Server Subscription EditionInstall the latest security update, then rotate keys
SharePoint Server 2019Install the latest security update, then rotate keys
SharePoint Enterprise Server 2016Install the latest security update, then rotate keys
SharePoint 2010 and 2013Out of support; disconnect from the internet and migrate
SharePoint Online (Microsoft 365)Not affected

Microsoft's customer guidance lists the KB numbers for each product.

What Are the Response Steps in Order?

  1. Reduce exposure: if you cannot patch immediately, remove the server from the internet.
  2. Patch: install the security updates on every SharePoint server in the farm and run the configuration wizard.
  3. Enable AMSI: turn on AMSI integration in Full Mode for each web application and keep Defender Antivirus (or an AMSI-compatible product) running.
  4. Rotate machine keys:
    # SharePoint Management Shell, for each web application
    Set-SPMachineKey -WebApplication https://sharepoint.example.com
    Update-SPMachineKey -WebApplication https://sharepoint.example.com
    # then on every SharePoint server
    iisreset.exe
    Central Administration's Machine Key Rotation timer job is an alternative.
  5. Hunt for compromise (next section).
  6. Document actions and times for audit and any regulator reporting, such as CERT-In's six-hour rule in India.

How Do You Hunt for Compromise?

# Known web shell names in LAYOUTS folders
Get-ChildItem "C:\Program Files\Common Files\microsoft shared\Web Server Extensions\*\TEMPLATE\LAYOUTS" `
  -Recurse -Include spinstall*.aspx, *.aspx -ErrorAction SilentlyContinue |
  Where-Object LastWriteTime -gt (Get-Date "2025-07-01") |
  Select-Object FullName, LastWriteTime

# IIS logs: POST requests to ToolPane.aspx
Select-String -Path "C:\inetpub\logs\LogFiles\W3SVC*\*.log" -Pattern "POST /_layouts/1[56]/ToolPane.aspx"

# Unusual child processes of the IIS worker (needs process creation logging, event 4688)
Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4688} -MaxEvents 5000 |
  Where-Object { $_.Message -match 'w3wp.exe' -and $_.Message -match 'powershell.exe|cmd.exe' }

Also review Microsoft Defender alerts for SharePoint, and the indicators in Microsoft's 22 July blog and the CISA alert.

What Does a Public Metasploit Module Change?

In late July 2025, a Metasploit module for the ToolShell chain was published, alongside other public proof-of-concept code. That turns a vulnerability used by skilled groups into one any attacker can use with a few commands, and internet-wide scanning follows quickly. For defenders it means the window for patching closes: any internet-facing server unpatched after that point should be treated as likely compromised, not just vulnerable. Authorised penetration testers can use the module to confirm patching in their own environments.

What If You Find Signs of Compromise?

  • Isolate the server from the network but preserve memory and disk evidence.
  • Assume credentials stored on or used by the server are exposed; reset service account passwords.
  • Rotate machine keys again after cleanup, and check other servers for lateral movement.
  • Consider rebuilding the server from known-good media.
  • Engage incident response support; see the phases of digital forensics.

WebAsha's incident response training covers web shell hunting on Windows servers.

References

Frequently Asked Questions

A deserialization flaw in on-premises SharePoint Server that allows remote code execution, exploited in July 2025.

A spoofing flaw used to bypass authentication and reach the vulnerable ToolPane endpoint.

No. Only on-premises SharePoint Server Subscription Edition, 2019 and 2016 were affected.

No. You must also rotate the ASP.NET machine keys and restart IIS, because attackers stole those keys.

It is out of support and received no fix. Disconnect it from the internet and migrate.

It makes exploitation easy for anyone, so unpatched internet-facing servers should be assumed compromised.

spinstall0.aspx and variants in the SharePoint LAYOUTS folders, plus other recently created .aspx files.

Yes. Microsoft said AMSI in Full Mode with Defender Antivirus blocks unauthenticated exploitation.

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Wow Wow 0
Sad Sad 0
Angry Angry 0
Vaishnavi

Vaishnavi is a skilled tech professional at the Ethical Hacking Training Institute in Pune, responsible for managing and optimizing the technical infrastructure that supports advanced cybersecurity education. With deep expertise in network security, backend operations, and system performance, she ensures that practical labs, online modules, and assessments run smoothly and securely. Her behind-the-scenes contributions play a vital role in delivering a seamless and secure learning experience for aspiring ethical hackers.