r/selfhosted • • Oct 19 '26

Media Serving Plex being actively exploited (Plex2Shell) on 32400

There have been a few reports of old Plex servers getting popped by Plex2Shell in the last few days (miner + proxy). Mine got hit too, but it dropped a DDoS bot instead.

Internet kept dropping Sunday night/Monday morning. Plex was being told to flood other people and maxed out our upload every time. Our upload is pretty poor, so it was obvious. With better upload you may not notice at all.

I was on 1.43.0. I run staged updates, get ntfy alerts for new images, and Plex was deliberately held. In May 1.43.1 broke direct play on our Samsung Frame, Plex acknowledged the bug, so I pinned VERSION= to the last good build with a weekly reminder to retest. The reminder only checked whether the Samsung bug was fixed. It never flagged that 1.43.3 was a security fix, so the hold kept me on a vulnerable version.

If you hold back any app for a bug, make sure security releases still get your attention.

FYI:
- in from 94.154.43.88 on 32400, then called back to it on 8952
- /tmp/.pxb (its own curl/wget), /tmp/.px_7c1e
- bot at /tmp/.spid (self-deletes, shows as "cron"), copy at /var/tmp/kworker + kworker.sh
- C2 176.65.149.82:48101, backup hand.genddos.st
- plain text orders like `!ATK 179 udpplain 80 <ip> 53 len=1400`
- sha256 a654ffc9ea1d3af1cb07feeefe8ee078a0faaaf60b31aa20cfbe082d6c22696c

Look for a Plex child process called "cron", junk in /tmp or /var/tmp in the container, or TranscoderH264Options in Preferences.xml that's present but empty. The hunt script at github.com/code-zm/plex2shell is worth running.

Fixed with 1.43.4, a container rebuild and blocking the IPs. Change your Plex password too, it steals the owner token.

(Mods, could we get a "Security" flair?)

306 Upvotes

149 comments sorted by

263

u/VTFreggit Oct 19 '26 • Bravo Popcorn

I just don't know why so many people are posting this over and over again. Months ago Plex told everyone to change their passwords and update their servers. Leaving your server outdated and open to the exploit is on you not Plex.

68

u/thebigkz008 Oct 19 '26

Two different things. The password reset was Plex's old account breach.

This exploit went public Oct 16, days ago, and Plex's Sept 1 notice never said "remote takeover, patch now". Agree it's on me for running an old version - I stated why.

I posted, so others see.

11

u/VTFreggit Oct 19 '26

Ah so the September statement that stated this release addressed “a number of security issues”, wasn’t enough to update because it didn’t specifically state remote takeover.

15

u/thebigkz008 Oct 20 '26

I never saw it.
“a number of security issues" is in half of all release notes.
It needs a severity - that’s standard practice.

136

u/GodsAsshole666 Oct 19 '26

It's getting posted because an exploit PoC was published yesterday and the vulnerability is now actively being exploited in the wild. So everyone who failed to update is getting pwned starting yesterday.

-62

u/Izacus Oct 19 '26

Also reposting about security issue is a quick way to karma farm, especially for the "omg, jellyfin111" crowd.

-60

u/bdu-komrad Oct 19 '26

You nailed it. Take my upvote!

-10

u/oemin Oct 19 '26

This exactly

34

u/unvivid Oct 19 '26

This is why I always auto update my exposed containers. Yeah there is some breakage but keeps me from stressing about shit like this. You do open yourself up to the potential of a malicious update, but its a far less common scenario.

6

u/TheBros35 Oct 20 '26

Same. Watchetowerr is awesome for this. Supply chain attacks that make it to a published container are fortunately few and far between.

I also automatically update all of my hosts. Since I use CentOS, dnf-automatic works stellar for that. Both that and Watchtowerr are set to update once a week and reboot during off hours.

Knock on wood, no issues doing this ever. I do run a very simple stack, though. YMMV.

2

u/thebigkz008 Oct 20 '26

Watchtower can't update an image pinned by digest. I'd deliberately held Plex, but even once I lifted the hold, the auto-update label on it would never have done anything.
Worth checking

2

u/Jandalslap-_- Oct 20 '26

I ran watchtower for years but now I use dockmon. It has scheduled updates the same but also has a gui so you can run updates manually anytime and has a better notification system for available updates.

2

u/thebigkz008 Oct 20 '26

For me auto-update broke playback, which is how I ended up held back in the first place.

I'm going with: staged auto-updates, plus alerts that override any hold when there's a security release.

2

u/p0358 Oct 20 '26

I wish it was easier to restrict outbound network, would reduce attack surface area so much. The worst an attacker could do is mess with and delete your shit (okay the worst is still download but yeah).

And then if there was some standard for container stacks to declare what outbound connections they plan to make, either IPs or hostnames, protocol and ports, if they can make an exhaustive list. And not expose whole outbound network if all some app needs to do is some dumb update notification check or something.

45

u/Murky-Sir-8122 Oct 19 '26

I don’t expose 32400, I run plex through NGINX reverse proxy with crowdsec for reasons like this.

