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.
Topic: Cyber Threats, Scams & Online Safety in Cybersecurity & Ethical Hacking · News & analysis
Also covers: Security Tools, Authorized Labs & CTFs
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?
- Which Versions Need Which Action?
- What Are the Response Steps in Order?
- How Do You Hunt for Compromise?
- What Does a Public Metasploit Module Change?
- What If You Find Signs of Compromise?
- References
What Do the Two CVEs Do?
| CVE | Type | Role in the attack |
|---|---|---|
| CVE-2025-53771 | Spoofing (path traversal in authentication) | Reach the ToolPane endpoint without logging in |
| CVE-2025-53770 | Deserialization of untrusted data | Run 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?
| Product | Action |
|---|---|
| SharePoint Server Subscription Edition | Install the latest security update, then rotate keys |
| SharePoint Server 2019 | Install the latest security update, then rotate keys |
| SharePoint Enterprise Server 2016 | Install the latest security update, then rotate keys |
| SharePoint 2010 and 2013 | Out 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?
- Reduce exposure: if you cannot patch immediately, remove the server from the internet.
- Patch: install the security updates on every SharePoint server in the farm and run the configuration wizard.
- Enable AMSI: turn on AMSI integration in Full Mode for each web application and keep Defender Antivirus (or an AMSI-compatible product) running.
- Rotate machine keys:
Central Administration's Machine Key Rotation timer job is an alternative.# 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 - Hunt for compromise (next section).
- 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
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Wow
0
Sad
0
Angry
0