Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2023-29357: JWT Authentication Bypass and Privilege Escalation in Microsoft SharePoint Server 2019

Published Jun 13, 2023 · Updated 12 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days1 mention · peak 1 in a dayToday
CVSS9.8Critical · v3.1
EPSS65.7%99th percentile
CISA KEVYesAdded Jan 10, 2024
In the wildActivePer CISA KEV
Vendor
Microsoft Corporation
IdentifiersCVE-2023-29357CWE-287

CVE-2023-29357 is a critical authentication-bypass and elevation-of-privilege vulnerability in Microsoft SharePoint Server 2019. Improper handling of JSON Web Token (JWT) authentication tokens allows a remote, unauthenticated attacker to submit a forged token and impersonate an authenticated user, potentially obtaining SharePoint administrator privileges. Exploitation requires no user interaction. The vulnerability can be chained with CVE-2023-24955, a separate authenticated code-injection vulnerability, to achieve unauthenticated remote code execution. Active exploitation is confirmed, and CISA added the vulnerability to its Known Exploited Vulnerabilities catalog on January 10, 2024.

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 compromises SharePoint authentication and authorization, potentially granting administrator-level access to the SharePoint environment. This can expose sensitive collaboration data and permit unauthorized data access, theft, and modification of SharePoint resources. When combined with CVE-2023-24955, the resulting exploit chain can execute arbitrary code on the server. Remote code execution is a chained outcome, not a direct capability of CVE-2023-29357 alone. The vulnerability is also listed as known to be used in ransomware campaigns.

Mitigation

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

Enable SharePoint AMSI integration and deploy Microsoft Defender Antivirus throughout the SharePoint farm; Microsoft identifies this combination as protection against the vulnerability. Restrict network access to SharePoint to trusted users and networks where feasible. Monitor SharePoint web traffic for suspicious authentication and API activity, recognizing that legitimate API requests can resemble exploitation attempts. These measures should supplement patching.

Remediation

Patch, then assume compromise.

Apply Microsoft's SharePoint Server 2019 security update released on June 13, 2023, or a subsequent cumulative update that includes the fix. Also apply the May 2023 fix for CVE-2023-24955 to address the documented remote-code-execution chain. Prioritize remediation because exploitation is confirmed.

Public exploits

Exploits

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

