PHP Remote Code Execution Vulnerabilities in the PHP Core

Release Date: 22nd October 2026

Impact : CRITICAL

TLP Rating: Clear

The Department of Communications and Digital Transformation (DCDT) through CERT Vanuatu (CERTVU), provides the following advisory.

This alert is relevant to Organizations and System/Network administrators that utilize the above product(s). This alert is intended to be understood by technical users and systems administrators.

What is it?

The PHP project published a security release on 21 October 2026 (14:00 UTC, which was 01:00 on 22 October in Vanuatu) that fixes two critical remote code execution (RCE) vulnerabilities in the PHP core. This advisory replaces the advance notice CERTVU issued before the release. Both flaws are rated CVSS v4.0 9.2 (Critical), with a network attack vector, no privileges required and high attack complexity, and the same five weaknesses are listed for each: CWE-416 (use after free), CWE-755, CWE-824, CWE-1325 and CWE-1419.

CVE-2026-109618 is an RCE through out-of-memory (OOM) corruption. PHP uses longjmp() to handle out-of-memory errors. If an allocation fails while request memory is only partly initialized, the early exit leaves invalid internal state, and request cleanup then treats it as valid. Oversized or malformed multipart requests are one way to reach the out-of-memory condition. The PHP advisory states the confirmed impact is unauthenticated RCE as the web worker account, validated against mod_php with default settings, where an unauthenticated request triggers the attack before any application code runs.

CVE-2026-109619 is an RCE through stale global state. A persistent PHP worker can keep request-owned internal state that points to memory freed after a previous request. Fatal errors, including out-of-memory errors and execution timeouts, or diagnostics emitted during shutdown can leave this state unreset, and a later request on the same worker may use it before normal initialization, causing a use-after-free. Confirmed early users of the stale state are INI diagnostics and session upload progress handling, and the PHP 8.5 fatal_error_backtraces feature is the confirmed RCE path against mod_php.

PHP states that updating is the only complete fix for both flaws. The PHP announcement does not report exploitation in the wild, but a working exploit has been demonstrated for mod_php. CERTVU understood before the release that all PHP versions from PHP 5 onwards might be affected, whereas the PHP advisories list fixes only for PHP 8.2 to 8.5, with minimal source backports for PHP 7.4, 8.0 and 8.1 published as branches in the php-src repository rather than as releases. The PHP announcement does not give exact affected version ranges, while the GitHub advisories list versions before 8.2.35, 8.3.36, 8.4.27 and 8.5.12. Early reports cited a CVSS score of 10.0, which is not the official rating of 9.2. CERTVU rates this CRITICAL because PHP is very widely deployed, the flaws are unauthenticated and remotely reachable, and a demonstrated exploit exists.

Reference

  1. https://www.php.net/
  2. https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w
  3. https://github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp
  4. https://www.cyber.gov.au/alert/critical-vulnerabilities-in-php
  5. https://www.helpnetsecurity.com/2026/10/21/php-security-release-announcement-october-2026/
  6. https://www.cisa.gov/known-exploited-vulnerabilities-catalog