SOC Prime Bias: High

18 Sep 2026 15:17 UTC

CVE-2026-45659: SharePoint Deserialization Flaw Enables RCE

Author Photo
SOC Prime Team linkedin icon Follow
CVE-2026-45659: SharePoint Deserialization Flaw Enables RCE
shield icon

Detection stack

  • AIDR
  • Alert
  • ETL
  • Query

Summary

CVE-2026-45659 is a critical deserialization of untrusted data vulnerability affecting Microsoft SharePoint Server. An authenticated user with low-level Site Member privileges can exploit the flaw to achieve remote code execution (RCE) within the IIS application pool identity. The issue belongs to a broader class of SharePoint deserialization vulnerabilities that can ultimately lead to farm-wide compromise.

Investigation

The investigation identifies a deserialization sink within the ASP.NET stack, likely involving handlers under _vti_bin/, _api/, or /_layouts/15/. Researchers note that exploitation can rely on gadget chains such as ObjectDataProvider to trigger arbitrary command execution. The potential impact is increased by the elevated privileges typically assigned to the SharePoint application pool identity.

Mitigation

The primary mitigation is to apply the May 2026 SharePoint security updates, including KB5002863, KB5002870, or KB5002868, and verify patched builds through Central Administration. Previously exposed environments should also rotate the MachineKey to prevent continued exploitation through forged ViewState. For long-term risk reduction, organizations should consider migrating eligible workloads to SharePoint Online.

Response

If anomalous child processes such as cmd.exe or powershell.exe are spawned by w3wp.exe, responders should immediately isolate the affected SharePoint front-end server. Incident response should include a full farm audit, MachineKey rotation, and investigation for potential webshells within SharePoint directories. Teams should also confirm that all farm components are fully updated by running psconfig.exe.

Attack Flow

We are still updating this part.

Detections

Possible Web Server or WebApp Exploitation [Windows] (via cmdline)

SOC Prime Team
18 Sep 2026

Suspicious Microsoft IIS Server Behaviour (via cmdline)

SOC Prime Team
18 Sep 2026

Possible Webshell Creation In Microsoft Exchange / Sharepoint Directories (via file_event)

SOC Prime Team
18 Sep 2026

Detection of New ASPX Files in SharePoint Directories for Potential Webshell Deposits [Windows File Event]

SOC Prime AI Rules
18 Sep 2026

Detect Anomalous Child Processes by w3wp.exe [Windows Process Creation]

SOC Prime AI Rules
18 Sep 2026

## Simulation Execution

  • Attack Narrative & Commands: The adversary has identified a deserialization flaw in a SharePoint instance. To mask their activity and leverage the identity of the IIS worker process, they attempt to execute w3wp.exe via a command prompt session. This is a “reverse” execution pattern often seen in sophisticated payload delivery where the attacker attempts to interact with the web service process directly to perform in-memory manipulation or to proxy commands through a trusted service identity. The goal is to trigger the rule’s detection of w3wp.exe being spawned by cmd.exe.

  • Regression Test Script:

    # Simulation Script: Triggering anomalous w3wp.exe child process creation
    # This script mimics an attacker spawning w3wp.exe from a cmd.exe context.
    
    Write-Host "[+] Starting Simulation: Spawning w3wp.exe from cmd.exe" -ForegroundColor Cyan
    
    $w3wpPath = "C:WindowsSystem32inetsrvw3wp.exe"
    
    # Check if w3wp.exe exists to avoid script failure
    if (Test-Path $w3wpPath) {
        # Use cmd.exe to launch w3wp.exe. 
        # Note: This will likely fail to actually run w3wp properly as it's a service,
        # but the PROCESS CREATION telemetry will be generated.
        Start-Process "cmd.exe" -ArgumentList "/c `"$w3wpPath`"" -WindowStyle Hidden
        Write-Host "[+] Command sent. Check Sysmon/Security logs for w3wp.exe child of cmd.exe" -ForegroundColor Green
    } else {
        Write-Host "[-] Error: w3wp.exe not found at $w3wpPath. Is IIS installed?" -ForegroundColor Red
    }
  • Cleanup Commands:

    # Cleanup: No persistent files were created, but ensure any orphaned processes are closed.
    Stop-Process -Name "w3wp" -ErrorAction SilentlyContinue
    Stop-Process -Name "cmd" -ErrorAction SilentlyContinue
    Write-Host "[+] Cleanup complete." -ForegroundColor Cyan