SecPod

Learn Search

Search across all Learn content

← Back to Security Research
One Request, Total Persistence: Inside the SharePoint Flaw Attackers Are Exploiting

One Request, Total Persistence: Inside the SharePoint Flaw Attackers Are Exploiting

A critical SharePoint deserialization flaw, CVE-2026-50522 (CVSS 9.8), is under active exploitation just weeks after its July 2026 patch, following a public PoC. Attackers are using it to steal IIS machine keys in a single request, gaining persistence that survives patching alone. Now on CISA's KEV list, it's the third actively exploited SharePoint flaw in recent months, patch immediately and rotate machine keys.

Jul 24, 2026By Santosh Sethuraman

Summary

CVE-2026-50522 is a critical deserialization of untrusted data vulnerability in Microsoft Office SharePoint Server, patched as part of Microsoft's July 2026 Patch Tuesday update. Microsoft rated the flaw with a CVSS score of 9.8, alongside an exploitability assessment of "Exploitation More Likely." That assessment proved accurate: security vendors have since observed active exploitation against on-premises SharePoint deployments following the release of a public proof-of-concept exploit.

What sets this campaign apart is the post-exploitation objective. Rather than simply proving code execution, attackers are using the flaw to steal SharePoint's IIS machine keys in a single request, credentials that can be reused to forge trusted requests and maintain persistent access long after the underlying vulnerability has been patched. It has also been discovered that patching alone is not sufficient; any exposed machine keys need to be rotated regardless of when a fix is applied.

Vulnerability Details

CVE IDCVSS ScoreEPSS ScoreAffected ProductsVulnerability Type
CVE-2026-50522 9.8 (Critical) 19.72% (97th percentile) SharePoint Server Subscription Edition, SharePoint Server 2019, SharePoint Server 2016 Enterprise (on-premises only) Deserialization of Untrusted Data (CWE-502)

Root Cause Analysis

CVE-2026-50522 stems from unsafe deserialization of untrusted data inside SharePoint Server. Deserialization vulnerabilities in .NET-based applications like SharePoint typically follow a well-established pattern: an application accepts a serialized object, often embedded in a ViewState, Web Part property, or API payload, and reconstructs it into a live .NET object without adequately restricting which types that data is allowed to instantiate. If an attacker can control the serialized bytes reaching that reconstruction step, they can craft a payload that instantiates a chain of otherwise-legitimate .NET classes, a technique commonly known as a "gadget chain," whose side effects during construction or disposal ultimately execute attacker-controlled code in the context of the SharePoint service account.

Microsoft has not published the specific code path or vulnerable component involved, consistent with its standard practice of withholding exploit-enabling detail from public advisories. What is confirmed is the vulnerability class (CWE-502) and the outcome: a request reaching the vulnerable deserialization logic results in arbitrary code execution on the server, with no memory-corruption exploitation reliability concerns of the kind seen in native-code vulnerabilities, deserialization bugs in managed languages tend to be dependable once a working gadget chain exists for the target's SharePoint version.

How CVE-2026-50522 Can Be Exploited

Attack prerequisites

  1. 1. A reachable, on-premises SharePoint Server instance running Subscription Edition, 2019, or 2016 Enterprise.
  2. 2. Per Microsoft's advisory, an attacker account already authenticated with at least Site Owner-level permissions on the target SharePoint site.
  3. 3. Network reachability to the SharePoint web front-end, whether directly internet-facing or reachable from an already-compromised internal position.

Conceptual exploitation flow

  1. 1. The attacker authenticates to the target SharePoint site with Site Owner-level access, either through legitimate credentials, a phished account, or access obtained via a prior intrusion.
  2. 2. Using Site Owner privileges, the attacker reaches a SharePoint feature that accepts and processes serialized .NET object data as part of its normal function, such as a Web Part property, an exposed API endpoint, or a ViewState-processing page. This is the surface the public proof-of-concept targets, since it is the point where attacker-supplied bytes flow directly into SharePoint's deserialization logic.
  3. 3. Rather than inventing a new gadget chain from scratch, the exploit builds on publicly cataloged .NET deserialization gadget chains, well-documented sequences of otherwise-legitimate framework classes whose constructors or destructors can be chained together to execute arbitrary commands once instantiated. The attacker selects a gadget chain compatible with the assemblies loaded in a standard SharePoint installation.
  4. 4. The chosen gadget chain is serialized into the object format SharePoint expects at that endpoint, wrapped with whatever formatting or encoding the target feature requires (for example, Base64 encoding within a ViewState field or a JSON/XML envelope for an API payload), and embedded in an otherwise normal-looking HTTP request to the vulnerable endpoint.
  5. 5. SharePoint deserializes the request without adequately validating which object types it is being asked to reconstruct. As the gadget chain's objects are instantiated, their chained side effects execute the attacker's embedded command, resulting in arbitrary code execution in the context of the SharePoint service account.
  6. 6. With code execution established, observed activity shows attackers immediately issuing a single follow-up request to extract the server's IIS machine keys.
  7. 7. The stolen machine keys let the attacker forge valid ViewState and authentication tokens independent of the original vulnerability, preserving access even after the SharePoint farm is patched, unless the keys themselves are rotated.
