Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2026-50522: Unauthenticated deserialization RCE in Microsoft SharePoint Server

Published Jul 14, 2026 · Updated today
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days5 mentions · peak 2 in a dayToday
CVSS9.8Critical · v3.1
EPSS21.6%98th percentile
CISA KEVYesAdded Jul 22, 2026
In the wildActivePer CISA KEV
Vendor
Microsoft Corporation
IdentifiersCVE-2026-50522CWE-502 · Deserialization of Untrusted Data

CVE-2026-50522 is an untrusted-data deserialization vulnerability in on-premises Microsoft SharePoint Server. An unauthenticated endpoint processes specially crafted serialized data, allowing a remote attacker to execute arbitrary code in the SharePoint application's IIS worker-process context. Affected products include SharePoint Enterprise Server 2016, SharePoint Server 2019, and SharePoint Server Subscription Edition; SharePoint Online in Microsoft 365 is unaffected. Public proof-of-concept code and active exploitation have been reported, including attacks that steal ASP.NET machine keys to retain access after patching.

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 can compromise the affected SharePoint application and its accessible resources, allowing theft, modification, or deletion of documents, deployment of malware or web shells, and service disruption. Stolen ASP.NET machine keys can enable forged authentication material or ViewState payloads, supporting impersonation and renewed access after the original vulnerability is patched. The compromised server may also provide a foothold for lateral movement, subject to its service-account privileges and network access.

Mitigation

If you can’t patch tonight, do this now.

Reduce or remove direct internet exposure of on-premises SharePoint. Where external access is necessary, use an authenticated Layer 7 reverse proxy and restrict administrative access and farm communications. Enable SharePoint AMSI request-body scanning where supported, using Full mode where feasible. Monitor for suspicious IIS worker-process child processes, unexpected web shells or IIS modules, abnormal machine-key access, and anomalous authentication or service-account activity. These measures supplement rather than replace patching and compromise assessment.

Remediation

Patch, then assume compromise.

Apply Microsoft's security updates released July 14, 2026, or superseding updates to every affected SharePoint farm server. Fixed builds include SharePoint Enterprise Server 2016 version 16.0.5561.1001, SharePoint Server 2019 version 16.0.10417.20175, and SharePoint Server Subscription Edition version 16.0.19725.20434. For potentially compromised deployments, investigate and remove persistence before rotating SharePoint/IIS ASP.NET machine keys. Reset exposed service-account and privileged credentials, validate identities and access paths, and assess post-exploitation activity. Patching alone does not invalidate previously stolen machine keys.

Public exploits

Exploits

3 exploits validated by Mallory's analysis. Hidden: 3 rejected by Mallory's analysis as not a working exploit.

