Skip to content

CVE-2026-65660: Microsoft SharePoint Server ToolPane Web-Part Code Injection Remote Code Execution

Density:
HERMES

HERMES THREAT SCORE & ENTERPRISE COLLABORATION INFRASTRUCTURE RISK

Target: Microsoft SharePoint Server - ToolPane Web Part Processor (w3wp.exe)
Confidence: 98%
94 / 100
CRITICAL

Measures real-world operational relevance, exploit weaponization, and active threat posture.

Dimension Breakdown
Exploitability 19 / 20
Threat Activity 19 / 20
Weaponization 19 / 20
Exposure 18 / 20
Prevalence 19 / 20
Impact 20 / 20
Exploit Maturity 19 / 20
Attack Chain Potential 20 / 20
โš–๏ธ Divergence & Operational Rationale

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.

๐Ÿ•ธ๏ธ Connected Knowledge Graph & Provenance

CVE-2026-65660: Microsoft SharePoint Server ToolPane Code InjectionVULNERABILITY

Connected Nodes: 3
Active Relationships (Outgoing)
→ affectsPRODUCTMicrosoft SharePoint Server
99% VERY_HIGH

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.”

Supporting Verified Evidence:
→ affectsPRODUCTMicrosoft SharePoint Server
98% 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.”

Supporting Verified Evidence:
→ exploitsAGENTIC ATTACK_PATTERNAAP-004: Semantic Tool Poisoning
92% 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.”

Supporting Verified Evidence:

Microsoft SharePoint Server remains the foundational content management, intranet portal, and collaboration backbone across Global 2000 enterprises and government agencies worldwide.

ParameterTechnical SpecificationThreat Context
CVE IdentifierCVE-2026-65660International tracking & CISA KEV catalog
Vulnerability ClassCWE-94: Code InjectionServer-Side Template / ASPX Directive Injection
Target ComponentMicrosoft.SharePoint.WebPartPages.ToolPaneWeb part configuration & rendering pipeline
Execution Contextc:\windows\system32\inetsrv\w3wp.exeSharePoint Application Pool Identity
Authentication BarrierAuthenticated (PR:L, Site Member / Contributor)Easily acquired via credential stuffing or phishing
Affected PlatformsSharePoint Server 2016, 2019, Subscription EditionOn-premises enterprise installations
Remediation ReleaseAugust 2026 Microsoft Security UpdateImmediate cumulative patch deployment required

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.dll
protected 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="pwn

The 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="..." %>

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.


[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.
  1. IIS W3C Logs (C:\inetpub\logs\LogFiles\W3SVC*):
    • Look for HTTP POST requests to ToolPane.aspx or owssvr.dll with status 200/500 and anomalous query strings containing %22 (") or URL-encoded TagPrefix / Namespace directives.
  2. Process Lineage (Windows Event ID 4688 / Sysmon Event ID 1):
    • Consult our guide on Process Lineage Analysis: examine w3wp.exe where CommandLine contains SharePoint. If w3wp.exe spawns cmd.exe, powershell.exe, certutil.exe, or whoami.exe, the SharePoint server has been compromised.
  3. M365 & Cloud Identity Telemetry:

title: Suspicious Process Spawned by SharePoint IIS Worker (CVE-2026-65660)
id: 65660c01-sharepoint-toolpane-rce
status: stable
description: 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-65660
author: Hermes Codex Detection Engineering
date: 2026-09-26
logsource:
category: process_creation
product: windows
detection:
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: selection
level: critical
tags:
- attack.execution
- attack.t1059.001
- cve.2026-65660

  1. Apply Security Updates Immediately: Deploy the August 2026 SharePoint Cumulative Update (CU) across all SharePoint farm servers (Subscription Edition, 2019, and 2016).
  2. Execute PSConfig: Run the SharePoint Products Configuration Wizard (psconfig -cmd upgrade -inplace b2b) on every farm member to ensure schema and binary synchronization.
  3. Restrict Page Editing Privileges: Restrict permissions allowing users to add or customize web parts on public-facing or extranet site collections.
  4. Deploy AppLocker / WDAC Rules: Block w3wp.exe from spawning child processes (cmd.exe, powershell.exe) using Windows Defender Application Control (WDAC).
  5. Rotate Farm Service Account Credentials: If exploitation artifacts are identified, immediately rotate SharePoint Farm service credentials and Kerberos tickets across Active Directory.