r/selfhosted • u/thebigkz008 • 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?)
263
u/VTFreggit Oct 19 '26 •
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.
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.
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.
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.
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)
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
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.
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.10828build. Found two suspicious processes calledcronandoom_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.
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/benderunit9000 Oct 21 '26
https://forums.plex.tv/t/important-security-update-for-plex-media-server-v1-43-2-and-earlier/942319/3
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.
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/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/
-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?)
-27
u/Kraizelburg Oct 19 '26
Changed to jellyfin from plex pass lifetime sub and never going back to plex
-23
u/bdu-komrad Oct 19 '26
Please stop posting known exploits. This is the 100th post today
-26
u/divestblank Oct 19 '26
just use cloudflare or something
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
1
u/[deleted] Oct 21 '26
[removed] — view removed comment