CVE-2026-109619
PHP use after free of stale request state across requests allows remote code execution, part of what the press calls PHP2Shell
How to Fix This Vulnerability
Upgrade php to a fixed version
Remediation Steps
- 1Upgrade PHP to 8.2.35, 8.3.36, 8.4.27 or 8.5.12 or later for your branch. The 8.1 branch and older are end of life and have no fix: move to a supported branch.
- 2Rebuild and redeploy anything that carries the runtime: php container images (for example php:8.4-apache), distro packages (php8.x on Debian and Ubuntu, php on Alpine and RHEL) and golden images. An SBOM lists the runtime as the component php, not through composer.lock.
- 3Find exposed servers by version: the X-Powered-By header and the Server banner show PHP/x.y.z when they are not hidden. Treat a host that ran an affected build behind a public endpoint as exposed and rotate the secrets it held.
Description
PHP keeps worker global state across requests, and a use after free of that stale state (the session upload progress path is one of the ways to reach it) lets a remote attacker run code in the worker. It is harder to exploit than CVE-2026-109618 and affects older branches too: every release from 5.4.0 up to the fixes in PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12. The 8.1 branch and older are end of life and get no fix. Together with CVE-2026-109618 it is known as PHP2Shell. It is not CVE-2024-4577, the 2024 PHP-CGI argument injection on Windows.
Affected Packages & Versions
Am I affected?
Enter the version of php you have installed to check it against this advisory.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H