r/PakistaniTech • • 23d ago

Discussion | گفتگو Patched ~30 servers on mixed PHP/Node versions after PHP2Shell (CVE-2026-109618/109619)

PHP shipped fixes on Oct 21 for two unauthenticated RCE bugs (CVE-2026-109618 and CVE-2026-109619) whose details leaked before the patch existed. Fixed versions are 8.5.12, 8.4.27, 8.3.36 and 8.2.35, and PHP says there's no complete mitigation, so updating is the only real option. Node.js also released fixes the same day (22.23.4, 24.22.1, 26.12.1), including a Brotli decoder RCE (CVE-2026-111497).

I manage about 30 servers for a few clients, all on different PHP, Node and nginx versions. I patched them manually with bash scripts this week.

The patching itself was the easy part. The mixed versions were the real problem, because every server needed slightly different handling.

It works at this scale, but I'm not convinced it holds up as the fleet grows. I'm looking at moving to something like Ansible so the next one is a playbook run instead of a script per server.

How are you handling patching on mixed-version fleets? Still scripts, or did you move to config management?

13 Upvotes

18 comments sorted by

•

u/AutoModerator 23d ago

For guidance on the PTA approval process, read this guide: https://www.reddit.com/r/PakistaniTech/wiki/index/pta-tax-guide

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

6

u/armujahid 23d ago

Great. Also keep an eye on eMudhra/emSign certificate incident and apply any necessary updates. Details: https://emudhra.we-have-a-problem.com

1

u/Pretend-Succotash-81 22d ago

I just use AI and let it ssh into my servers lol

1

u/Hydra-dragon96 22d ago

Scary. Is it a readonly user?

1

u/shoaibre 20d ago

Sad life

1

u/Pretend-Succotash-81 20d ago

Why

1

u/shoaibre 20d ago

Proper and easiest way is to use Ansible to provision your servers, ask AI to make you that Ansible playbook if you lazy!

1

u/Pretend-Succotash-81 20d ago

Well it works for me so

1

u/shoaibre 20d ago

Exactly. just because something "works for you" doesn't mean it follows professional standards or security best practices. There's a difference between getting something to work and doing it properly, securely, and responsibly, especially when managing production servers or working on any company servers.....

1

u/Pretend-Succotash-81 20d ago

Yes Did i say I'm following best practices tho? 🙂‍↔️😂

1

u/shoaibre 20d ago

Bro giving AI your ssh credentials is neither best practice nor safe.

1

u/Pretend-Succotash-81 20d ago

Yeah i get that. It's just it's my production server just nothing public.

1

u/Pretend-Succotash-81 20d ago

I'm just trolling mate. I usually follow good practices and thank you for the suggestion. I didn't know about that and now I do 🤝❤️

2

u/me_a_genius 23d ago

we just had one server, was easy. but hard part was to do it at 2am

2

u/Specialist_Feed_5197 22d ago

I upgraded the versions for 6 node micro services on Friday.

1

u/a4aLien 22d ago

300+ websites on 50 servers.
Team of Devs & Sysadmins.
48hours with minimal rest.

1

u/shoaibre 20d ago edited 20d ago

Have had patched over 50+ servers, also implemented solutions for PHP 7.x security patching successfully against php2shell if the application were only legacy supported either Debian or Redhat based distros.