Critical · CVSS 4.0 base 9.2

CVE-2026-109619

CVE-2026-109619 is a critical PHP vulnerability, also tracked as GHSA-6wmf-4rv5-p3rp. PHP calls it remote code execution via stale global state. The PHP Group scores it CVSS 4.0 base 9.2. It was disclosed on 21 October 2026 with CVE-2026-109618. Reporters describe it as a use-after-free: memory from one request is used again after it has been freed.

What goes wrong

A PHP worker handles many requests. Some global fields temporarily point into memory owned by the current request. If a fatal error interrupts cleanup, or a late diagnostic recreates state after cleanup, those fields can still point at freed memory. A later request on the same worker can read or branch on that stale state before normal initialisation replaces it.

No login is required for the vulnerable code paths PHP described. An attacker’s follow-up request has to land on the same worker. A larger worker pool lowers the chance of each attempt. It does not remove the flaw. PHP confirmed command execution on mod_php, and, for one of the confirmed cases, on PHP-FPM when the application then performs a suitable operation.

Who is affected

The same ranges as CVE-2026-109618: PHP 8.5 before 8.5.12, PHP 8.4 before 8.4.27, PHP 8.3 before 8.3.36, and PHP 8.2 before 8.2.35. Older supported-by-vendors branches are affected as well. Web SAPIs in scope include PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP, and LiteSpeed.

The fix

Install PHP 8.5.12, 8.4.27, 8.3.36, or 8.2.35 and restart every worker. Distribution packages that include this patch are the right update on Linux. PHP 8.1 and older need a vendor backport or an upgrade. PHP published minimal source backports for 7.4, 8.0, and 8.1.

Temporary settings in the official advisory, including turning off session upload progress before request parsing and, on PHP 8.5, turning off fatal-error backtraces, block confirmed paths only. They leave other variants open. Updating is the only complete fix. This page stops at that impact and the patch. It does not describe how to trigger the bug.

Action: update PHP and restart workers

Official records

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