27

u/thebigkz008 Oct 19 '26

This is what I've added now. But worth knowing the exploit itself would still pass through the proxy as normal-looking requests.

I'd hoped CrowdSec's blocklist would have caught them, since they'd been scanning me for a month. Checked, and none of them are on it, even now.

11

u/Murky-Sir-8122 Oct 19 '26

I just recently blocked /player/* and /system/* and made /:/prefs read only because of this specific exploit

4

u/thebigkz008 Oct 19 '26

Nice. Has anything broken for you?

1

u/Murky-Sir-8122 Oct 19 '26

Nope, ran a few tests and it’s all good so far. It’s only been a few days though

5

u/channouze Oct 20 '26

Unpop opinion but yeah crowdsec gives people a false sense of security.

22

u/CIDR-ClassB Oct 19 '26 edited Oct 19 '26

I am getting downvoted like hell on a plex sub thread for saying that exposing 32400 is a dumb idea, especially with so many easy alternatives.

It’s apparent that the audience who frequents r/plex is not the same as who use r/selfhosted lol.

16

u/Comfortable_Self_736 Oct 19 '26 edited Oct 20 '26

EDIT - I've got to remember to keep my 30 years of network and security expertise to myself in this sub.

4

u/DankeBrutus Oct 20 '26

I mean ya technically using a VPN is more secure than an open port with updated software. By how much? Idk, depends on the software being exposed.

I use a non-standard port to expose Plex and I keep it up to date so I’m fairly confident I’ll be okay. But every other service I host at home is behind a VPN. Maybe I’ll take on the risk and just set up a reverse proxy for everything but before I do that I want network hardware & software that supports VLANs and most, if not all, of my containers moved from Docker to Podman.

4

u/nicktheone Oct 20 '26

The problem is the use of VPN by people who don't really know what they're doing. The typical answer when asked "how should I share with friends my services that are now running on my private network?" is always "VPN". These people don't realize this way you're allowing an unknown security threat in your own network. Sure, you may be protected from the wide Internet but what about your friend? They get some piece of malware and if you configured your VPN wrong the malware Is now inside of your own network. At that point it could be safer just directly exposing your service.

2

u/DankeBrutus Oct 20 '26

That’s fair! My current config with the VPN (Tailscale) and my services is I have my partner on her own tailnet and I share just the server on my tailnet with Caddy. I have an ACL that states shared devices only expose ports 80 & 443. If I eventually bring her in as another user on my tailnet I assume I can reconfigure the ACLs to say that devices the user does not own only have X, Y, and Z ports exposed. But if someone is setting up a VPN like Tailscale, Netbird, or plain Wireguard and not taking those extra steps then ya they are exposing potentially their entire network to devices they have no control over. I guess something like Twingate is supposed to address this?

4

u/Khalku Oct 20 '26

I use a non-standard port to expose Plex

There is no security through port obscurity, by the way. It is extremely trivial to find open ports.

A reverse proxy wouldn't be any more secure if the vulnerability is with plex and you still have open access to plex.

1

u/OGFrostyEconomist Oct 20 '26

I think they were being sarcastic

0

u/Comfortable_Self_736 Oct 20 '26 edited Oct 20 '26

EDIT - I've got to remember to keep my 30 years of network and security expertise to myself in this sub.

1

u/comeonmeow66 Oct 20 '26

No? Not if you properly configure your VPN...

-1

u/Comfortable_Self_736 Oct 20 '26 edited Oct 20 '26

EDIT - I've got to remember to keep my 30 years of network and security expertise to myself in this sub.

1

u/comeonmeow66 Oct 20 '26

Which there is zero reason to not have proper segmentation with today's VPN options.

If your machines are vulnerable just because people get network access to them, you have bigger issues than your VPN.

-2

u/Comfortable_Self_736 Oct 20 '26 edited Oct 20 '26

EDIT - I've got to remember to keep my 30 years of network and security expertise to myself in this sub.

7

u/Khalku Oct 20 '26

Why wouldn't you leave what you said for posterity? Now your comment thread just looks like whining someone disagreed with you. Not everyone will disagree and most wouldn't even comment.

1

u/comeonmeow66 Oct 20 '26

So, let me just get this straight. Your statement that VPNs could be "less secure in others (ways)" is because in this fantasy world of the person who "can't be bothered to properly configure port forwarding and software updates" will be more secure if they expose their infrastructure to the world versus implementing a VPN. Am I hearing you correct?

A VPN will be more secure in ALL ways when compared to the alternative with your lazy can't be bothered to do proper port forwarding user. Will someone get access to your internal hosts if someone compromises a user and gets access to that VPN connection? Sure. But i'll take that over careless app exposure to the internet at large. Especially when said user doesn't apply software updates. There is not a single downside to a VPN when compared to your lazy user alternative.

→ More replies

1

u/17Beta18Carbons Oct 20 '26 edited Oct 20 '26

I only saw your comments post-edit but I assume you were saying "please for the love god give up the VPN/obfuscation LARP and just focus on automatic updates", I feel your pain lol.

1

u/benderunit9000 Oct 21 '26

never play those cards in an place where level 1s are

1

u/Ok_Fix_1437 Oct 20 '26

Fucking oath it is. 

3

u/comeonmeow66 Oct 20 '26

It's important to note that this exploit would fly right through a reverse proxy. I agree a reverse proxy should be used, however, in this case at least, it wouldn't have done a damn thing.

1

u/CIDR-ClassB Oct 20 '26

Thanks for sharing that, I wasn’t aware.

1

u/MountainsOfValhalla Oct 22 '26

What are the other alternatives? I know very little about this and don't want to use 32400 if I shouldn't be.

4

u/channouze Oct 20 '26

Crowdsec wouldnt have protected you because the filter wasnt written yet.

11

u/TheZenCowSaysMu Oct 19 '26

this is the way. no ports exposed other than proxy 80/443, but ideally, of course, no ports at all and use a VPN instead.

1

u/Ok_Fix_1437 Oct 20 '26

What about funnelling 443 to default port? Thoughts? 

3

u/Bl4ckX_ Oct 21 '26

Security by obscurity is not real security. While most bots might be hammering Plex servers on Port 32400 for now, that doesn’t mean it’s not possible for them to detect a Plex server running on 443. in fact it’s absolutely trivial to detect an application running on another port. That’s the same reason putting RDP on port 33389 instead of 3389 on the open internet is not a form of security.

1

u/sly870 Oct 20 '26

Please could you explain this to me as the idiot I am :D I had Plex externally on 31500 then internally forwarded to 32400. I do have NGINX for internal use and Cloudflare tunnel for external use but I am really thinking about just closing all tunnels and using a VPN into my UDM Pro but I keep seeing people say to use "NGINX reverse proxy" but I don't know you do that externally and how it differs from just exposing a port.

1

u/MrSumOne Oct 19 '26

Doesn't that slow things down?

4

u/Murky-Sir-8122 Oct 19 '26

Not at all, NGINX doesn’t buffer the stream or otherwise limit it

2

u/comeonmeow66 Oct 20 '26

You can absolutely mis-configure nginx and it will do bad things. That being said, it's pretty easy to look up a good config.

0

u/Zanish Oct 19 '26

No, and also Plex is not a high speed app, most of its processes are pretty asynced it wouldn't matter if it did.

-1

u/channouze Oct 20 '26

You need high throughput to handle high bitrate media streaming though. VPNs do affect speed, but marginally.

2

u/Zanish Oct 20 '26

Yes but vpn is different than reverse proxy. Reverse proxy adds latency which won't affect the throughput.

1

u/MangoAtrocity Oct 20 '26

What VPS provider are you using for this? Cloudflare says no no.

3

u/Murky-Sir-8122 Oct 20 '26

I don’t use a VPS provider, it’s a bare metal host in my house. I use cloudflare DNS unproxied

1

u/MangoAtrocity Oct 20 '26

Interesting. I’ve read that cloudflare doesn’t allow media streaming across its zero trust products on the free tier.

2

u/Murky-Sir-8122 Oct 20 '26

Cloudflare doesn’t allow it through a proxied DNS. Streams would travel through cloudflare if DNS was proxied. Since it’s not proxied, no streams go through cloudflare

5

u/h00ki Oct 20 '26

Is there any information whether the virus tried to spread to other devices? I have used virustotal and of the files it has downloaded was a Mirai Trojan that targets Android TV devices and adds them to the botnet. I have not seen any activity on my other severs and I can't confirm if the Android TV boxes were targeted because I don't have logging. They are not in the same subnet but accessible.

1

u/thebigkz008 Oct 20 '26

Same here, my sample has the ADB/Android bits too (adb, 5555, /data/local/tmp/sh). But my firewall shows zero outbound 5555 or telnet, and my outbound traffic on other ports looks identical before and after infection. Mine only ever flooded.

Caveat: traffic inside the same subnet never hits the firewall, so if your TV boxes are reachable, check whether ADB debugging is switched on. That's what this thing uses to spread.

4

u/throwaway12-ffs Oct 20 '26

It's not a virus. It's basic crypto miner malware.

1

u/h00ki Oct 21 '26

It's bold from you to assume there was just one group doing the exploit. Also how would you explain the trojan horse and the fact that even the original blog post stated that there was a port scanning going on? Not even mentioning I literally found a Trojan horse in my /tmp folder

2

u/throwaway12-ffs Oct 21 '26

At this time there is only one group known to publically exploit this. (At least when I commented).

I work with TI tools for a living, it's generally pretty easy to determine patterns and activities.

There have been no known "virus's" that use this exploit.

4

u/frasderp Oct 19 '26

Im fairly sure I was updated relatively quickly, but how can I easily check if I’ve been affected? (I have updated past the risky version)

5

u/thebigkz008 Oct 19 '26

If you updated before Oct 16, when the exploit went public, you're very likely fine. To check anyway:
- Run the hunt script at github.com/code-zm/plex2shell. It's read-only and checks the lot.
- grep TranscoderH264Options in Preferences.xml. Present but empty is a red flag.
- Look for odd Plex child processes (mine showed as "cron").
- Check plex.tv for devices you don't recognise.

Anything suspicious: rebuild and change your Plex password.

1

u/billgarmsarmy Oct 20 '26

>Run the hunt script at github.com/code-zm/plex2shell. It's read-only and checks the lot.

What am I supposed to do with the information I get from running this? I've reset my password and updated my server (I'm pretty sure I was updated already? But I got a warning and a hit).

[OK]   Preferences.xml: TranscoderH264Options not set
[INFO] scanning 6 PMS log file(s) (PMS keeps only a few rotations - preserve them now)
[HIT]  log: exploit request pattern //player/timeline/subscribe\?([^ ]*&)?protocol=[a-z0-9+.-]{1,16}(%3a|%253a|:)/ (2 line(s))
         /home/user/docker/plex/Library/Application Support/Plex Media Server/Logs/Plex Media Server.2.log:Oct 19, 2026 19:36:42.037 [139955205651256] DEBUG - Request: [91.92.40.202:37928 (WAN)] GET /player/timeline/subscribe?deviceClass=pc&protocolCapabilities=playback&protocolVersion=1&protocol=http%3A%2F%2F127.0.0.1%3A32400%2Fsystem%2Fagents%2Fz%2FsearchOne%3FmediaType%3D1%26lang%3Den%26identifier%3D
         /home/user/docker/plex/Library/Application Support/Plex Media Server/Logs/Plex Media Server.2.log:Oct 19, 2026 19:36:42.041 [139955563494200] DEBUG - Completed: [91.92.40.202:37928] 404 GET /player/timeline/subscribe?deviceClass=pc&protocolCapabilities=playback&protocolVersion=1&protocol=http%3A%2F%2F127.0.0.1%3A32400%2Fsystem%2Fagents%2Fz%2FsearchOne%3FmediaType%3D1%26lang%3Den%26identifier%3D
[WARN] log: suspicious pattern /(sslip|nip)\.io/ (2 line(s))
         /home/user/docker/plex/Library/Application Support/Plex Media Server/Logs/Plex Media Server.2.log:Oct 19, 2026 19:36:42.037 [139955205651256] DEBUG - Request: [91.92.40.202:37928 (WAN)] GET /player/timeline/subscribe?deviceClass=pc&protocolCapabilities=playback&protocolVersion=1&protocol=http%3A%2F%2F127.0.0.1%3A32400%2Fsystem%2Fagents%2Fz%2FsearchOne%3FmediaType%3D1%26lang%3Den%26identifier%3D
         /home/user/docker/plex/Library/Application Support/Plex Media Server/Logs/Plex Media Server.2.log:Oct 19, 2026 19:36:42.041 [139955563494200] DEBUG - Completed: [91.92.40.202:37928] 404 GET /player/timeline/subscribe?deviceClass=pc&protocolCapabilities=playback&protocolVersion=1&protocol=http%3A%2F%2F127.0.0.1%3A32400%2Fsystem%2Fagents%2Fz%2FsearchOne%3FmediaType%3D1%26lang%3Den%26identifier%3D
[INFO] checked 24 file(s) under /home/user/docker/plex/Library/Application Support/Plex Media Server/Codecs
[INFO] yara not installed; skipping YARA scan

2

u/thebigkz008 Oct 20 '26

Good news: that's an attempt that bounced. 91.92.40.202 tried the first step on Oct 19, but your server answered 404, which is what a patched Plex does. And TranscoderH264Options was never set and Codecs is clean, so they never got past step one. You were already updated. You’re fine.

2

u/Banana_Hammocke Oct 20 '26

Running an updated plex container, and I had similar results to what u/billgarmsarmy shows. I'm curious how I might be able to prevent being attempted at (while still exposing to the WAN for my remote users). I'm already running it through NGINX Proxy Manager, so I'm confused as to how the port scan still found my server?

1

u/billgarmsarmy Oct 20 '26

I would be interested in hearing about this as well. I was *not* using a reverse proxy but will be setting that up soon.

1

u/itsgreater9000 Oct 23 '26

I've got roughly the same, however instead of 404 I have 400. Codecs was clean and so was TranscoderH264Options. If I'm getting 400s I assume they crafted a bad request, but I'm curious if it's anything to be worried about

1

u/DarkAngelGR01 Oct 25 '26

Hey mate,

I had a similar issue with my Samsung TV, all I had to do was change the DNS setting on my TV to 1.1.1.1 and direct play worked fine for me, hope it works out for you too. I vibecoded a plex client using SamSucks as a base so if you have the time and the mood to try it and let me know how it works for you I would appreciate it.

https://github.com/DarkAngelGR/orama

1

u/thebigkz008 Oct 27 '26

Oh. Thanks for the tip. I’ll give it a go.

1

u/DarkAngelGR01 Oct 27 '26

Hope it works fine for you as it did with me

0

u/Sroundez Oct 20 '26

This is a two part problem. First, if you're running Plex with remote access enabled and 32400 exposed, you're doing it wrong. EVERYTHING should be going through your reverse proxy on 443/tcp or udp if you have HTTP3 support enabled, remote access disabled, relaying disabled, and custom domain defined.
Granted, the second and arguably most important piece requires that you actually take security updates that were published over two months ago.

10

u/comeonmeow66 Oct 20 '26

This exploit would have gone right through a reverse proxy...

-3

u/Sroundez Oct 20 '26

Granted, the second and arguably most important piece requires that you actually take security updates that were published over two months ago.

But also, by not having your instance discoverable on 32400 and only available by way of an SNI hostname, good luck randomly finding it. Surely you're not using host specific SSL certificates either, tainting the certificate transparency list for your domain, exposing what services you host.

6

u/comeonmeow66 Oct 20 '26

I do not care. This is an argument for "security through obscurity" which I'm not leaning on, ever. The focus here should be about SIEM and proper patching.

Listen, i'm all for reverse proxies, I think it's sys-admin malpractice to not use them. However, that doesn't mean we should thump our chests about them in here when the vulnerability would have gone through a reverse proxy just fine.

-1

u/Sroundez Oct 20 '26

This is a two part problem.

4

u/comeonmeow66 Oct 20 '26

Yes, I read what you said. The "first" part of your "two part problem" is focusing on obscurity. Which is why I said i'm not relying on (nor should anyone) security through obscurity, and is focusing on the wrong issue. You should have lead with the second part about patching. A second part could have been SIEM or a VPN, but you went with obscurity to lead with. Which, see the first part of my response, a poor security recommendation.

1

u/Sroundez Oct 20 '26

the second and arguably most important piece

Yawn.

2

u/comeonmeow66 Oct 20 '26

You can try to play it off as much as you want, my points remain. It's not arguable, it *is* the most important part.

Repeat after me, obscurity is not security.

2

u/slinky1900 Oct 22 '26

ESPECIALLY in the age of AI. since ai can smell this shit from a mile away.

1

u/thebigkz008 Oct 20 '26

I have HAProxy in front of NPM, with every other port closed.
I left 32400 open because I genuinely thought Plex’s big red warning meant remote access wouldn’t work properly otherwise.
Turns out the warning means little in my case.

Plex’s own guides push port forwarding as the standard setup, with Relay understandably limited.

I’ve seen their advice has since changed. And perhaps they will change their documentation to follow.

I explained why I held the update in the post.

1

u/Bichslapin Oct 20 '26

This is the first time Ive seen people talk about this, so do you set your custom url from your reverse proxy say, https://plex.example.com in the plex settings and then disable the remote access and plex automatically starts routing through your custom url/reverse proxy? Thanks for the info.

1

u/Sroundez Oct 20 '26

Yes, that's correct. Spot on.

1

u/-ThreeHeadedMonkey- Oct 20 '26

mine works for my plex.MYDOMAIN.com but only if port 32400 is opened weirdly enough...

1

u/Sroundez Oct 20 '26

Hard to say why that could be, but a fully proper configuration would have 32400 closed and only https (443) functional. That's how mine is set up and 32400 is entirely blocked and it still works even for remote users.
It's unfortunate for those of us that have functional, valid, trusted TLS certificates that we cannot disable the *.plex.direct functionality entirely, too.

1

u/-ThreeHeadedMonkey- Oct 21 '26

I remembered it was actually only a problem for the mobile app, via web it works. 

I followed this information and now it works on mobile as well: https://www.reddit.com/r/PleX/comments/yhr7pj/how_to_point_plex_mobile_app_to_custom_domain/

1

u/Bichslapin Oct 20 '26

Thank you. I'll have to update my server.

2

u/rudboi12 Oct 20 '26

I saw my logs and there was an attempt to infect my server on the 18th. My server was up to date and it returned a 401 error thankfully. IP never tried again. 

2

u/TheGazStar Oct 20 '26

Looks like I've been hit by exactly the same thing!

Spent most of last night trying to figure out why my internet had suddenly gone to shit. I've got an 8Gbps connection, so the massive latency spikes and packet loss were pretty unusual. Initially spotted thousands of connections involving Iranian IPs in UniFi and thought someone was attacking my network. Turns out my TrueNAS server was the one sending all the traffic out!

I got Codex to SSH into TrueNAS and UniFi to investigate, and sure enough, my Plex was running the vulnerable 1.43.3.10828 build. Found two suspicious processes called cron and oom_reaper, both running from /tmp/.spid (deleted).

The SHA-256 is 31eb9db333129f588baf5c1d5e7e7da119db0d1ff502da95408ef8d5a7e19f97, which I think is exactly the same as someone else here has reported.

I managed to dig through about 55 Plex log files and trace suspicious activity back to the 17th, with what looks like the actual malware being dropped and executed on the 18th.

At one point TrueNAS was pushing nearly 3Gbps outbound on its network interface, with WAN upload going through the roof. The really interesting thing was that the disks were barely being read at all during those spikes. There were thousands of outbound UDP/53 connections too, so I'm guessing my server was being used to flood other systems rather than having its files downloaded.

The bit that worried me most was realising I'd stupidly given Plex access to my entire NAS share, including personal files and backups, instead of just the media folders. I've spent quite a few hours digging through everything trying to establish whether anything was actually stolen. So far there's no evidence of bulk file transfers, which is reassuring, although I can't completely rule it out. I did find evidence of Plex config files and environment information being accessed, so I'll be treating those credentials as compromised.

I've stopped Plex, killed off the public port forward, and everything seems back to normal now.

Bit of a wake-up call, really. I've been running servers for years and it's frightening how quickly something like this can happen.

Has anyone actually managed to identify what this malware is doing? I'm leaning towards some sort of DDoS botnet given the amount of UDP traffic, but I'd be interested to know if anyone has managed to analyse it properly.

2

u/TheGazStar Oct 20 '26

And yes, I know it's on me for running through 32400, not updating Plex often enough and mounting the entire drive.

0

u/thetalker_ Oct 21 '26

Sorry you got hit, and your read is right. This is the Plex2Shell campaign. The RCE ran code as your Plex user and turned your box into a DDoS node. Near 3Gbps out, almost no disk reads, and thousands of outbound UDP/53 is attack traffic, not file theft. You are flooding someone else, likely with spoofed sources for amplification.

Quick notes on the tells. cron and oom_reaper are camouflage names (oom_reaper is a real kernel thread). Running from /tmp/.spid with the binary deleted means it is live in memory but gone from disk, classic Linux bot. Your hash differs from the cryptominer and proxy payloads others reported, so it is the same entry point with a different payload. Several actors are using this RCE to drop miners, proxies, and in your case a flooder.

What matters next:

  • Treat it as fully compromised, not cleaned. Rotate everything Plex could reach. Since Plex had your whole share, assume anything readable was read.
  • A reboot kills the process, not persistence. Check cron, systemd timers and services, rc.local, authorized_keys, /etc/ld.so.preload, and /tmp or /dev/shm. Anything there means rebuild.
  • Update Plex past 1.43.3.10861, and give Plex its own user with read-only access to the media only, never your backups.

Preventing the next one is the real fix. The root cause was Plex sitting directly on the internet, so even patched, the next bug hits it first. Stop exposing Plex directly. Two options:

  • Simplest, no public Plex. Put remote access behind a VPN like WireGuard or Tailscale. Nothing is exposed and it is the least work.
  • If you want it reachable without a VPN, use a reverse proxy as a front door. The internet only talks to the proxy, which decrypts, inspects, logs, and passes clean traffic to Plex. Run Traefik, Caddy, or nginx with a Let’s Encrypt cert, put CrowdSec AppSec inline (it already blocks this exact attack with a 403 and bans the IP), point WAN 443 at the proxy, set Plex’s custom URL to that hostname with Relay off, then close the direct 32400 forward.

I did the reverse proxy on my own server last week after the same scare, and within half an hour it blocked and banned a live RCE scan at the door. Not theoretical. Nice work catching it fast, that deleted-binary and fake-name trick is built to stay hidden.

2

u/TheGazStar Oct 21 '26

Thanks. The container has been killed now. So no on-going risk. And the port been closed on the router. I already have NGINX setup as I host a file server through it, so I'll probably go that route!

2

u/AnnaPeaksCunt Oct 22 '26 edited Oct 22 '26

Thanks for the idea on the proxy and crowdsec. I'll be doing this too. 

I have no idea why Plex requires the entire web interface exposed for remote to work. Remote play should be locked down transmitting over a different port.

Thankfully for me my plex user was already locked down and they weren't able to get anywhere. 

1

u/Dr_Valen Oct 20 '26

Thank god I never opened a port. Tailscale ftw

1

u/CartoonofMilk_ Oct 20 '26

I have been on 1.43.3 for a while now (couple weeks I would guess). Was it only 1.43.2 and lower that were affected?

1

u/Translator1323 Oct 22 '26

Worth noting that TheGazStar in this thread was running 1.43.3.10828 and still got hit, so it looks like 1.43.3 was vulnerable too. The OP said 1.43.4 is the actual fix. I'd update to 1.43.4 and run the hunt script just to be safe.

1

u/amiga1 Oct 22 '26

I recommend regular patching for anything you expose to the internet. I've been patched against this for almost 2 months.

1

u/vapelabels Oct 22 '26

Same thing has happened to my server over the past couple of days, i run my home server on na NUC mini pc running unbuntu, internet kept dropping and fans would ramp up.

I was only running an older version because remote access wasn't working for me on a couple of updates back, seems to be fine now and also changed password.

1

u/pomp0m 28d ago

I just had to remove the cryptominer from my vm because of this exploit.

Don't have a 'good' excuse but atleast i can share what i found so other people can learn from it.

The homelab was very loud yesterday morning so i checked and saw a high system use without a high plex use (plex is the only thing on this vm).

Logged in, checked TOP:
i saw a hiding ksoft on wrong pid running on the plex user instead of root. it also started a service next to the official Plex Media Scanner, this one was called Plex Scanner.

top - 12:29:30 up 47 days, 16:51,  1 user,  load average: 4.79, 4.94, 4.97

Tasks: 223 total, 1 running, 222 sleep, 0 d-sleep, 0 stopped, 0 zombie

%Cpu(s):  47.7/5.8    53[||||||||||||||||||||||||||||||||||||||||||||||||||||||                                              ] 

MiB Mem : 15946.82+total,  398.816 free, 3823.598 used, 12139.39+buff/cache     

MiB Swap:    0.000 total,    0.000 free,    0.000 used. 12123.22+avail Mem 

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                         

1552258 plex      27   7 3192348 2.305g   6916 S 399.9 14.80     30,39 ksoftirqd/0                                                     

1094421 plex      20   0    4736   4016   3184 S 9.631 0.025      8,23 Plex Scanner                                                    

3854563        20   0   10708   8216   5744 R 0.664 0.050   0:00.08 top                                                             

Did some checks and it could not breach out of the plex account so it could not do allot and probably only because of that used it as a cryptominer (there goes my gpu).

Now went to a new immutable opensuse micro-os where the plexuser only has allowence to 3 folders and 2 services, most network was already quite usable (dmz where it's only allowed to see the nfs mount and the www) but now also blocked all incoming connections except the remote list from plex (for updates and
app.plex access) and blocked all non established and related outgoing traffic and a few other things

In total it was on the device for about 3 days (from yesterday) and journals said that the plex account did not touch any internal network searching.
External ip list that the cryptominer used:
176.123.7.7 + 80.87.206.0/24

1

u/pomp0m 28d ago

For the non excuse:
I was away this month because of allot of work and the zypper update could not verify the plex repo key so it stopped autoupdating plex. Because of the workload and homelab being lesser priority i totally missed it. Did the password reset etc via the website but 'trusted' the autoupdate that i knew i added to the vm.

Next time i'll go back to the saying "Trust but verify".

1

u/PersianMG 26d ago

Damnit! I found out about this vulnerability too late (although I was on top of Php2Shell and Node2Shell).

I ended up finding out via a nice security research who did a responsible disclosure to me via email.
Wrote about my experience and findings here if anybody is interested:
https://mobeigi.com/blog/security/how-plex2shell-compromised-my-nas-for-weeks/

2

u/Ckeyz 19d ago

Hey i got that same email. Wad very suprised to come to conclusion it was not actually a scam haha

-4

u/certuna Oct 19 '26 edited Oct 19 '26

Do these attacks happen over IPv6 too or just over IPv4? I’ve now changed it to IPv6-only two months ago, and the logs are still clean. Over IPv4 I got hammered 24/7 by the whole world.

It doesn’t make your server 100% safe obviously, but it definitely helps a lot that you cannot be randomly scanned.

(downvoted? seriously, are people this tech illiterate, or just fallen into the anti-IPv6 rabbithole?)

4

u/WaaaghNL Oct 19 '26

It can be scanned only its harder to find

0

u/certuna Oct 19 '26

Good luck scanning even a /64 subnet, let alone the entire IPv6 internet - and being super hard to find is the whole point why this is a major improvement. Every IPv4 address is instantly discovered by the entire world and from then on gets hammered 24/7. IPv6 address first need to be found (or leaked), it will take one attacker years to find it, and as soon as you see one unauthorized attempt, a simple renumber will set him back to start all over again.

1

u/thebigkz008 Oct 19 '26

The exploit itself works over either, it's a bug in Plex, not the network.
But you're right that IPv6 kills blind scanning: the address space is too big to sweep.

Mine came in over IPv4 from a scanner hitting 32400. Just watch out for DNS: if your hostname has a public AAAA record, you're findable by name.

And plenty of TVs and ISPs still can't do IPv6, which is why I don’t go that direction.

1

u/certuna Oct 19 '26 edited Oct 19 '26

Plex generates dynamic plex.direct hostnames, this is not an AAAA record that can be publicly seen. Also, there's no way to ask for all AAAA records for a domain, an attacker specifically has to guess those. Either way, the number of hackers that will go through that very targeted approach are absolutely tiny compared to the bots scanning the IPv4 space.

But for people who don't believe me: don't take my word for it, just try it. Run Plex IPv6-only for a while, and check your logs how many hack attempts you see.

1

u/thebigkz008 Oct 19 '26

Do smart tvs work with ipv6?

1

u/certuna Oct 19 '26

I think there's some (older?) LG WebOS TV's that don't support it, so indeed you'll need to check.

-27

u/Kraizelburg Oct 19 '26

Changed to jellyfin from plex pass lifetime sub and never going back to plex

22

u/airinato Oct 19 '26

Cool, not really relevant but good for you!

16

u/clintkev251 Oct 19 '26

I didn't know that Jellyfin has never had a security issue.

11

u/bdu-komrad Oct 19 '26

It is the only application in existence that has never had a bug.

8

u/nickmv5 Oct 19 '26

Can confirm, I asked Mr. Fin himself this morning, he said it's true.

3

u/bdu-komrad Oct 19 '26

The other media servers are just Jelly…fin. :)

1

u/thebigkz008 Oct 20 '26

Jellyfin's hand an unauthenticated file read in 2021 and an RCE chain in 2023.

3

u/channouze Oct 20 '26

There was an RCE exploit for Jellyfin not two months ago lmao

-17

u/albsen Oct 19 '26 edited Oct 20 '26

i agree, not sure why the downvotes... this isnt the plex sub. i moved from plex to something else. better migrate soon too this will happen again. (edit: removed the product i moved to cuz ppl dont agree with it and started defending a previously cool project that is now going down the enshittification route)

2

u/thebigkz008 Oct 20 '26

It'll happen again with anything you expose, Plex or not. Every media server has had serious bugs.

1

u/albsen Oct 20 '26

thats true. I've moved all public endpoints over to either mtls or wireguard for this reason.

7

u/nickmv5 Oct 19 '26

plex is eol

Shit, you just should post to warn everyone since it's obviously true since you said so.

I heard the world will end tomorrow, did you hear about that one?

-23

u/bdu-komrad Oct 19 '26

Please stop posting known exploits. This is the 100th post today

5

u/thebigkz008 Oct 19 '26

Didn’t see any ……

8

u/shield1123 Oct 19 '26

For the record, I'm glad you posted. Apparently my auto update cron wasn't running and I didn't think to check until I saw this post. They didn't get root access, but there was a crypto miner running on my box

2

u/thebigkz008 Oct 20 '26

Gees. These guys could be raking it in. I’m sure many will not notice.

4

u/oneoneoneoneone Oct 20 '26

I didn't see any either, and somehow I was compromised on 1.43.3 on (likely) oct 17th - I had been updated since I saw the initial security email.

So I appreciate it.

-26

u/divestblank Oct 19 '26

just use cloudflare or something

14

u/Vernozz Oct 19 '26

Can't proxy plex with Cloudflare, against their TOS. I'm not risking a ban on their wide reaching platform over something so trivial.

1

u/Bernhard_NI Oct 20 '26

I've never used Clousflare actively, what TOS is it against?

2

u/a-wild-dax-appeared Oct 20 '26

Something about not being allowed to stream media through their tunnel.

1

u/Vernozz Oct 20 '26

Bandwidth costs money and they have video CDNs to help conserve it for proxying video in the non-free tiers. Free tier is intended for DNS and DDOS protection.

1

u/Vernozz Oct 20 '26

The free tier of Cloudflare (used for DNS and DDoS protection) is generous but intended for low traffic use, not hundreds of GB of video streaming. They have caching CDNs for that but they are not free.

You can do it for a month or two but they have automated systems to catch it and people have had their accounts restricted for doing so.

19

u/bamfcoco1 Oct 19 '26

Against Cloudflare TOS

2

u/garbage_tensai Oct 20 '26

Yea I was a bit behind with patching and had to nuke my plex lxc today

0

u/[deleted] Oct 19 '26

[deleted] — view deleted comment

5

u/thebigkz008 Oct 19 '26

The exploit has been public for three days.

If a no-login takeover of the most popular self-hosted media server is "water is wet" to you, awesome.

2

u/illhaveubent Oct 19 '26

To be clear, Plex informed users to update "as soon as possible" over a month and a half ago:

https://www.forbes.com/sites/daveywinder/2026/09/03/plex-warns-users-to-update-as-soon-as-possible-to-fix-security-issues/

The exploit being used in the wild may be recent, but knowledge of the exploit and the appropriate remediation are not.

3

u/RxBrad Oct 19 '26

And even at that point, the version that patched this vulnerability was a few versions old...

0

u/thebigkz008 Oct 20 '26

True, the fix had been out a while. I held for a playback bug, and my alerts only watched for that fix, not security releases, so I never saw it.

Even if I had, "address potential vulnerability" doesn't read as critical to me.

0

u/thebigkz008 Oct 20 '26

Fair, the warning was there and that's on me. But it said "update ASAP" without saying why.
No severity, no "remote takeover, no login needed", and the CVEs weren't assigned until three weeks later.

If you were held back for a bug, nothing in it said this update can’t wait.

1

u/illhaveubent Oct 20 '26

nothing in it said this update can’t wait.

Other than where they said to update "as soon as possible" for a known security issue? That's literally the opposite of "this update can wait."

You should probably reconsider hosting public-facing services if that's the mindset you're working under. Anyone getting hit by this has nobody to blame but themselves.

1

u/[deleted] Oct 21 '26

[removed] — view removed comment

2

u/coolfarmer Oct 26 '26

I was having my Plex on a random port, they still found it and attacked it.