Stack Notes

Plex2Shell: what it looks like on your Linux box

A no-login takeover chain in Plex Media Server is public and in use. Patch first. Then here is how to check a host, and how to work back from a CPU spike to the process that caused it.

Stack Snack Crew

October 20, 2026 · 5 min read

What happened

On September 1, Plex shipped Plex Media Server 1.43.3 and asked everyone to update. CISA's advisory VA-26-266-01 lists five security bugs fixed in build 1.43.3.10861. On October 16, the researcher who reported them, Zach Main, published how four of them chain together. He called it Plex2Shell, and released proof-of-concept code. A day later, a test server running an old Plex version was taken over through the published exploit. The attackers installed a Monero miner and a residential proxy, which lets strangers route their traffic through your home connection.

The chain needs no login. In plain words:

  1. A player endpoint checks only that a token is present, not that it is valid. Any made-up token gets in.
  2. From there, the attacker makes Plex send requests to itself, which reach an internal plugin interface.
  3. That interface can be tricked into sending the server owner's token to a host the attacker controls.
  4. With the owner's token, the attacker changes a transcoder setting so a crafted library file lands in Plex's Codecs folder. The next transcode loads it, and the attacker's code runs as the plex user.

The token theft and the payload download both need your server to reach the internet. A Plex box with Remote Access on and port 32400 forwarded is the easy target.

Patch first

Check your build. Anything before 1.43.3.10861 is affected. Look at the full build number, not just "1.43.3".

# native install (Debian, Ubuntu)
dpkg -s plexmediaserver | grep Version

# Docker (use your container's name)
docker exec plex dpkg -s plexmediaserver | grep Version

Then turn off Remote Access in Plex if you don't need it, and remove any router port forward for 32400.

What a compromise looks like on the host

  • A shell or downloader under Plex. Plex starts its own helpers (Plex Transcoder, Plex Media Scanner, Plex Script Host). A sh, bash, curl or wget underneath them is not normal. ps -eo pid,ppid,user,comm,args --forest shows the tree.
  • CPU you can't explain. A miner keeps cores busy for hours, usually as the plex user. The names seen so far were made up (mylovelyminer, x12345), so don't search by name alone.
  • Library files you didn't expect in Codecs. On a native install the folder is /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Codecs. In Docker it sits under your /config volume. Plex writes codecs itself after every update and on first use, so compare file dates with your last update.
  • Connections you don't recognise. The test server's attackers came from 45.194.92.222, 91.92.40.202 and 176.65.139.228, and the payload came from 217.60.194.116. Addresses change quickly, so treat these as a starting point.

What Stack Snack shows you

Stack Snack watches the host itself, so it sees what the exploit does after it lands, whatever the entry point was.

The CPU, first

The host CPU chart rises. Open the host's Metrics tab and scroll to Containers / Services / Apps / Users. The series that rose at the same minute name the workload: the plexmediaserver.service unit (or your plex container), the plex user, and the miner program itself. That history stays after the miner is gone, so you can look back days later.

The miner alerts

SEC-044, Cryptominer command-line indicators, flags miner flags such as a stratum pool address, a donate level or a rig id. It usually fires within a minute of the miner starting. SEC-045, Sustained process CPU with a mining indicator, fires when a process keeps nearly a full core busy for ten minutes and also shows a mining sign.

The shell

SEC-046 alerts when a game or media server (Plex, Jellyfin, Emby) starts a shell, interpreter or downloader. It matches on process names, so it works without extra permissions, for native installs and containers alike. It sees processes that live through a 30-second snapshot; a one-shot command can slip past.

Working back to the cause

The Processes table at the top of the Metrics tab shows each busy process with its parent and its container by name. The parent links into the host's process inventory, so you can walk from the miner back towards Plex. The Events tab lines up the alerts with the moment the CPU rose.

The attacker addresses

Add the addresses above as your own indicators on the Threat intel page. SEC-078, Connection with a known malicious IP, then flags any connection to them.

What it won't tell you

  • The host CPU alert (OPS-002) waits until nearly every core is busy for five minutes. A miner using two of eight cores shows on the charts, but that alert stays quiet. The miner alerts above are the ones that fire.
  • A miner configured by a file instead of command-line flags gives SEC-044 nothing to match. The charts still show it.
  • Without the optional privileged helper, Stack Snack can't read the executable paths of processes owned by other users, or connections inside bridge-network containers. Turn on the optional helper for the full picture.
  • Stack Snack checks distro packages against Debian, Ubuntu and Alpine advisories. Plex ships its own package outside those lists, so an old Plex build won't show up there. Check the version yourself, as above.

If you were hit

  1. Take the server off the internet, and stop the miner and proxy processes.
  2. Update Plex to 1.43.3.10861 or later.
  3. Delete the Codecs folder. Plex downloads clean codecs again when it needs them.
  4. Treat your Plex account token as stolen. Sign out of all devices in your Plex account and change your password.
  5. Check for persistence: cron jobs, systemd units and authorized_keys. Stack Snack's SEC-001, SEC-002 and SEC-029 cover these paths.
  6. If the plex user could write outside Plex's own folders, rebuild the host from a clean install.

Sources

Want this watching your stack?

Every signal in this post comes from the Stack Snack agent and console. Install the agent on a Linux host and see what it sees.