Fixed PHP versions and images
PHP released the fix for PHP2Shell on 21 October 2026. This page lists the fixed versions and explains how to install them when PHP comes from a package, a container image or an application server that embeds PHP.
- PHP 8.2
- 8.2.35
- PHP 8.3
- 8.3.36
- PHP 8.4
- 8.4.27
- PHP 8.5
- 8.5.12
Each is the first release on its branch that fixes both CVE-2026-109618 and CVE-2026-109619. PHP 8.1 and older get no packaged release. There are only minimal source backports for PHP 7.4, 8.0 and 8.1, and some vendors have backported the fix themselves (see the page on PHP 8.1 and older). The fix status page lists which distributions, control panels and hosting companies have shipped it.
- PHPFix released
PHP
The fixed PHP versions for every supported branch, and how to update or build from source.
How to update - Container imageAction needed
Official PHP Docker images
Rebuild on the fixed php: tags. An image pinned by digest keeps the old, vulnerable binary.
How to update - Application serverAction needed
FrankenPHP
FrankenPHP embeds PHP, so update to, or build, a binary that bundles a fixed version.
How to update - Application serverAction needed
Swoole and OpenSwoole
Long-lived workers make stale-state bugs worse. Update PHP, rebuild the extension if needed, and restart.
How to update - Application serverAction needed
RoadRunner
The Go server is not affected. The PHP workers behind it need the update and a restart.
How to update - Application serverAction needed
LiteSpeed and OpenLiteSpeed
LiteSpeed runs PHP through its own lsphp builds. Update those, or build lsphp from source, and restart.
How to update - DistributionAction needed
Ubuntu and Debian
Install the distribution or Sury update. On Ubuntu the PHP version number stays the same and only the package revision changes.
How to update - DistributionAction needed
RHEL, Rocky, Alma and Remi
PHP said Remi’s repository would not have the update on release day. Prefer the distribution packages, or build from source.
How to update
If you can’t update right away, see what to watch for while a server is exposed. To confirm an update worked, see how to check your PHP version.
Sources
- PHP: official security advisoryThe fix announcement and version list
- CVE-2026-109618 · RCE via OOM corruptionGHSA-w8hw-w9fx-j79w
- CVE-2026-109619 · RCE via stale global stateGHSA-6wmf-4rv5-p3rp
- CERT-EU: Critical Vulnerabilities in PHPEU advisory 2026-018, 21 October 2026
- ENISA: joint statement on critical PHP vulnerabilitiesENISA, CERT-EU, DG CNECT, Europol EC3 and the CSIRTs network
- CISA: Critical Vulnerabilities in PHP Require Immediate PatchingUS government advisory, 21 October 2026