CVE-2026-109618
PHP memory corruption after an out-of-memory error during request startup 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 can run out of memory while it parses a multipart request body during request startup. With Apache mod_php, the request shutdown then runs on invalid state, which corrupts memory and lets an unauthenticated remote attacker run code. It is fixed 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-109619 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:L/PR:N/UI:N/S:U/C:H/I:H/A:H