PHP2Shell: why we took every site offline on 20 October

On 20 October, details of two remote code execution vulnerabilities in PHP were published before the patch, tracked as CVE-2026-109618 and CVE-2026-109619 and known together as PHP2Shell. They affect PHP 5.4 through 8.5, score 9.2 under CVSS 4.0, require no authentication, and trigger before application code runs.

Both are in PHP’s request-level internals. One is in out-of-memory handling: a request can be interrupted while its internal data is only partly initialized, and cleanup then treats invalid data as valid. The other is stale global state: state owned by a request survives after its memory is freed, and the next request handled by the same worker can read it. The PHP security team says updating is the only complete fix; temporary mitigations cover known attack paths only.

The flaw is in PHP itself, not in WordPress or MediaWiki. Patching the application does nothing.

On 20 October, following the security guidance, we took the CaelLab sites offline. The notice is at caellab.com/status/php-update. The patch was not due until the next day, and leaving the services exposed until then would not have helped.

On 21 October, PHP released 8.2.35, 8.3.36, 8.4.27 and 8.5.12. We moved every site and service to PHP 8.3.36, checked the version and runtime on each, and restored access. Every PHP service in our network now runs 8.3.36.

If you run PHP: update to one of those four releases. PHP 8.1 and older no longer receive official updates; some distributions provide backports, so check their source first. Temporary measures (memory_limit=-1, a low post_max_size, session.upload_progress.enabled=0) are listed in the PHP advisory, but they do not replace an update.

References: