CVE-2025-49704: Microsoft SharePoint Server Code Injection RCE (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 code over a network. It forms the remote code execution component of the original ToolShell exploit chain, alongside the spoofing vulnerability CVE-2025-49706. Chained exploitation enables unauthorized access to SharePoint servers and compromise of their content, file systems, and internal configurations. Active exploitation was documented in July 2025. CVE-2025-53770 subsequently addressed a bypass of the original CVE-2025-49704 patch.
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 code execution and access to or alteration of sensitive SharePoint information and configurations. ToolShell intrusions have involved webshell installation, theft of ASP.NET machine keys, malicious IIS module persistence, lateral movement, and Warlock ransomware deployment. Stolen machine keys and installed backdoors can preserve attacker access after patching. These post-exploitation outcomes are associated with the vulnerability chain and are not automatic consequences of CVE-2025-49704 alone.
Mitigation
If you can’t patch tonight, do this now.
Enable SharePoint Antimalware Scan Interface protections according to Microsoft guidance and deploy antivirus and endpoint detection and response on every SharePoint server. If AMSI cannot be enabled, disconnect affected internet-facing servers from service until protections or remediation are available. Restrict external access, segment SharePoint from internal networks, minimize administrative privileges, and update web application firewall and intrusion prevention rules for exploitation patterns. Monitor SharePoint requests, IIS module changes, unexpected web-worker activity, and machine-key access. Discontinue unsupported, publicly exposed SharePoint deployments.
Remediation
Patch, then assume compromise.
Apply the latest applicable Microsoft SharePoint security updates, including fixes for CVE-2025-49704 and the related patch-bypass vulnerability CVE-2025-53770; do not rely solely on the original July 8, 2025 updates. The July emergency updates include KB5002768 for Subscription Edition, KB5002754 and KB5002753 for SharePoint Server 2019, and KB5002760 and KB5002759 for SharePoint Enterprise Server 2016, as applicable. Investigate exposed servers for compromise rather than treating patching as sufficient. Remove malicious payloads and IIS module registrations, rotate ASP.NET machine keys before patching and again afterward, and restart IIS on every affected server. Ensure malicious module registrations are removed before restarting so that backdoors cannot reload.
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 12, 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?
- Apply the latest applicable Microsoft SharePoint security updates, including fixes for CVE-2025-49704 and the related patch-bypass vulnerability CVE-2025-53770; do not rely solely on the original July 8, 2025 updates. The July emergency updates include KB5002768 for Subscription Edition, KB5002754 and KB5002753 for SharePoint Server 2019, and KB5002760 and KB5002759 for SharePoint Enterprise Server 2016, as applicable.
- 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 100.0% (100th percentile) as of Nov 12, 2026.
Recent activity
200 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.