PHP before 8.5.12, 8.4.27, 8.3.36 and 8.2.35: update now
Two flaws in PHP can let someone run code on a server without logging in. Every WordPress site runs on PHP, so ask your host to confirm your server has the 21 October 2026 fix.
- Affected
- PHP 8.5: before 8.5.12
- PHP 8.4: before 8.4.27
- PHP 8.3: before 8.3.36
- PHP 8.2: before 8.2.35
- PHP 8.1 and older: all versions
- Fixed in
- PHP 8.5: 8.5.12
- PHP 8.4: 8.4.27
- PHP 8.3: 8.3.36
- PHP 8.2: 8.2.35
- PHP 8.1 and older: no fix released
- CVEs
- CVE-2026-109618
- CVE-2026-109619
- Being exploited
- Not reported by the sources below
What happened
On 21 October 2026 the PHP project released PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 to fix two vulnerabilities, each rated 9.2 out of 10 (CVSS v4.0). Either one can let someone run their own code on a server by sending it a crafted web request, without logging in to anything.
- CVE-2026-109618: when PHP runs out of memory part way through reading a request, the clean-up that follows can trust data that was never fully set up.
- CVE-2026-109619: some of one request's internal state can outlive the memory behind it, and the next request handled by the same PHP worker can use it.
PHP says the risk is highest with Apache's mod_php, where it has seen a working attack succeed before any site code runs. CERT-EU reports that early proof-of-concept code has started to circulate. Neither source says the flaws are being used in attacks yet.
Who is affected
Every server that uses PHP to answer web requests, which includes every WordPress site. That covers PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. WordPress itself, its plugins and its themes are not at fault, and updating them won't fix this: the fix is in PHP on the server.
PHP 8.1 and older no longer get releases from the PHP project. Some hosts and Linux vendors ship their own patched builds for older versions, often with version numbers lower than the ones above.
What to do
- Ask your host whether your server has the 21 October 2026 PHP security fix. Most managed hosts update PHP for you; a one-line email asking them to confirm is enough.
- If you run your own server, update PHP to 8.5.12, 8.4.27, 8.3.36 or 8.2.35 or later, or install your Linux vendor's patched package, then restart every PHP worker (PHP-FPM, Apache or LiteSpeed).
- If your site is on PHP 8.1 or older, plan a move to a supported version. Until then, check that your host or vendor provides a patched build.
- Leave session upload progress off. PHP suggests setting
session.upload_progress.enabled=0until its next regular release, because of a related, unlikely issue (CVE-2026-115560). WordPress doesn't use this feature.
If you can't update straight away, PHP's advisory lists settings that make the known attacks harder. It is clear that they reduce the risk but don't remove it, so treat them as a stopgap.
How to check
In WordPress, go to Tools, then Site Health, then the Info tab, and open "Server". The PHP version is listed there. A version at or above the ones in this advisory is fixed. A lower number may still be fixed if your host uses patched builds, so ask them if you're unsure.
Sources
- PHP security advisory, 21 October 2026
- PHP advance notice, 20 October 2026
- PHP informational advisory on session upload progress, 23 October 2026
- GitHub security advisory GHSA-w8hw-w9fx-j79w (CVE-2026-109618)
- GitHub security advisory GHSA-6wmf-4rv5-p3rp (CVE-2026-109619)
- CERT-EU security advisory 2026-018
- PHP 8 ChangeLog
For information: this is a summary for site owners written from the sources above, not a complete list of every affected version or setup. The sources have the full details.