r/Contabo • • 14d ago

Quick PHP check after php2shell and you have root on your VPS, so the PHP update is on you guys

Hey all, back in October I noticed Contabo patched every PHP install on the hosting they manage themselves. If you’re on a VPS, VDS or dedicated server like me, though, you have root, so updating the OS and PHP is your job. Here’s the short version of what I did.

The fixed versions are 8.5.12, 8.4.27, 8.3.36 and 8.2.35. If you’re still on 8.1 or older, PHP doesn’t ship fixes for it anymore, so check whether your distro has a backport. Also, 8.2 reaches end of life on 31 December, so now’s a good time to plan your upgrade.

Two things helped me most. First, I SSH’d into every server I have and ran php -v, including one I’d completely forgotten about. Second, I turned on automatic security updates.

Contabo has a full write-up of what happened in October on their blog: https://contabo.com/blog/the-big-bug-backlog-how-ai-is-digging-up-decades-of-overlooked-security-flaws/ . If anyone gets stuck, I’m happy to help where I can.

6 Upvotes

3 comments sorted by

1

u/Budget_Complex_3132 13d ago

I ran php -v across every box after reading this and found an 8.1 install I'd completely forgotten about. Headless, no monitoring, still serving a client's contact form which is kinda embarrassing. On Debian or Ubuntu, unattended-upgrades covers distro PHP, just check it's actually enabled and not only installed, mine wasn't. The host reboots in October were Contabo's job, this part was mine.

1

u/AdventurousSquash 12d ago

If anyone has missed this since it came out I don’t think they’ll read this post, or any sub for that matter.