View more in app →
sharepoint_dynamic_proxy_generator_auth_bypass_rce.rbThis repository contains a single Metasploit module targeting Microsoft SharePoint Server 2019, specifically exploiting a pre-authentication chain involving CVE-2023-29357 (authentication bypass) and CVE-2023-24955 (remote code execution). The exploit works by first bypassing authentication via a flaw in JWT signature validation, allowing the attacker to impersonate the SharePoint admin. With admin privileges, the module then abuses the SharePoint API to replace the BDCMetadata.bdcm file with a payload, which is subsequently executed by the server, resulting in arbitrary command execution. The module is weaponized, supporting customizable payloads (defaulting to a Meterpreter reverse shell) and includes logic to restore the original file after exploitation. The main attack vector is network-based, targeting the SharePoint HTTP(S) interface. The code is written in Ruby and is structured as a standard Metasploit exploit module, with clear separation of authentication bypass, payload delivery, and cleanup routines. No hardcoded IPs or external domains are present; all endpoints are relative to the target SharePoint server.Disclosed May 1, 2023 · Framework: metasploit · ruby · networkWeaponizedCVE-2023-29357Single-file Python exploit targeting Microsoft SharePoint CVE-2023-29357. The repository contains one operational script, exploit.py, which supports both single-target exploitation and multi-target scanning. The script uses requests sessions, optional threading via ThreadPoolExecutor, progress display via alive_progress, rich console output, and optional LeakIX discovery through leakpy. Core logic is implemented in a SharePoint class: it normalizes the target URL, extracts the hostname, requests /_api/web/siteusers with an empty Bearer token to force a 401 response, parses the WWW-Authenticate header to recover the SharePoint realm, and constructs an audience value using the fixed SharePoint client ID 00000003-0000-0ff1-ce00-000000000000. It then forges unsigned JWT-like tokens using alg:none and claims consistent with the CVE-2023-29357 proof-token bypass technique. These tokens are sent in both Authorization and X-PROOF_TOKEN headers to /_api/web/currentuser to verify impersonation. The visible code shows explicit support for spoofing admin users by iterating over discovered user records and attempting authenticated requests as each one. The script is more than a detector because it actively crafts bypass tokens and attempts authenticated API access; however, it is not heavily weaponized beyond hardcoded token structure and basic scanning workflow. Notable observables include the local proxy http://127.0.0.1:8080, SharePoint REST paths /_api/web/siteusers and /_api/web/currentuser, and output file output.txt. Overall purpose: identify and exploit vulnerable SharePoint instances at scale for authentication bypass and user impersonation.DonVorrin · Disclosed Apr 13, 2026 · python · web · networkOperationalCVE-2023-29357This repository contains a Python proof-of-concept exploit for CVE-2023-29357, a privilege escalation vulnerability in Microsoft SharePoint Server. The main file, 'exploit.py', allows an attacker to impersonate admin users by exploiting an authentication bypass. The script works by first retrieving the SharePoint realm from the '/_api/web/siteusers' endpoint, then crafting a JWT token with 'alg':'none' to spoof admin users and access the '/_api/web/currentuser' endpoint as those users. The script outputs details of admin users with elevated privileges. It supports single-target and mass exploitation modes, including integration with LeakIX for bulk testing (requiring a Pro API key). The repository also includes a 'requirements.txt' for dependencies and a detailed 'README.md' with usage instructions. No RCE or post-exploitation payloads are included; the exploit is focused on privilege escalation and user impersonation. The attack vector is network-based, targeting accessible SharePoint web interfaces.Chocapikk · Disclosed Sep 26, 2023 · python · networkPoCCVE-2023-29357This repository is a C# proof-of-concept exploit for CVE-2023-29357, a pre-authentication privilege escalation vulnerability in Microsoft SharePoint. The main exploit logic is implemented in 'CVE-2023-29357/Program.cs', which is a console application targeting .NET Framework 4.7.2. The exploit works by first making an unauthenticated request to the SharePoint REST API endpoint '/_api/web/siteusers' to extract the authentication 'realm' from the response headers. It then forges JWT tokens with 'alg':'none' and custom claims, allowing the attacker to impersonate any user, including site administrators. These tokens are used in subsequent requests to endpoints such as '/_api/web/currentuser' to verify successful impersonation. The repository includes project and configuration files for building the exploit, as well as a README with usage instructions and references. No hardcoded IPs or domains are present; the target SharePoint URL is provided as a command-line argument. The exploit is a functional PoC and does not include weaponized payloads beyond authentication bypass and user impersonation.LuemmelSec · Disclosed Sep 30, 2023 · csharp · xml · 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
FAQ

Frequently asked questions

Is CVE-2023-29357 exploited in the wild?
Yes. As of Nov 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Jan 10, 2024.
Is there a public exploit for CVE-2023-29357?
Yes. Mallory tracks 4 public exploits or proofs of concept for CVE-2023-29357, the earliest disclosed May 1, 2023.
Is there a patch for CVE-2023-29357?
Apply Microsoft's SharePoint Server 2019 security update released on June 13, 2023, or a subsequent cumulative update that includes the fix. Also apply the May 2023 fix for CVE-2023-24955 to address the documented remote-code-execution chain.
What products are affected by CVE-2023-29357?
Microsoft Corporation Sharepoint Server.
How severe is CVE-2023-29357?
CVE-2023-29357 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 65.7% (99th percentile) as of Nov 16, 2026.
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 signatures4YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity5Community discussion across Reddit, Mastodon, and other social sources.