Key Observation: Because the persistence mechanism relies on stolen machine keys rather than the vulnerability itself, patching CVE-2026-50522 stops new exploitation attempts but does nothing to revoke access an attacker has already obtained. Any SharePoint farm that was internet-facing and unpatched during the exposure window should be treated as potentially compromised until machine keys are rotated and forensic review is complete.

Impact

Impact AreaDescription
Remote code executionArbitrary code runs in the context of the SharePoint service account, typically with broad access to the underlying server and connected infrastructure.
Persistent access via machine key theftStolen IIS machine keys allow attackers to forge trusted tokens and retain access independently of the original vulnerability, surviving a patch alone.
Collaboration data exposureFull compromise of the SharePoint farm exposes document libraries, site content, and any credentials or sensitive data stored or referenced within it.
Lateral movementA compromised SharePoint server, often deeply integrated with Active Directory and internal services, can serve as a pivot point deeper into the corporate network.
Chained exploitationCISA has observed this flaw exploited alongside other SharePoint CVEs as part of broader intrusion campaigns targeting on-premises deployments.

MITRE ATT&CK Mapping

Technique IDTechnique NameTactic
T1190Exploit Public-Facing ApplicationInitial Access (TA0001)
T1078Valid Accounts (Site Owner-level access required to reach the flaw)Initial Access (TA0001)
T1552Unsecured Credentials (IIS machine key theft)Credential Access (TA0006)
T1550Use Alternate Authentication Material (forged tokens from stolen keys)Defense Evasion (TA0005)
T1546Event Triggered Execution (deserialization-triggered code execution)Privilege Escalation (TA0004)

Mitigation

  1. 1. Apply Microsoft's July 2026 security update immediately.
  2. 2. Rotate IIS machine keys on every SharePoint server, regardless of patch status.
  3. 3. Audit for prior exploitation.
  4. 4. Enable AMSI integration in SharePoint Server 2016 and 2019.
  5. 5. Restrict and monitor Site Owner-level account provisioning.
  6. 6. Limit direct internet exposure of on-premises SharePoint front-ends

Instantly Fix Risks with Saner Patch Management

Saner patch management is a continuous, automated, and integrated software that instantly fixes risks exploited in the wild. The software supports major operating systems like Windows, Linux, and macOS, as well as 550+ third-party applications.

It also allows you to set up a safe testing area to test patches before deploying them in a primary production environment. Saner patch management additionally supports a patch rollback feature in case of patch failure or a system malfunction.

Experience the fastest and most accurate patching software here.

Featured Posts

Open ENCFORGE Ransomware: Anatomy of an AI-Focused Cyber Attack
ENCFORGE Ransomware: Anatomy of an AI-Focused Cyber Attack

CVE Research

ENCFORGE Ransomware: Anatomy of an AI-Focused Cyber Attack

Jul 22, 2026

Open UTA0533 Weaponizes KNUCKLEBALL: Inside the SonicWall SMA Zero-Day Exploitation Chain
UTA0533 Weaponizes KNUCKLEBALL: Inside the SonicWall SMA Zero-Day Exploitation Chain

CVE Research

UTA0533 Weaponizes KNUCKLEBALL: Inside the SonicWall SMA Zero-Day Exploitation Chain

Jul 20, 2026

Open One Email, Full Session Takeover: Inside Zimbra's Critical Classic Web Client Code Execution Flaw
One Email, Full Session Takeover: Inside Zimbra's Critical Classic Web Client Code Execution Flaw

CVE Research

One Email, Full Session Takeover: Inside Zimbra's Critical Classic Web Client Code Execution Flaw

Jul 20, 2026

Open 2026 First quarter attacker campaigns
2026 First quarter attacker campaigns

CVE Research

2026 First quarter attacker campaigns

Jul 17, 2026