28 October 2026 / Security operations / 8 chapters

The servers that need a different plan

From Patching php2shell across a mixed PHP fleet

Two legacy servers, running PHP 5.6 and 5.3, couldn't be patched with the same routes, and their records say so. I'd rather see that written down than a fleet report that's green everywhere.

The PHP Foundation's backports start at 7.4. Branches older than that get nothing from the PHP project, and the affected code in the memory manager goes back much further. Zend's CVE-2026-109618 entry says the out-of-memory flaw affects all PHP 5 and PHP 7 versions.

For the 5.6 server there was no compatible fixed package, and the exact original source packaging couldn't be recovered to rebuild from. For the 5.3 server, the available patch left its Suhosin memory allocator incompletely covered, so applying it would have produced something that looked patched without being fully protected. Calling either of those done would have been the easy mistake.

For servers in this position, the realistic choices are:

  • Move the sites to a supported PHP branch. That's an application project with its own testing, and it takes longer than an incident allows.
  • Take the PHP-based services offline until they can be updated. That's CISA's guidance for anything that can't be patched immediately, including PHP 8.1 and earlier.
  • Reduce exposure while the first option is under way. PHP's advisory lists configuration changes such as making memory_limit unlimited in a way applications can't override, and disabling session.upload_progress.enabled. Both narrow specific attack paths, and PHP is clear that neither makes an installation safe. A web application firewall rule in front of the site is in the same category: the Cloudflare CTO quoted in the Tenable FAQ called their php2shell rules a stopgap only.

None of those is a patch, and the records for those servers don't call them patched.

All articles