View more in app →
sharepoint-2026-pocRepository contains a documented proof-of-concept and detection notes for SharePoint /_trust WS-Federation SecurityContextToken deserialization leading to unauthenticated RCE and machine-key theft. Structure is small and focused: README and index.html provide the writeup; detection/hunting.md contains defender-oriented hunting guidance; artifacts/ contains redacted example telemetry; scripts/ contains the actual exploit code. The main exploit capability is in scripts/cve-2026-58644_oob_param.ps1. It is a parameterized PowerShell exploit that builds a PowerShell payload, base64-encodes it for -EncodedCommand, invokes ysoserial.net to generate a BinaryFormatter gadget (default TypeConfuseDelegate), wraps the raw gadget bytes with System.IdentityModel.DeflateCookieTransform, embeds that into a crafted WS-Federation RequestSecurityTokenResponse, and POSTs it to $Target/_trust/default.aspx with wa=wsignin1.0. Capabilities include arbitrary command execution, optional HTTP callback/beaconing, optional file drop, optional diagnostic exfiltration, proxy support, and optional direct powershell execution via --rawcmd to avoid cmd.exe in the process tree. The second exploit, scripts/cve-2026-58664_machinekeys.ps1, is a two-stage PowerShell exploit for in-process machine-key disclosure. It generates two ysoserial payloads: a preamble using ActivitySurrogateDisableTypeCheck and a main payload using ActivitySurrogateSelectorFromFile to compile embedded C# code (KeyDump) inside w3wp.exe. That C# reflects into System.Web.Configuration.MachineKeySection, extracts ValidationKey/DecryptionKey and related settings, clears the HTTP response, and writes the values back between sentinel markers. This is more stealthy than the OOB RCE path because it avoids child process creation and external beaconing. Overall, this is a real exploit repository rather than a detector-only repo. It is not part of a major exploitation framework. The code is operational but still PoC-style: payloads are customizable through parameters, but execution depends on an external ysoserial.net binary and a vulnerable SharePoint deployment. The most fingerprintable target artifact across both scripts is POST traffic to /_trust/default.aspx carrying wa=wsignin1.0 and a RequestSecurityTokenResponse/SecurityContextToken body.WismanSec · Disclosed Jul 26, 2026 · powershell · csharp · web · networkOperationalCVE-2026-50522Repository documents and preserves observed exploitation artifacts for Microsoft SharePoint CVE-2026-50522 rather than providing a standalone exploit script. Structure consists of a README summarizing multiple exploit attempts, eight raw HTTP request captures under http/, and two ASPX webshells under webshells/. The HTTP captures show crafted POST requests to SharePoint trust/authentication endpoints using wa=wsignin1.0 with attacker-controlled wctx and large wresult token blobs containing SecurityContext identifiers, consistent with remote web exploitation of SharePoint authentication/trust handling. README correlates these requests with payload DLL names, hashes, timestamps, source IPs, and notes on behavior. The main offensive capability is post-exploitation on SharePoint: several DLL payloads are described as returning MachineKeys, enabling theft of ASP.NET cryptographic material; others support upload or write a persistent ASPX backdoor. The included webshells confirm intended outcomes. layout2sp.aspx is a compact credential-material disclosure shell that loads System.Web and invokes the non-public MachineKeySection.GetApplicationConfig method, then prints ValidationKey, Validation algorithm, DecryptionKey, Decryption algorithm, and CompatibilityMode. cmRANDOM.aspx is a more feature-rich operator panel titled "Helper Tool" that supports file upload to arbitrary paths, retrieval of MachineKey info, and execution of attacker-supplied Base64/Gzip-wrapped .NET assemblies in memory via Assembly.Load, invoking method GetResult on class G with an optional command parameter. This provides flexible in-memory payload execution and persistence. Overall, this is a real exploit-artifact repository with operational tradecraft: initial remote exploitation via SharePoint trust/auth endpoints, follow-on machine key extraction, optional outbound staging via PowerShell, and deployment of ASPX webshells for persistence and arbitrary code execution.darses · Disclosed Jul 28, 2026 · markdown · text · web · networkOperationalCVE-2026-50522This repository is a standalone Python exploit/scanner for CVE-2026-50522, described as an unauthenticated SharePoint deserialization RCE against the WS-Federation endpoint /_trust/default.aspx. The main file, CVE-2026-50522.py, accepts either a single target or a target list, generates a ysoserial.net BinaryFormatter payload with the TypeConfuseDelegate gadget, compresses and base64-encodes the serialized bytes, wraps them in a SecurityContextToken/RequestSecurityTokenResponse XML structure, and POSTs the result as the wresult parameter to the SharePoint trust endpoint. The embedded command is a PowerShell Invoke-WebRequest to an operator-supplied OOB callback URL, so the exploit confirms code execution via outbound HTTP/DNS-style beaconing rather than an interactive shell. Operationally, the script supports multithreaded mass scanning (10 threads), retries, optional HTTP proxying, disabled TLS verification, and two callback naming modes: path-based and subdomain-based. It analyzes HTTP responses for signs such as login pages, token-related content, auth cookies, redirects to auth flows, AMSI blocking text, and common error codes. Results are aggregated to distinguish potential exploitation, AMSI-interfered cases, and outright failures. Repository structure is simple: one primary Python exploit, one README, and a ysoserial helper directory. The ysoserial directory appears to contain supporting artifacts and sample C# payload sources rather than the full framework source. ExploitClass.cs contains example payload behaviors such as message boxes, file creation, DNS lookups, command execution, and payload download/execution. GhostWebShell.cs is a more advanced auxiliary payload that registers a custom ASP.NET VirtualPathProvider to expose a ghost web shell at a synthetic path ending in ghostfile.aspx. The remaining XML files are documentation/config artifacts for .NET dependencies and do not themselves implement the exploit logic. Overall, this is a real exploit-oriented mass scanner with a hardcoded, basic OOB verification payload, making it more than a detector but less flexible than a full exploitation framework.4minx · Disclosed Jul 25, 2026 · python · csharp · web · networkPoC
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-2026-50522 exploited in the wild?
Yes. As of Nov 27, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Jul 22, 2026.
Is there a public exploit for CVE-2026-50522?
Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2026-50522, the earliest disclosed Jul 25, 2026.
Is there a patch for CVE-2026-50522?
Apply Microsoft's security updates released July 14, 2026, or superseding updates to every affected SharePoint farm server. Fixed builds include SharePoint Enterprise Server 2016 version 16.0.5561.1001, SharePoint Server 2019 version 16.0.10417.20175, and SharePoint Server Subscription Edition version 16.0.19725.20434.
What products are affected by CVE-2026-50522?
Microsoft Corporation Sharepoint Server, Microsoft Corporation Sharepoint Server 2019, and Microsoft Corporation Sharepoint Server 2016.
How severe is CVE-2026-50522?
CVE-2026-50522 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 21.6% (98th percentile) as of Nov 27, 2026.
Activity feed

Recent activity

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

View more in app →
+30 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 evidenceEvery report linking this CVE to a named adversary.
Associated malware1Malware families linked to this CVE, with evidence and IOCs.
Detection signatures2YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity160Community discussion across Reddit, Mastodon, and other social sources.