Skip to main content
Mallory
HighExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2025-49704: Microsoft SharePoint Server Remote Code Execution (ToolShell)

Published Jul 8, 2025 · Updated 2 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days12 mentions · peak 5 in a dayToday
CVSS8.8High · v3.1
EPSS9.3%96th percentile
CISA KEVYesAdded Jul 22, 2025
In the wildActivePer CISA KEV
Vendor
Microsoft Corporation
IdentifiersCVE-2025-49704CWE-94 · Improper Control of Generation of…

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Exposure surface

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.

VendorProductType
Microsoft CorporationSharepoint Serverapplication
Microsoft CorporationSharepoint Server 2016application
Microsoft CorporationSharepoint Server 2019application
FAQ

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.
Activity feed

Recent activity

202 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
zeropath blogNews · Nov 23, 2026Brief Summary: CVE-2026-70193, an Authenticated SharePoint Path Traversal Leading to Remote Code Execution - ZeroPath Blog | ZeroPathA vulnerability mentioned as historical context for the July 2025 attacks against on-premises SharePoint servers. The incident involved exploitation by Linen Typhoon, Violet Typhoon, and Storm-2603, with Storm-2603 deploying Warlock ransomware. The article discusses these vulnerabilities collectively rather than specifying each vulnerability's technical mechanism or individual role. Initial patches were reportedly incomplete, and Microsoft stated that later patches resolved the issue. SharePoint Online was not affected.Read more ↗zeropath blogNews · Nov 11, 2026Overview of CVE-2026-80095: Stored Cross-Site Scripting in SharePoint Server Subscription Edition Enabling Elevation of Privilege - ZeroPath Blog | ZeroPathA historical on-premises SharePoint vulnerability discussed as background. The article associates the 2025 vulnerability set with exploitation by Linen Typhoon and Violet Typhoon, and ransomware deployment by Storm-2603. Security updates and incident-specific remediation guidance were issued. These incidents and actor associations do not apply to CVE-2026-80095.Read more ↗zeropath blogNews · Nov 11, 2026Brief Summary: Microsoft SharePoint Server CVE-2026-123390 Authenticated Deserialization Remote Code Execution - ZeroPath Blog | ZeroPathAn earlier SharePoint vulnerability involved in the historical 2025 ToolShell exploitation. The article associates that activity with Linen Typhoon, Violet Typhoon, and Storm-2603, including Storm-2603's deployment of Warlock ransomware. Microsoft issued security updates and additional defensive guidance.Read more ↗zeropath blogNews · Nov 11, 2026Overview of CVE-2026-120002: SharePoint Server Secure Store Incorrect Authorization Leading to Elevation of Privilege - ZeroPath Blog | ZeroPathA SharePoint remote code execution vulnerability mentioned as historical background concerning exploitation of internet-facing servers. The historical investigation attributed espionage activity to Linen Typhoon and Violet Typhoon and separately described Storm-2603 deploying Warlock ransomware after SharePoint compromise. This history does not establish exploitation or attribution for CVE-2026-120002.Read more ↗
+82 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence60Every report linking this CVE to a named adversary.
Associated malware52Malware families linked to this CVE, with evidence and IOCs.
Detection signatures1YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity105Community discussion across Reddit, Mastodon, and other social sources.