r/devsecops • • Oct 23 '26

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?

17 Upvotes

11 comments sorted by

View all comments

1

u/Due-Particular-329 Oct 29 '26

ansible fits that pretty well, group the hosts by php and node version in the inventory and the playbook pulls the right package per group, so one run covers the whole fleet