PHP emergency update: a guide to fixing remote code execution flaws
PHP released emergency fixes on October 21. Check the four supported branches, verify the actual web runtime, and complete worker replacement and application checks.
Contents of this article
Update the PHP runtime that actually serves the website
On October 21, 2026, PHP published fixes for CVE-2026-109618 and CVE-2026-109619, involving out-of-memory handling and stale global state. Both can lead to unauthenticated remote code execution. The PHP team urges all web-serving installations to update; PHP-FPM deployments must not be excluded.
Separate demonstrated exploitability from observed compromise: PHP identifies mod_php as the highest-risk runtime with a demonstrated attack path. This does not establish identical exploit validation for every runtime. Follow the urgent update guidance even if a particular site has not generated an alert.
Fixed versions by branch
| Runtime branch | Fixed release | Upgrade check |
|---|---|---|
| PHP 8.2 | 8.2.35 | Earlier patch releases require action |
| PHP 8.3 | 8.3.36 | Earlier patch releases require action |
| PHP 8.4 | 8.4.27 | Earlier patch releases require action |
| PHP 8.5 | 8.5.12 | Earlier patch releases require action |
| PHP 8.1 and earlier | Move to a supported branch or verify vendor backports | Check the vendor package advisory as well as the upstream version |
Suggested update sequence
Inventory domains, origins, PHP branches, package sources and runtime types, then back up configuration and application data. Check extensions and key flows such as login, uploads and payment callbacks in staging. Update nodes and replace old workers. For containers, rebuild images and verify every replica uses the patched image digest.
Do not rely on php -v alone: CLI, FPM and Apache modules may use different installations. Cross-check running processes, package records and a restricted internal diagnostic endpoint to establish the web runtime version. Remove the endpoint afterwards rather than exposing a public phpinfo page.
Reduce exposure when an immediate update is not possible
PHP states that configuration changes cannot fully fix these flaws. Move traffic to patched nodes or restrict public access after assessing service impact. Request-body, upload and access limits are supplementary controls; a WAF rule is not a complete patch.
Some vendor mitigation settings alter memory limits, upload progress and error handling. Assess them against each runtime instead of copying them across servers. In particular, do not remove memory limits blindly without process or container resource controls. After patching, review unusual processes, file changes and outbound connections; preserve evidence before recovery if compromise is suspected.
Official advisories and remediation resources
PHP official 2026 security announcements
PHP advisory for CVE-2026-109618
CERT-EU: critical PHP vulnerabilities
