Massive SharePoint zero-day exploit threatens thousands of companies

Dozens of organizations are being targeted by hackers exploiting a critical zero-day vulnerability in Microsoft SharePoint. The tech giant has released emergency patches.
-
Critical zero-day vulnerability (CVE-2025-53770) is under active exploitation: attackers are targeting on-premises SharePoint instances and gaining full remote access.
-
Almost 10,000 SharePoint servers are exposed to the open internet globally, affecting government agencies and private companies.
-
Government organizations are the most targeted sector.
Hackers are actively exploiting a critical SharePoint remote code execution (RCE) vulnerability to place backdoors on SharePoint servers, which enables them to steal security keys and take over systems.
Dozens of servers have already been compromised, and thousands more are exposed online.
ShadowServer Foundation sees around 9,300 SharePoint IP addresses exposed every day. Most of them are in the US (3,043), followed by the Netherlands (541), Ireland (695), the United Kingdom (541), Canada (495), Germany (338), and other countries.
Microsoft is aware of active attacks. Emergency patches are now available for all supported on-premises SharePoint Server versions: Subscription Edition, 2019, and 2016. SharePoint Online is not affected.
Cybersecurity authorities and Microsoft are urging users to apply the updates immediately. The CISA told federal agencies to disconnect affected products from service if they can’t be properly secured.
Microsoft assesses that the severity of the flaw, labeled CVE-2025-53770, is 9.8 out of 10.
“Deserialization of untrusted data in on-premises Microsoft SharePoint Server allows an unauthorized attacker to execute code over a network,” the advisory reads.
Hackers are compromising dozens of servers
Security firm Eye Security, which was the first to identify and alert about an active large-scale exploitation of the flaw on July 18th, 2025, said that dozens of SharePoint servers have already been compromised. Subsequent waves of exploitation followed since then.
The researchers dubbed the vulnerability chain “ToolShell” and warned that it is systemic, malicious code is dropped automatically, and grants full persistence with zero authentication required. Attackers are bypassing identity protections such as multi-factor authentication (MFA) or single sign-on (SSO).
“Within hours, we identified more than dozens of separate servers compromised,” the researchers write.
“In each case, the attacker had planted a shell that leaked sensitive key material, enabling complete remote access.”
The firm told Bleeping Computer it has identified over 85 servers belonging to 54 organizations, including California state, a private energy sector operator in California, a federal government health organization, a private AI tech company, a private Fintech company in New York state, and a state government organization in Florida.
“These payloads can embed any malicious commands and are accepted by the server as trusted input, completing the RCE chain without requiring credentials,” Eye Security explains.
“Once inside, they can access all SharePoint content, system files, and configurations and move laterally across the Windows Domain,” the firm added.
The theft of cryptographic keys allows attackers to impersonate users or services on the network, even if the server is later patched. Therefore, patching alone will not solve the issue.
Palo Alto Networks also warned that attackers behind the campaign are targeting organizations worldwide by dropping malicious ASPX payloads via PowerShell and stealing machine keys to maintain persistent access. ASPX is an extension for web page files used by Microsoft’s ASP.NET to deliver dynamic content from the server to the browser.
“Patch immediately. These exploits are real, in-the-wild, and pose a serious threat,” Palo Alto Networks said.
Governments targeted the most
It now appears that ToolShell exploitation is older and broader than initially believed. The first signs of the exploitation were identified on July 7th by the Check Point Research team.
“Since then, we’ve confirmed dozens of compromise attempts across government, telecommunications, and software sectors in North America and Western Europe,” the new report reads.
According to Check Point Research, government organizations are the most targeted with 49% of victims falling into this sector. Software and telecommunications sectors absorbed 24% and 9% of attacks respectively.
Attackers are mostly interested in North American and Western European targets. Thirty-two percent of attacks affect US organizations, followed by Portugal (12%), Canada (9%), Belgium (6%), Germany (6%), and other countries.
Three distinct exploit variants
Palo Alto Networks researchers have identified multiple exploit code examples posted on GitHub and three different variations of exploitation activity.
The first variation relies on a command shell command that uses PowerShell to find web.config files. The contents of these configurations are then copied and saved into a single file named debug_dev.js.
The second variation uses IIS Process Worker (w3wp.exe) to run Base64-encoded PowerShell command, which then creates a web shell file named spinstall0.aspx. This file is designed to retrieve server validation and decryption keys.
The third method, nearly identical to the second, writes the spinstall0.aspx file to a different directory and uses single-character variable names in its script, calls a sleep function at the end.
The advisory also lists 11 IP addresses detected participating in the attacks.
The zero-day chain is a variant of a previously patched flaw
Security experts noted that the chains of the two newly disclosed zero-day (CVE-2025-53770 and CVE-2025-53771) are variants of the previously disclosed exploit chain, patched by Microsoft (CVE-2025-49704 and CVE-2025-49706). The two previous flaws were demonstrated during the Berlin Pwn2Own hacking contest, earning the researchers second place.
“The attack begins with a specially crafted POST request sent to a server endpoint. Successful exploitation allows the attacker to upload a malicious webshell (spinstall0.aspx), which is then used to steal the server's unique MachineKey. With these keys, the attacker can forge trusted payloads to execute arbitrary code, establish persistence, and move laterally within a network,” said Lorri Janssen-Anessi, Director of External Cyber Assessments at BlueVoyant.
How to respond to the threat?
Microsoft urges SharePoint admins to only use supported SharePoint Server versions and to apply the security updates immediately.
“Ensure the Antimalware Scan Interface (AMSI) is turned on and configured correctly,” Microsoft also said.
“Enable Full Mode for optimal protection, and deploy Defender Antivirus on all SharePoint servers, which will stop unauthenticated attackers from exploiting this vulnerability.”
If AMSI cannot be enabled, Microsoft recommends considering disconnecting the affected server from the internet until a security update is available.
Microsoft has released security updates that fully protect customers using SharePoint Subscription Edition and SharePoint 2019 against the risks posed by CVE-2025-53770, and CVE-2025-53771. These vulnerabilities apply to on-premises SharePoint Servers only. Customers should apply…
undefined Security Response (@msftsecresponse) July 21, 2025
After applying the latest security updates and/or enabling AMSI, it is critical that customers rotate SharePoint server ASP.NET machine keys and restart IIS (Microsoft’s web server software) on all SharePoint servers.
“Patching alone does not solve the issue – you need to rotate the cryptographic material, allowing all future IIS tokens that can be created by the malicious actor to become invalid,” Eye Security warns.
“Attackers can maintain persistence through backdoors or modified components that survive reboots and updates.”
SharePoint often connects to Outlook, Teams, OneDrive, and other core services. This means that a compromise can lead to data theft, password harvesting, and lateral movement across the network.
The firm recommends isolating or shutting down all affected SharePoint servers – blocking via firewall is not enough, as persistence may already exist.
The US Cybersecurity and Infrastructure Security Agency (CISA) gave federal agencies only one day to apply the patches and secure the affected servers or disconnect them, after including the zero-day flaw to its Known Exploited Vulnerabilities (KEV) catalog.
Additionally, CISA recommends monitoring for ToolPane access by watching for POST requests to “/_layouts/15/ToolPane.aspx?DisplayMode=Edit” and check logs for malicious connections from three IPs: 107.191.58[.]76, 104.238.159[.]149, and 96.9.125[.]147.
However, attackers appear to be using other IPs as well.
“Update intrusion prevention system and web-application firewall rules to block exploit patterns and anomalous behavior,” CISA said.
“Implement comprehensive logging to identify exploitation activity. … Audit and minimize layout and admin privileges.”
What exactly are these SharePoint zero-day vulnerabilities?
There are four new vulnerabilities in total, affecting on-premises SharePoint servers.
The first pair of flaws, known as ToolShell exploit chain (CVE-2025-49704 and CVE-2025-49706), were patched by Microsoft in early July. However, attackers quickly developed exploits capable to bypass the patches.
Two new, more dangerous flaws are tracked as CVE-2025-53770 (a critical 9.8 CVSS score Remote Code Execution flaw) and CVE-2025-53771 (a spoofing flaw).
When chained together, they allow an unauthenticated attacker to take complete control of a server without authentication.
How dangerous is this SharePoint exploit chain?
It is critically dangerous, granting attackers complete and unauthenticated remote control over a vulnerable server.
Security reports confirm that hackers are installing backdoors to maintain persistence even after the servers are patched.
Remote control allows them to execute any command, access all documents, files, and configurations, and use the compromised server as a launchpad to move laterally across the internal network. Cryptographic keys allow hackers to impersonate legitimate users.
Which versions of SharePoint are vulnerable?
On-premises SharePoint Server 2016, 2019, and Subscription Edition are affected. The cloud-based SharePoint Online is not vulnerable.
How widespread is the attack?
Security scans revealed almost 10,000 exposed SharePoint servers that can potentially be susceptible to the attack, if not patched. Dozens of servers were confirmed compromised.
Who’s being targeted?
Targets include government agencies (federal through local), universities, healthcare providers, energy and financial firms, telecoms, and major corporations worldwide.
How do attackers exploit this vulnerability?
The “ToolShell” chain allows unauthenticated remote code execution via a vulnerability in ToolPane.aspx. Attackers then deploy web shells like spinstall0.aspx, extract machine keys, and maintain persistent backdoor access – even after patches.
What updates or patches are available?
Microsoft released emergency patches for SharePoint Server 2019, Server 2016, and Subscription Edition. Only supported SharePoint versions receive the patch.
Does patching completely resolve the issue?
No, stolen cryptographic keys enable attackers to impersonate valid tokens, bypass patches, and allow re-entry to the system. Therefore, additional mitigation steps are required to secure the SharePoint servers.
What urgent actions are recommended?
CISA, security experts, and Microsoft advise disconnecting vulnerable servers until they are fully patched and verified.
• Immediately apply available patches
• Enable antivirus and AMSI on all SharePoint servers
• Use Defender Antivirus in full mode
• Rotate cryptographic keys and other exposed credentials
• Check the logs for known indicators of compromise, conduct in-depth forensic and compromise assessments
• Monitor systems for indicators like suspicious ASPX web shells and PowerShell activity
Updated on July 22nd [10:40 a.m. GMT] with additional information