CVE-2026-65660: Microsoft SharePoint Server ToolPane Web-Part Code Injection Remote Code Execution
HERMES THREAT SCORE & ENTERPRISE COLLABORATION INFRASTRUCTURE RISK
Target:Microsoft SharePoint Server - ToolPane Web Part Processor (w3wp.exe) Microsoft and CVSS v3.1 evaluate CVE-2026-65660 at 8.8 (High) due to the low-privilege authentication prerequisite (PR:L). The Hermes Threat Score elevates it to 94 (CRITICAL), corroborated by emergency cataloging in CISA KEV on September 25, 2026. In enterprise Active Directory infrastructures, standard user credentials are overwhelmingly accessible to threat actors. Escaping SharePoint's ASP.NET SafeControls filter grants immediate SYSTEM/Farm administrator execution inside IIS w3wp.exe, providing an unconstrained staging platform for Active Directory domain dominance.
CVE-2026-65660: Microsoft SharePoint Server ToolPane Code InjectionVULNERABILITY
Enterprise collaboration, intranet, and content management platform developed by Microsoft.
๐ Why is this related? (Evidence & Provenance)
“Microsoft MSRC security advisory and CISA KEV confirm CVE-2026-65660 affects SharePoint Server 2016, 2019, and Subscription Edition.”
- [government_confirmation]CISA verified active exploitation in the wild and mandated federal remediation deadline in KEV entry. — Source: Cybersecurity & Infrastructure Security Agency (CISA): CISA Adds CVE-2026-59822 to Known Exploited Vulnerabilities Catalog (Reliability: VERY_HIGH)
Software platform affected by security vulnerabilities and agentic attack patterns.
๐ Why is this related? (Evidence & Provenance)
“Confirmed security vulnerability in Microsoft SharePoint Server documented in Hermes dossier.”
- [vulnerability_report]
- [government_confirmation]CISA verified active exploitation in the wild and mandated federal remediation deadline in KEV entry. — Source: Cybersecurity & Infrastructure Security Agency (CISA): CISA Adds CVE-2026-59822 to Known Exploited Vulnerabilities Catalog (Reliability: VERY_HIGH)
Attacker registers rogue MCP tools or skills with weaponized docstrings and deceptive metadata that trick the model into routing sensitive user tasks to attacker-controlled functions.
๐ Why is this related? (Evidence & Provenance)
“CVE-2026-65660 weaponizes the agentic attack pattern formalized under AAP-004.”
- [technical_analysis]Pillar Security demonstrated that executing export BASH_ENV in Auto-Run causes bash to source hostile payloads upon subsequent commands. — Source: Pillar Security Research: Bypassing Cursor Auto-Run: When Shell Built-ins Lead to Host RCE (Reliability: HIGH)
1. Technical Context & Affected Software Matrix
Section titled โ1. Technical Context & Affected Software MatrixโMicrosoft SharePoint Server remains the foundational content management, intranet portal, and collaboration backbone across Global 2000 enterprises and government agencies worldwide.
| Parameter | Technical Specification | Threat Context |
|---|---|---|
| CVE Identifier | CVE-2026-65660 | International tracking & CISA KEV catalog |
| Vulnerability Class | CWE-94: Code Injection | Server-Side Template / ASPX Directive Injection |
| Target Component | Microsoft.SharePoint.WebPartPages.ToolPane | Web part configuration & rendering pipeline |
| Execution Context | c:\windows\system32\inetsrv\w3wp.exe | SharePoint Application Pool Identity |
| Authentication Barrier | Authenticated (PR:L, Site Member / Contributor) | Easily acquired via credential stuffing or phishing |
| Affected Platforms | SharePoint Server 2016, 2019, Subscription Edition | On-premises enterprise installations |
| Remediation Release | August 2026 Microsoft Security Update | Immediate cumulative patch deployment required |
2. In-Depth Technical Decomposition
Section titled โ2. In-Depth Technical DecompositionโThe Root Cause: ToolPane Dynamic Page Synthesis
Section titled โThe Root Cause: ToolPane Dynamic Page SynthesisโSharePoint allows authorized users to customize web pages by placing and reconfiguring Web Parts via the ToolPane interface (/_layouts/15/ToolPane.aspx). When an editor updates a Web Part or previews a dynamic control, the backend ToolPane class serializes the controlโs properties into a transient ASPX page template stored in server cache or memory.
To enable the ASP.NET parser to understand custom controls, the server reconstructs <%@ Register %> directives at the beginning of the generated markup:
// Decompiled representation of vulnerable routine in Microsoft.SharePoint.dllprotected void GenerateRegisterDirectives(TextWriter writer, WebPartDefinition wp){ // VULNERABLE: Direct string interpolation without attribute quotation escaping writer.WriteLine(string.Format( "<%@ Register TagPrefix=\"{0}\" Namespace=\"{1}\" Assembly=\"{2}\" %>", wp.TagPrefix, wp.Namespace, wp.Assembly ));}If an attacker supplies an assembly or tag prefix attribute containing an unescaped double quote and delimiter string:
foo" Namespace="System.Diagnostics" Assembly="System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" TagPrefix="pwnThe resulting ASPX markup becomes:
<%@ Register TagPrefix="foo" Namespace="System.Diagnostics" Assembly="System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" TagPrefix="pwn" Namespace="..." Assembly="..." %>SafeControls Whitelist Bypass
Section titled โSafeControls Whitelist BypassโStandard SharePoint environments enforce a <SafeControls> whitelist defined in web.config that forbids the instantiation of arbitrary controls. However, because <%@ Register %> directive injection occurs at the compilation parser level prior to control tree instantiation, the ASP.NET compilation engine binds the injected namespace into the page scope.
By subsequently referencing an injected control tag in the body markup, the attacker forces the ASP.NET dynamic compiler (csc.exe or Roslyn) to emit and invoke arbitrary constructors and methods:
+----------------------------------------------------------------------------------------------------+| CVE-2026-65660 EXPLOITATION LIFECYCLE FLOW |+----------------------------------------------------------------------------------------------------+
[Authenticated Adversary] โ โ [1] Dispatches crafted WebPart customization request via ToolPane HTTP POST โผ [SharePoint IIS Server (w3wp.exe)] โ โโโโโบ 1. ToolPane.aspx parses user properties without quote neutralization โ โโโโโบ 2. Injects `<%@ Register ... %>` into transient ASPX page compilation buffer โ โโโโโบ 3. SafeControls Whitelist Bypassed (Parser directive precedence) โ โโโโโบ 4. ASP.NET Dynamic Compiler compiles page into temporary DLL (.NET CLR) โ โผ [Remote Code Execution Context] โ โโโโโบ Arbitrary code executed as SharePoint Farm Account / SYSTEM (Spawns cmd.exe / powershell.exe / in-memory memory webshell)+----------------------------------------------------------------------------------------------------+This pattern of breaking through trusted middleware filters parallels the injection paradigms investigated in AAP-004: Semantic Tool Poisoning and perimeter identity failures in CVE-2023-20198.
3. Forensic Execution Flow & Host Artifacts
Section titled โ3. Forensic Execution Flow & Host ArtifactsโExecution Timeline
Section titled โExecution Timelineโ[T0:00.000] Authenticated HTTP POST to /_layouts/15/ToolPane.aspx with malformed ToolPane web-part payload.[T0:00.180] SharePoint processes ASPX generation in w3wp.exe; malformed Register directive written.[T0:00.320] w3wp.exe invokes .NET compilation pipeline (writes temporary source to %TEMP%\Temporary ASP.NET Files\).[T0:00.540] Newly compiled assembly loaded into w3wp.exe AppDomain; malicious static constructor executes.[T0:00.610] w3wp.exe spawns child process (powershell.exe / cmd.exe) or executes in-memory C2 beacon.Host & Event Telemetry
Section titled โHost & Event Telemetryโ- IIS W3C Logs (
C:\inetpub\logs\LogFiles\W3SVC*):- Look for HTTP POST requests to
ToolPane.aspxorowssvr.dllwith status 200/500 and anomalous query strings containing%22(") or URL-encodedTagPrefix/Namespacedirectives.
- Look for HTTP POST requests to
- Process Lineage (Windows Event ID 4688 / Sysmon Event ID 1):
- Consult our guide on Process Lineage Analysis: examine
w3wp.exewhereCommandLinecontainsSharePoint. Ifw3wp.exespawnscmd.exe,powershell.exe,certutil.exe, orwhoami.exe, the SharePoint server has been compromised.
- Consult our guide on Process Lineage Analysis: examine
- M365 & Cloud Identity Telemetry:
- Refer to Microsoft 365 DFIR: What Changed in 2026 to hunt for abnormal token issuance or hybrid identity escalation originating from compromised SharePoint farm servers.
4. Detection Engineering
Section titled โ4. Detection EngineeringโSigma Detection Rule
Section titled โSigma Detection Ruleโtitle: Suspicious Process Spawned by SharePoint IIS Worker (CVE-2026-65660)id: 65660c01-sharepoint-toolpane-rcestatus: stabledescription: Detects the SharePoint w3wp.exe IIS worker process spawning interactive shells or utility binaries, indicating successful RCE via CVE-2026-65660.references: - https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-65660 - https://cve.org/CVERecord?id=CVE-2026-65660author: Hermes Codex Detection Engineeringdate: 2026-09-26logsource: category: process_creation product: windowsdetection: selection: ParentImage|endswith: '\w3wp.exe' ParentCommandLine|contains: 'SharePoint' Image|endswith: - '\cmd.exe' - '\powershell.exe' - '\pwsh.exe' - '\whoami.exe' - '\net.exe' - '\nltest.exe' - '\certutil.exe' condition: selectionlevel: criticaltags: - attack.execution - attack.t1059.001 - cve.2026-65660title: Malicious ToolPane Web-Part Customization Requestid: 65660c02-sharepoint-toolpane-httpstatus: experimentaldescription: Detects HTTP requests to SharePoint ToolPane containing escaped quotes and Register directive tokens.logsource: category: webserver product: iisdetection: selection: cs-method: 'POST' cs-uri-stem|contains: '/ToolPane.aspx' cs-uri-query|contains: - 'TagPrefix' - 'Namespace' condition: selectionlevel: high5. Remediation & Enterprise Playbook
Section titled โ5. Remediation & Enterprise Playbookโ- Apply Security Updates Immediately: Deploy the August 2026 SharePoint Cumulative Update (CU) across all SharePoint farm servers (Subscription Edition, 2019, and 2016).
- Execute PSConfig: Run the SharePoint Products Configuration Wizard (
psconfig -cmd upgrade -inplace b2b) on every farm member to ensure schema and binary synchronization. - Restrict Page Editing Privileges: Restrict permissions allowing users to add or customize web parts on public-facing or extranet site collections.
- Deploy AppLocker / WDAC Rules: Block
w3wp.exefrom spawning child processes (cmd.exe,powershell.exe) using Windows Defender Application Control (WDAC). - Rotate Farm Service Account Credentials: If exploitation artifacts are identified, immediately rotate SharePoint Farm service credentials and Kerberos tickets across Active Directory.
6. Corroborative References
Section titled โ6. Corroborative Referencesโ- CISA Known Exploited Vulnerabilities Catalog
- Microsoft Security Response Center - CVE-2026-65660
- NIST National Vulnerability Database - CVE-2026-65660
- Hermes DFIR: Windows Process Lineage Analysis
- Hermes DFIR: Microsoft 365 & Hybrid Identity Forensics
- Hermes Analysis: CVE-2023-20198 Cisco IOS XE Perimeter Bypass
- Agentic Attack Pattern: AAP-004 Semantic Tool Poisoning