SECURITYCRITICALCVE-2026-50522

CVE-2026-50522: Microsoft SharePoint Deserialization of Untrusted Data Vulnerability

Microsoft SharePoint contains a critical deserialization of untrusted data vulnerability allowing unauthenticated attackers to execute arbitrary code over...

Dylan H.

Security Team

July 23, 2026
6 min read
CVE-2026-50522: Microsoft SharePoint Deserialization of Untrusted Data Vulnerability

Actively exploited

Reported as exploited in the wild (e.g. CISA KEV). Patch or mitigate immediately.

Affected Products

  • Microsoft SharePoint Server
  • Microsoft SharePoint Online

Critical Alert

CVE-2026-50522 is a critical deserialization of untrusted data vulnerability in Microsoft SharePoint that allows an unauthorized attacker to execute code over a network. The flaw has been added to CISA's Known Exploited Vulnerabilities (KEV) catalog, indicating confirmed active exploitation in the wild.

CVSS Score: Critical
Exploitation Status: Actively exploited — CISA KEV listed (2026-07-22)
Attack Vector: Network (unauthenticated)
Patch Status: Patch available — apply immediately


Vulnerability Details

Technical Overview

Deserialization of untrusted data vulnerabilities occur when an application deserializes attacker-controlled data without adequate validation. In the case of Microsoft SharePoint, the vulnerability allows a remote, unauthenticated attacker to craft a malicious serialized payload that, when processed by the SharePoint server, results in arbitrary code execution with the privileges of the SharePoint application pool.

AttributeValue
CVE IDCVE-2026-50522
VendorMicrosoft
ProductSharePoint
Vulnerability TypeDeserialization of Untrusted Data (CWE-502)
Attack VectorNetwork
Authentication RequiredNone
User InteractionNone
CISA KEV Date Added2026-07-22

Why Deserialization Flaws Are Dangerous

Deserialization vulnerabilities are among the most severe classes of security flaws because:

  • No authentication required — attackers do not need credentials
  • Code execution as the application — arbitrary commands run under the SharePoint service account
  • Difficult to detect — malicious payloads can appear as legitimate serialized objects
  • Wide exploitation toolkits — frameworks like ysoserial make exploitation accessible

Affected Products

  • Microsoft SharePoint Server (multiple versions — check Microsoft's security advisory for specific build numbers)
  • Microsoft SharePoint Online (Microsoft 365 environments)
  • On-premises SharePoint farm deployments

Risk Assessment

Who Is at Risk?

Any organization running Microsoft SharePoint — whether on-premises or in a hybrid configuration — should treat this as a critical priority. SharePoint is widely deployed across enterprises for document management, intranets, and collaboration workflows, making it a high-value target for ransomware groups and nation-state threat actors.

High-risk environments include:

  • Organizations with internet-facing SharePoint servers
  • Hybrid SharePoint deployments (on-prem + SharePoint Online)
  • Government and critical infrastructure sectors using SharePoint
  • Healthcare and financial services with sensitive SharePoint data

Potential Impact

Successful exploitation could allow attackers to:

  • Execute arbitrary commands on the SharePoint server
  • Access confidential documents and sensitive data stored in SharePoint
  • Move laterally within the corporate network using the SharePoint service account's privileges
  • Deploy ransomware or persistent backdoors
  • Exfiltrate intellectual property, PII, or regulated data

Immediate Actions Required

1. Apply Microsoft's Security Patch (Priority Action)

Review the Microsoft Security Response Center advisory for CVE-2026-50522 and apply all available patches immediately. CISA's KEV listing means federal agencies have a mandatory remediation deadline — private organizations should follow the same urgency.

# Check current SharePoint patch level (on-premises)
(Get-SPFarm).BuildVersion
 
# Verify installed Windows/SharePoint updates
Get-HotFix | Sort-Object -Property InstalledOn -Descending | Select-Object -First 20

2. Restrict SharePoint Access Temporarily

If immediate patching is not possible, implement compensating controls:

# Identify internet-facing SharePoint zones
Get-SPWebApplication | Select-Object -Property DisplayName, Url, IisSettings
 
# Restrict access to internal IP ranges only (emergency WAF rule)
# Apply at the WAF/load balancer level to block external access
# until patching is complete

3. Enable Enhanced Logging and Monitoring

# Enable SharePoint Unified Logging Service (ULS)
Set-SPLogLevel -TraceSeverity High -EventSeverity Error
 
# Review SharePoint ULS logs for anomalous deserialization activity
Merge-SPLogFile -Path "C:\Logs\SharePoint-ULS.log" -Overwrite
 
# Monitor Windows Event Log for suspicious process spawning
Get-WinEvent -FilterHashtable @{
  LogName = 'Security'
  ID      = 4688
} | Where-Object { $_.Message -like "*w3wp.exe*" }

4. Audit Service Account Privileges

Review the SharePoint application pool service account permissions to limit the blast radius if the vulnerability is exploited:

# Review SharePoint service accounts
Get-SPManagedAccount | Select-Object UserName
 
# Check what local groups the service account belongs to
$account = "DOMAIN\SPServiceAccount"
([ADSI]"WinNT://./Administrators").Members() | 
  Where-Object { $_.GetType().InvokeMember("Name","GetProperty",$null,$_,$null) -eq $account }

Detection: Indicators of Compromise

Watch for the following indicators of potential exploitation:

Process Anomalies:

  • Child processes spawned by w3wp.exe (IIS worker process for SharePoint)
  • Unexpected PowerShell, cmd.exe, or scripting engine executions under IIS process context
  • Network connections from SharePoint servers to external IP addresses

Log Indicators:

  • Unusual POST requests to SharePoint endpoints with oversized or binary-encoded bodies
  • HTTP 500 errors followed by unexpected process activity
  • New scheduled tasks or services created on SharePoint servers

File System Indicators:

  • New executables or scripts in SharePoint application directories
  • Webshells placed in _layouts, _vti_bin, or custom SharePoint app directories
# Hunt for webshells in SharePoint directories
Get-ChildItem -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions" `
  -Recurse -Include "*.aspx","*.ashx","*.asmx" |
  Where-Object { $_.LastWriteTime -gt (Get-Date).AddDays(-7) }
 
# Check for unexpected scheduled tasks
Get-ScheduledTask | 
  Where-Object { $_.Date -gt (Get-Date).AddDays(-7) } |
  Select-Object TaskName, TaskPath, State, Date

Verification and Remediation Confirmation

After applying the patch, verify your SharePoint environment is no longer vulnerable:

# Confirm patch version matches Microsoft's patched build
$farmVersion = (Get-SPFarm).BuildVersion
Write-Host "Current SharePoint Build: $farmVersion"
 
# Cross-reference with Microsoft's CVE-2026-50522 advisory for the patched build number
# The patched version should be equal to or higher than what Microsoft specifies
 
# Run Microsoft's Security Compliance Toolkit (if available)
# https://www.microsoft.com/en-us/download/details.aspx?id=55319

Additional Resources


Conclusion

CVE-2026-50522 represents a critical, unauthenticated remote code execution risk in one of the most widely deployed enterprise collaboration platforms in the world. CISA's KEV listing confirms active exploitation — organizations running SharePoint must treat this as an emergency.

Immediate priorities:

  1. Apply Microsoft's security patch without delay
  2. If patching is not immediately possible, restrict external access to SharePoint
  3. Enable enhanced logging and monitor for post-exploitation indicators
  4. Audit SharePoint service account privileges to limit breach impact

Do not wait for scheduled maintenance windows — patch now.