Critical · CVSS 4.0 base 9.2

CVE-2026-109618

CVE-2026-109618 is a critical PHP vulnerability, also tracked as GHSA-w8hw-w9fx-j79w. PHP calls it remote code execution via out-of-memory corruption. The PHP Group scores it CVSS 4.0 base 9.2. It was disclosed with the security releases on 21 October 2026, alongside CVE-2026-109619.

What goes wrong

PHP leaves the current context when an allocation fails because the process is out of memory. Some of those paths do not account for that early exit. Request memory can be left uninitialised, and the cleanup that follows can read or branch on it. Public reporting says several out-of-memory conditions can reach this state, and that the result can be remote code execution.

No login is required. On Apache with mod_php, PHP has said an unauthenticated request can trigger the issue before application code runs. Remote code execution was also confirmed on PHP-FPM through application-level paths. PHP-FPM, php-cgi, FrankenPHP, and LiteSpeed are in scope as well.

Who is affected

PHP 8.2 before 8.2.35, PHP 8.3 before 8.3.36, PHP 8.4 before 8.4.27, and PHP 8.5 before 8.5.12 are affected. Older branches, including PHP 8.1, 8.0, and 7.x, are affected too. Those older branches no longer receive routine upstream updates.

The fix

Install PHP 8.5.12, 8.4.27, 8.3.36, or 8.2.35, then restart every worker. On Linux, install the updated package from your distribution if it already contains this patch. For PHP 8.1 and older, ask the vendor for a backport or move to a supported branch. PHP provided minimal source backports for 7.4, 8.0, and 8.1 for people building from source.

PHP 8.2 reaches end of life on 31 December 2026. 8.2.35 fixes this issue, and it should not be the long-term runtime.

There is no complete workaround. The PHP advisory describes temporary settings that reduce exposure to some paths, including removing a controllable memory limit and keeping request bodies small. Those steps do not make a server safe. The patched release is the fix. LC Solutions does not publish exploit steps.

Action: update PHP and restart workers

Official records

Related: CVE-2026-109619 · Both advisories · Ask LC Solutions