The PHP security team shipped an out-of-band security release on 21 October 2026, after giving advance notice a day earlier. It fixes two critical vulnerabilities, both rated CVSS v4.0 9.2, that can allow unauthenticated remote code execution. If you manage WordPress servers, here is the short version of what to do and why.
Do this first
- Update to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35. The PHP team says there is no complete mitigation, and updating is the only safe choice.
- Verify the running version, not just the installed one. Your CLI and your FPM or web SAPI can be different binaries.
wp cli infoandphp -vshow the CLI, so confirm the web side too, for example withphp-fpm -v, or Site Health → Info → Server. - Restart PHP-FPM or Apache after the package update, so old workers don’t keep running vulnerable code.
- On PHP 8.1 or older, upgrade. The project no longer patches these. Some distros and LTS vendors backport fixes, so ask your vendor. The PHP security team also published minimal source backports for 7.4, 8.0 and 8.1 for people building from source.
- Don’t wait on
rpms.remirepo.net. The PHP team says it won’t have updates on release day. Use distribution packages or build from source.
What the bugs are
CVE-2026-109618 (OOM corruption): out-of-memory handling can interrupt PHP while internal request data is only partly initialized, and request cleanup may then treat that invalid data as valid.
CVE-2026-109619 (stale global state): request-owned internal state can outlive its freed memory, so a later request on the same worker may use it before normal initialization resets it.
Both sit in PHP’s core request handling, so they are reachable before WordPress loads. The affected setups include PHP-FPM, Apache mod_php, php-cgi, FrankenPHP and LiteSpeed. The PHP team rates mod_php highest, with a demonstrated exploit that triggers before any application code runs.
If you truly cannot patch today
The official advisory lists stopgaps. They reduce exposure to specific paths and do not make a server safe. The ones most relevant to WordPress servers:
memory_limit=-1, set in a way applications can’t override, such asphp_admin_valuein the FPM pool or Apache config. This matters on WordPress because core and plugins try to raise the limit withini_set()at runtime, whichphp_admin_valueblocks. Check that no pool, directory or app setting puts a finite limit back. Also note the trade-off: runaway scripts are no longer capped by PHP, so use a container or cgroup limit as the safety net. Don’t useRLIMIT_ASorRLIMIT_DATA, because they can trigger the vulnerable allocation failure.- A low
post_max_size, around 8M if you don’t need uploads and 32M if you do, withupload_max_filesizekept below it. Where you can, also cap request size, field count, multipart parts, header count and nesting depth at the web server or proxy. session.upload_progress.enabled=0, then restart every worker. Set it inphp.ini, the FPM pool or server config. Don’t rely onini_set()or.user.ini, since they apply too late. Test your upload flows afterwards.- On PHP 8.5,
fatal_error_backtraces=0, then restart workers.
Clean up your code too
The advisory also points at application-level hygiene, which is where WordPress developers have real influence:
- Remove invalid or deprecated settings applied per request that emit diagnostics before initialization. Hiding them with
error_reporting,display_errorsor@does not help. - Fix attacker-reachable fatal errors and execution timeouts, including failures in callbacks, upload or import processing, and cleanup. On a WordPress site, that means auditing plugins with importers, upload handlers and long-running hooks.
Staging checklist before the live push
For same-branch patch updates the risk is low. For a branch jump, update core, themes and plugins first, take a backup, enable WP_DEBUG and WP_DEBUG_LOG on staging, and test login, forms, WooCommerce checkout and uploads. Then read the debug log for deprecation notices.
Roadmap notes
PHP 8.2 reaches end of life on 31 December 2026, so plan your move to 8.3 or newer. PHP 8.6.0 is at RC3 and explicitly not for production.
Final thoughts
Treat this like any critical infrastructure patch: update, restart, verify the running version, then harden what you can’t fix immediately. Full technical details are in the GitHub advisories linked from the PHP.net announcement.
