BACK TO BLOGS Back to Press Releases

SharePoint RCE under active exploitation

Written by:

ThreatLocker Threat Intelligence

Written by:

SharePoint vulnerabilities could allow for remote code execution

CVE-2026-50522 and CVE-2026-58644 are critical deserialization vulnerabilities in on-premise hosted Microsoft SharePoint, which allow for attacker remote code execution.  

CVE-2026-50522 has a 9.8 severity rating and is now under exploitation, according to researchers.

The CVE-2026-50522 vulnerability is the result of insufficient validation before deserializing user provided data within the SessionSecurityTokenHandler class. This is part of the Windows Identity Foundation token-processing framework used by .NET applications to read, serialize, and deserialize SessionSecurityToken objects.

On a high level, exploitation of the of the vulnerability is as follows:

  • An authenticated attacker sends a specially crafted request with constructed data to an unpatched SharePoint server.
  • The data reaches the SharePoint authentication or session-token processing path.
  • SessionSecurityTokenHandler interprets the supplied data as a serialized object or token.
  • Inadequate type or content validation permits attacker-controlled object processing.
  • A usable .NET gadget or related execution path causes code to run in the SharePoint server context.

Potential impact resulting from successful exploitation may range from arbitrary command or assembly execution, deployment of webshells or other persistence mechanisms, access to SharePoint content databases and configuration material, theft of application-pool, farm or service account credentials, credential or token forgery, and lateral movement into systems accessible or connected to the SharePoint farm.  

When used in tandem with other vulnerabilities, it is entirely possible for an attacker to execute code in the context of the SharePoint service account.

The CVE-2026-58644 vulnerability leverages SharePoint’s network facing server-side request processing and allows attackers to craft and send malicious serialized data to a vulnerable processing path. Due to a flaw in validation from a vulnerable class (both of which are undisclosed), this malicious data is accepted and deserialized.

When SharePoint accepts and reconstructs the request, it’s reconstructing attacker-controlled object graphs. The resulting deserialized data allows attackers to obtain server-side code execution, enabling malicious activities such as data exfiltration, delivery of additional malware, and persistence within an organization.

It should be noted that privileges of at least Site Owner are required for these exploits, which is one level of privilege above a site member or visitor. Although there are several levels of privilege above Site Owner, this exploit would allow execution on the local server under the context held by the SharePoint process.

Additional emphasis should be placed on theft of IIS or ASP.NET machine keys. These keys may enable attackers to generate authentication or application-state material that the server accepts as legitimate.  

Patching the vulnerabilities is an excellent mitigation tactic, however, patching doesn’t necessarily remove the persistence mechanism if the keys have already been compromised.

Affected versions of SharePoint

CVE-2026-58644

  • Microsoft SharePoint Server Subscription Edition
    • Earlier than: 16.0.19725.20384
  • Microsoft SharePoint Server 2019
    • Earlier than: 16.0.10417.20153
  • Microsoft SharePoint Enterprise Server 2016
    • Earlier than: 16.0.5556.1005

CVE-2026-50522

  • Microsoft SharePoint Server Subscription Edition
    • Earlier than: 16.0.19725.20434
  • Microsoft SharePoint Server 2019
    • Earlier than: 16.0.10417.20175
  • Microsoft SharePoint Enterprise Server 2016
    • Earlier than: 16.0.5561.1001

Security Patches available for:

  • Microsoft SharePoint Server Subscription Edition
    • Build number: 16.0.19725.20434
    • KB5002891
  • Microsoft SharePoint Server 2019
    • Build number: 16.0.10417.20175
    • KB5002883
  • Microsoft SharePoint Enterprise Server 2016
    • Build number: 16.0.5561.1001
    • KB5002891

It is recommended to immediately apply the latest cumulative updates for SharePoint Server (2016, 2019, Subscription Edition).

Recommendations For ThreatLocker Partners

Organizations with Zero Trust Endpoint Firewall or Zero Trust Network Access (ZTNA) should restrict access to on-premise SharePoint servers to only ThreatLocker-secured or explicitly approved devices.

No items found.

Start your path to stronger defenses

Start your trial

Try ThreatLocker free for 30 days and experience full Zero Trust protection in your own environment.

Book a demo

Schedule a customized demo and explore how ThreatLocker aligns with your security goals.

Ask an expert

Just starting to explore our platform? Find out what ThreatLocker is, how it works, and how it’s different.