Threat Feed

CVE-2026-109618: PHP · Remote code execution

Exploitation: In the wild · CVSS 9.2 Critical · Unauthenticated · Published 2026-10-21

Description

PHP uses longjmp() for out-of-memory (OOM) errors to exit the current context and abort handling of the request. Some contexts may not properly account for this scenario and leave request memory in an uninitialized state before performing an allocation. The subsequent request cleanup procedure may read or branch on this memory. Multiple OOM strategies can consistently trigger this condition and lead to remote code execution (RCE).

Enclave's analysis

CVE-2026-109618 is a critical Remote Code Execution vulnerability in PHP's core memory management. PHP uses longjmp() for out-of-memory (OOM) errors to exit the current context and abort request handling. In certain contexts, request memory is left in an uninitialized state before an allocation, and the subsequent request cleanup procedure reads or branches on this invalid memory. Multiple OOM strategies—including crafted multipart requests that bypass post_max_size checks—can consistently trigger this condition. The vulnerability is most reliably exploitable on Apache mod_php, which unconditionally invokes request shutdown even when request startup fails, enabling complete unauthenticated RCE validated over HTTP with default PHP settings. PHP-FPM is partially protected (exits the child on startup failure) but remains susceptible in post-startup OOM scenarios. The attack runs entirely before any application code executes, meaning every PHP web application is potentially in scope.

Fix

Upgrade to 8.2.35 or 8.3.36 or 8.4.27 or 8.5.12, whichever matches your release line.

Vendor advisory

Affected versions

ProductVulnerableFixed in
PHP8.2.x before 8.2.358.2.35
PHP8.3.x before 8.3.368.3.36
PHP8.4.x before 8.4.278.4.27
PHP8.5.x before 8.5.128.5.12

Seen in 6 sources