- Affected (CVE.org)
- PHP 8.2 before 8.2.35, PHP 8.3 before 8.3.36, PHP 8.4 before 8.4.27, PHP 8.5 before 8.5.12
- Fixed in
- 8.2.35, 8.3.36, 8.4.27, 8.5.12
- Fix by
- Oct 29, 2026
CVE-2026-109618 is an unauthenticated remote code execution flaw in PHP, disclosed and fixed by the PHP project on 21 October 2026.
How it works: PHP's advisory describes code execution through memory corruption during out-of-memory handling. When a request exhausts its memory, the out-of-memory handler can interrupt PHP while request data is only partly set up. Request cleanup may then treat that half-built data as valid, and acting on it corrupts memory. PHP says it validated the issue over HTTP against Apache mod_php, with code running as the web worker account. NVD lists CWE-416, CWE-755, CWE-824 and CWE-1325.
Scores: PHP, as the CVE Numbering Authority, rates the flaw CVSS v4.0 9.2 Critical. NVD rates it CVSS v3.1 9.8 Critical, with vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. Red Hat rates it Important, CVSS v3.1 8.1, with attack complexity high. PHP's v4.0 vector sets attack complexity to high with attack requirements present, while NVD's v3.1 vector sets attack complexity to low, which helps explain its higher score.
Exploitation: Amazon Threat Intelligence says the flaws are now being broadly exploited in the wild; its MadPot honeypots logged a first attempt on 17 October, four days before disclosure, and it says it is unclear whether the attempts would have worked on real systems. watchTowr's FAQ states that exploitation has been observed in the wild through its Attacker Eye honeypot network, and watchTowr told SecurityWeek that the exploits being sprayed either do not work, test for timing differences or crash the target. Cloudflare reports attack traffic targeting its customers. CISA's 21 October alert said it had not observed exploitation at publication, and a CISA SSVC entry in the CVE record lists exploitation as none. The CVE is not in the CISA KEV catalog as of version 2026.10.23. FIRST EPSS rates it 11.8%, in the 96.1st percentile, as of 24 October.
Affected: PHP before 8.2.35, 8.3 before 8.3.36, 8.4 before 8.4.27 and 8.5 before 8.5.12, in any setup serving web requests including PHP-FPM, Apache mod_php, php-cgi, FrankenPHP and LiteSpeed, with mod_php at the highest risk. Some reports, including watchTowr's FAQ and Cloudflare, cite PHP 5.4 and later; PHP's own advisory lists only the versions above. PHP 8.1 and older are end of life with no upstream fix, though Ubuntu has shipped patched packages for some older releases. Qualys says 71% of 156 million PHP installations with a known version, in anonymized data from over 10,000 of its customers, run end-of-life or end-of-support versions 5.4 to 8.1.
Workaround: PHP says only updating fully mitigates it. As a partial measure, set memory_limit=-1 in a way applications cannot override; this reduces exposure but is not a fix. Restart all PHP workers after any change.
Fix: Update to 8.2.35, 8.3.36, 8.4.27 or 8.5.12, or vendor packages such as Ubuntu USN-8948-1 or USN-8948-2, Debian DSA-6574-1 or DLA-4848-1, or Red Hat's RHSA updates for RHEL 8, 9 and 10, then restart all PHP workers.
Updated Oct 24, 2026. Changed: Updated EPSS and KEV version to 24 October; added Qualys EOL/EOS finding.
AI-written summary, Oct 21, 2026 Confirm details in the vendor advisory before acting. Source: GitHub
