
The SonicWall Capture Labs threat research team became aware of Plex2Shell, a chain of critical Plex Media Server vulnerabilities tracked as CVE-2026-96652, CVE-2026-96654, CVE-2026-96655 and CVE-2026-96656, assessed their impact, and developed mitigation measures. The flaws are in the Plex Media Server backend. The initial Server-Side Request Forgery (SSRF) requires no authentication, but chaining it to the file write and shell stages requires an authenticated token. Plex2Shell combines SSRF (CWE-918) with Improper Neutralization of Encoded URI Schemes in a Web Page (CWE-84) and External Control of File Name or Path (CWE-73). The CVSS score for each CVE is listed below. Although the individual flaws range from medium to high severity, the complete exploit chain has a CVSS score of 9.8, giving it a standard place in CISA-KEV. Internet exposure of a vulnerable Plex Media Server is a key requirement for exploitation.
Vulnerabilities:
CVE-2026-96652 – CVSS 8.6 – SSRF
CVE-2026-96654 – CVSS 6.9 – URI injection
CVE-2026-96655 – CVSS 5.3 – arbitrary-host SSRF
CVE-2026-96656 – CVSS 5.3 – arbitrary file write
Plex Media Server is a free software application that lets users organize, store, and stream their personal collections of movies, TV shows, music, and photos from a central device to almost any screen. It acts as a private, self-hosted alternative to Netflix or Spotify: instead of paying for cloud storage or streaming subscriptions, users keep their media on their own hardware and use Plex to access it anywhere.
The SSRF flaw is in the backend server, which fails to properly sanitize or validate the protocol parameter. It accepts a full, structured URL (e.g., http://attacker-controlled-site.com) inside this parameter rather than enforcing a strict protocol scheme identifier (e.g., http or https). An attacker can provide any value for X-Plex-Token. The server processes the request anyway and constructs an outgoing HTTP POST request using the attacker-supplied URL structure, resulting in an unauthenticated SSRF.

The root cause of Plex2Shell is not a single software bug but a critical exploit chain of four distinct vulnerabilities in Plex Media Server. By chaining these flaws together, an unauthenticated remote attacker can escalate access from a simple public API request into full Remote Code Execution on the host machine.
The following breakdown shows how the root causes in each phase of the exploit chain culminate in full system compromise:
Phase 1: Unauthenticated Internal Access (The Gateway)

Phase 2: Administrative Token Leakage

Phase 3: Malicious File Write

Phase 4: Code Execution (The Shell)

The following steps trigger the SSRF that starts the Plex2Shell chain:
The attacker locates a vulnerable, internet-facing Plex Media Server listening on port 32400. The attacker then sends an HTTP POST request to the /player/timeline API endpoint.
Normally, Plex endpoints validate incoming requests using a specific security header (X-Plex-Token). However, this endpoint logic contains a verification failure: it accepts any string, even a randomly generated one, as the value of X-Plex-Token. The header must be present, but its value can be anything. This allows an unauthenticated attacker to pass the initial authentication check.
Inside the payload or URI parameters of the POST request, the attacker specifies the configuration for a target player. They manipulate the protocol parameter. Instead of providing a standard protocol indicator like http, they inject a fully qualified, malicious URL pointing either back to the server itself (loopback) or to an external destination.
The server-side application processes the payload. Because it lacks validation or input sanitization on the protocol string, it blindly concatenates the attacker's full URL structure to build the internal outbound HTTP request.
The Plex server initiates a backend outbound connection dictated by the attacker's string. This forces the server to act as a proxy, letting the attacker relay requests to hidden internal services or access local administrative paths on the host. It also starts the rest of the Plex2Shell exploit sequence.

Exploitation of Plex2Shell has two parts. Exploiting the SSRF requires no credentials and no special tooling, only HTTP access to a vulnerable Plex Media Server. An unauthenticated attacker triggers the SSRF by sending a crafted request to the /player/timeline endpoint, setting the protocol parameter to a URL under their control or to an internal service. In response, the Plex server executes an HTTP POST to that location. This allows the attacker to scan internal networks, access cloud instance metadata services, or interact with internal applications that inherently trust requests coming from the Plex host.

After the SSRF, inadequate controls over file names and paths lead to the next set of flaws. By combining the admin token leak with the file write vulnerability, an attacker can achieve arbitrary code execution and a shell on the remote machine, as demonstrated in Figure 8. These flaws require a valid X-Plex-Token.

To ensure SonicWall customers are prepared for any exploitation that may occur due to these vulnerabilities, the following signatures have been released:
| Signature ID | Signature Name |
|---|---|
| IPS: 22567 | Plex Media Server X-Plex-Token SSRF |
| IPS: 22568 | Plex Media Server Arbitrary File Write |
| IPS: 22569 | Plex Media Server URI Improper URI Neutralization |
The risks posed by Plex2Shell can be mitigated or eliminated with the following measures:
Share This Article

An Article By
An Article By
Dhiren Vaghela
Dhiren Vaghela
Dhiren Vaghela has over a decade of experience in the IPS domain, with a strong focus on defensive security. His expertise lies in identifying, analyzing and mitigating vulnerabilities. Dhiren is well-versed in content-based signature writing, scanner-based alert generation and technical blog writing. By leveraging emerging technologies, he has developed numerous IPS signatures across various protocols. Known for his exceptional signature writing skills and collaborative team spirit, Dhiren is a valuable asset in the field of cybersecurity.