CVE-2025-49704: Microsoft SharePoint Server Remote Code Execution (ToolShell)
- Vendor
- Microsoft Corporation
CVE-2025-49704 is a code injection vulnerability in on-premises Microsoft SharePoint Server that allows an authorized attacker to execute arbitrary code over a network. It forms the remote code execution component of the original ToolShell exploit chain, paired with the CVE-2025-49706 spoofing vulnerability to enable unauthorized remote compromise. Affected deployments include SharePoint Server 2016, SharePoint Server 2019, and SharePoint Server Subscription Edition. Microsoft released an initial fix on July 8, 2025; CVE-2025-53770 subsequently bypassed that fix's deserialization protections. The original ToolShell vulnerabilities were actively exploited and added to CISA's Known Exploited Vulnerabilities catalog on July 22, 2025.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation permits server-side arbitrary code execution, compromising SharePoint content, the underlying file system, and internal configuration. ToolShell intrusions have involved webshell deployment, theft of ASP.NET machine keys, persistent malicious IIS modules, credential collection, lateral movement, and Warlock ransomware deployment. Stolen machine keys and installed backdoors can preserve attacker access after the vulnerable software is patched.
Mitigation
If you can’t patch tonight, do this now.
Enable SharePoint Antimalware Scan Interface protections in Full Mode and deploy current antivirus and endpoint detection and response protections on all SharePoint servers. If AMSI cannot be enabled, disconnect affected internet-facing servers from service until protection or remediation is available. Restrict public exposure, segment SharePoint from internal networks, minimize administrative and layout privileges, and enforce restrictive outbound access. Update WAF and IPS protections, and monitor for anomalous SharePoint requests, suspicious web-worker activity, unexpected IIS module registrations, and machine-key access. These controls do not replace security updates or compromise remediation.
Remediation
Patch, then assume compromise.
Install the latest applicable Microsoft SharePoint security updates, including fixes for both CVE-2025-49704 and its patch-bypass vulnerability CVE-2025-53770; the July 8, 2025 updates alone do not address the subsequent bypass. Follow-on update baselines include KB5002768 for Subscription Edition, KB5002754 and KB5002753 for SharePoint Server 2019 Core and Language Pack, and KB5002760 and KB5002759 for SharePoint Enterprise Server 2016 and its Language Pack, or applicable superseding updates. Investigate potentially compromised servers rather than relying on patching alone. Remove webshells, key-harvesting artifacts, and malicious IIS modules, including their configuration registrations. Rotate ASP.NET machine keys before patching, apply the updates, rotate the keys again, and restart IIS on every SharePoint server.
Exploits
1 exploit validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2025-49704 exploited in the wild?
- Yes. As of Nov 26, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Jul 22, 2025.
- Is there a public exploit for CVE-2025-49704?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2025-49704, the earliest disclosed Jul 8, 2025.
- Is there a patch for CVE-2025-49704?
- Install the latest applicable Microsoft SharePoint security updates, including fixes for both CVE-2025-49704 and its patch-bypass vulnerability CVE-2025-53770; the July 8, 2025 updates alone do not address the subsequent bypass. Follow-on update baselines include KB5002768 for Subscription Edition, KB5002754 and KB5002753 for SharePoint Server 2019 Core and Language Pack, and KB5002760 and KB5002759 for SharePoint Enterprise Server 2016 and its Language Pack, or applicable superseding updates.
- What products are affected by CVE-2025-49704?
- Microsoft Corporation Sharepoint Server, Microsoft Corporation Sharepoint Server 2016, and Microsoft Corporation Sharepoint Server 2019.
- How severe is CVE-2025-49704?
- CVE-2025-49704 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 9.3% (96th percentile) as of Nov 26, 2026.
Recent activity
202 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.