Urgent: Two Critical PHP RCEs (CVE-2026-109618, CVE-2026-109619) — Fixed in 8.2.35, 8.3.36, 8.4.27, 8.5.12
PHP shipped emergency fixes on 21 October 2026 for two unauthenticated remote code execution flaws rated CVSS v4.0 9.2. Upgrade, restart every PHP process, and use the interim mitigation only as a bridge.
Update your PHP now. On 21 October 2026 the PHP project released 8.2.35, 8.3.36, 8.4.27 and 8.5.12, fixing two critical vulnerabilities, both rated CVSS v4.0 9.2. Both are unauthenticated remote code execution in PHP itself — not in a framework or a plugin — so almost every PHP site is in scope. Every earlier version on those branches is affected.
What happened
- 20 October: PHP announced an emergency security release for 21 October at 14:00 UTC. The same day, details began to leak on social media and in a since-deleted Hacker News post.
- 21 October: the releases and both advisories were published; NVD listed both CVEs the same afternoon.
- Reproduced: watchTowr reported reproducing CVE-2026-109618 and published an FAQ.
- Exploitation: at release time, PHP's advisories did not report exploitation in the wild. Update, 22 October: watchTowr now reports exploitation observed in the wild since 21 October through its honeypot network, and Cloudflare's CTO said Cloudflare was already seeing early attacks. Neither CVE is in CISA's KEV catalog yet; do not wait for it.
The two vulnerabilities
- CVE-2026-109618 — RCE via out-of-memory corruption (GHSA-w8hw-w9fx-j79w). When PHP runs out of memory in certain contexts, it exits with request memory in an invalid state that the shutdown procedure then processes. Multipart request parsing can be driven into that condition before any application code runs. Remote code execution was validated against Apache mod_php with default limits; PHP-FPM is assessed as susceptible, though no complete FPM exploit has been demonstrated.
- CVE-2026-109619 — RCE via stale global state (GHSA-6wmf-4rv5-p3rp). Error, session and extension state that belongs to one request can survive into the next request on the same worker, causing a use-after-free. The session upload-progress path was validated as remote code execution against both mod_php and PHP-FPM, unauthenticated.
Which versions are fixed
- Supported branches: upgrade to 8.2.35, 8.3.36, 8.4.27 or 8.5.12 (or later).
- PHP 8.1, 8.0 and 7.4 are end-of-life and get no official release. Given the severity, the PHP security team published minimal source-level backports for these three branches, meant for people who build PHP from source or have no LTS vendor. If your PHP comes from a distribution or an LTS vendor, ask them whether they ship a backported package.
- Anything older (7.3, 5.6 …) gets nothing. Upgrade or migrate.
If you cannot update today
PHP states plainly that updating is the only complete mitigation. The advisories list partial measures:
- set
session.upload_progress.enabled = 0— this closes the confirmed session path of CVE-2026-109619, but not the others; - on PHP 8.5, set
fatal_error_backtraces = 0; - for the out-of-memory path, consider an administratively enforced
memory_limit = -1together with tight request limits at your web server (post_max_size, a frontend body-size cap, fewer input variables and lower nesting).
The upload-progress switch is cheap and almost never breaks anything. Put it in a file of its own under PHP-FPM's conf.d directory (for example /etc/php/8.4/fpm/conf.d/99-upload-progress-off.ini) for every installed PHP version:
session.upload_progress.enabled = Off
Then reload PHP-FPM, check that no pool, .user.ini or .htaccess turns it back on, and confirm with php-fpm8.4 -i | grep upload_progress. The handler runs while PHP parses a multipart upload — before your application code — which is why it matters even on sites that never use the feature. The only thing it disables is the session-based upload progress API; modern upload progress bars (WordPress media, Roundcube and most JavaScript uploaders) measure progress in the browser and are unaffected. Keep the setting in place until you have confirmed the patched version is running. On end-of-life PHP that will never receive a packaged fix, it may be the best protection available until you upgrade.
What to do now
- Inventory every PHP you run. Not just the version your site uses — every installed branch, every PHP-FPM pool, every CLI binary that cron or a queue worker calls, and every container image with PHP inside. Old branches left installed "just in case" are still attack surface if something can reach them.
- Find out when your patch arrives. Upstream ships source; your packages, container images and hosting panel follow on their own schedule — Patch Released Is Not Patch Installed shows how to see where the fix is and what to do in the gap.
- Find your end-of-life PHP. For servers on 8.1 or older the real fix is an upgrade or a move — some package sources have stopped publishing for old operating systems entirely (Ubuntu 20.04 packages, for example, have been withdrawn from
ppa:ondrej/php). See End-of-Life Is a Security Setting. - Restart, don't just install. Reload every PHP-FPM service and restart long-running PHP processes — queue workers, schedulers, Octane/Swoole/RoadRunner servers, websocket daemons. They keep the old, vulnerable binary in memory until they restart. See You Patched PHP. Did You Restart It?
- Stop advertising your version. Set
expose_php = Offso responses no longer carry anX-Powered-By: PHP/x.y.zheader that tells a scanner exactly which hosts to try first. - Look back. Check your web server and PHP logs for unusual multipart uploads and crashes in the days before you patched.
How TCSR helps
A TCSR scan reports the PHP version your server advertises in its Server and X-Powered-By headers and flags the disclosure itself, and Audit-plan scans match detected component versions against the NVD vulnerability feed, which now lists both CVEs. A clean result is not proof you're patched, though: a server that hides its version can still be vulnerable, which is exactly why step 1 matters more than any external scan.
Sources
- GHSA-w8hw-w9fx-j79w — RCE via OOM corruption (CVE-2026-109618) — php-src
- GHSA-6wmf-4rv5-p3rp — RCE via stale global state (CVE-2026-109619) — php-src
- PHP: News Archive — advance notice of the 21 October 2026 security release — php.net
- PHP warns admins of two critical flaws, emergency patches coming tomorrow — BleepingComputer
- PHP Remote Code Execution FAQ: CVE-2026-109618 & CVE-2026-109619 — watchTowr
- PHP supported versions — php.net
- PHP manual — Session upload progress — php.net