Critical PHP security update: what WordPress site owners should do now
Short answer: update PHP on your hosting today, not this week. On October 21, 2026 the PHP project fixed two critical bugs (named PHP2Shell, severity 9.2 out of 10) that let an attacker run code on a server without logging in. The NSA and CISA both say patch immediately, and security firms saw exploitation attempts the day the fixes landed. This is not a WordPress bug. It sits in the layer WordPress runs on, and no plugin can patch it for you.
If your site runs WordPress, it runs on PHP, so this one is yours. The check takes two minutes and the update is usually one click in your hosting panel or one email to your host.
What happened
The PHP project released PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 on October 21. Together they fix two related remote code execution vulnerabilities, collectively named PHP2Shell and scored CVSS 9.2 (critical). Both sit in parts of PHP that nearly every request touches. They affect nearly all PHP releases back to 5.4 and every common way of serving PHP on the web: Apache with mod_php, PHP-FPM, php-cgi, FrankenPHP and LiteSpeed. Beyond running code, they can also read the server's process memory, which can hold database passwords and API keys.
- CVE-2026-109618, via out-of-memory corruption. If a request hits PHP's memory limit at exactly the wrong moment, PHP can mistake half-finished internal data for valid data and corrupt memory. On Apache with mod_php an attacker can trigger this with an ordinary request, before WordPress even loads, and full remote code execution was demonstrated with default settings. It was also confirmed on PHP-FPM through application-level code paths.
- CVE-2026-109619, via stale global state. A fatal error at the wrong point can leave PHP pointing at memory that belonged to a previous request. The next request on the same worker then reuses that freed memory. A crash was confirmed, and the reporter demonstrated remote code execution against a real application on Apache with mod_php.
The technical detail and update instructions per system are in the php.net security advisory, and the PHP Foundation's post explains how the bugs were found.
Why the rush: attacks have already started
This is not a theoretical warning. SecurityWeek reports that proof-of-concept exploits were circulating before the patches arrived, and that WatchTowr, Hadrian, Patchstack, Cloudflare and Vega all observed exploitation attempts on the day of release. WatchTowr had not seen a successful one yet at publication time, but said it does not expect that to last.
The official warnings are unusually blunt. The NSA advisory tells organizations to inventory everything running PHP, patch it, replace end-of-life versions, and take systems offline if they cannot be patched. The CISA alert says the same: patch immediately, prioritize internet-facing systems, and take PHP 8.1-or-older systems offline until they can be updated. The Associated Press reports the FBI issued a matching warning, and that several government websites, including the Finnish government's, took themselves partly offline for a few hours just to apply the fix.
Check your version in two minutes
In your WordPress admin, go to Tools > Site Health, open the Info tab and click Server. The PHP version line is what you want. The fixed numbers are:
- 8.2.35 or newer in the 8.2 line
- 8.3.36 or newer in the 8.3 line
- 8.4.27 or newer in the 8.4 line
- 8.5.12 or newer in the 8.5 line
If you are on 8.1, 8.0 or anything older, those lines are end of life. The PHP team published minimal source backports for them, but the real fix is moving to a supported version. WordPress recommends PHP 8.3 or greater.
How to update
- Stay in your current version line. Moving from 8.3.30 to 8.3.36 is a patch update and very rarely changes how sites behave. Jumping from 8.1 to 8.4 is a bigger step: take a backup first and click through the site after.
- Look in your hosting panel. cPanel calls it "MultiPHP Manager" or "PHP version"; hPanel, Plesk and managed WordPress hosts have the same thing under their own names. Pick the newest patched release in your line.
- Or send one email. "There was a critical PHP security release on October 21. Could you move my site to the latest patched version?" is enough for any host's support desk. Many managed hosts patch for you without being asked, but check Site Health anyway.
What this is not
It is not a bug in WordPress, your theme or any plugin, so the usual "update WordPress and your plugins" does not cover it. Security plugins work above this layer too. It is also not a reason to panic: it is a reason to do one small job today and move on.
Found by AI, fixed by people
There is an AI angle worth knowing. These flaws sat in PHP for decades, and proving they were exploitable needed a chain of reasoning at the edge of what human researchers could manage. AI-assisted research got there: the PHP Foundation credits Calif, OpenAI Codex Security and Wiz for the research and responsible disclosure, and says AI tooling has helped surface more PHP issues than before, with 15 CVEs published since July 1. The foundation is equally clear that people still make every call and write every patch. Tools find bugs faster than ever; experienced engineers decide the fix.
FAQ
Does AIRankWP protect against this? No. Our scan looks at content and AI-visibility issues on your site, not the server software under it. Because our analysis runs on your own server, we care about that layer being patched, but keeping it patched is a hosting job, not a plugin job.
Will updating break my site? A patch update inside your current line almost never does. If you are jumping to a newer line, back up first and click through your key pages after.
Is anyone actually attacking yet? Yes. Several security firms observed exploitation attempts on release day, and public proof-of-concept code is circulating. Patching today puts you ahead of the curve.
My host already updated. Anything left? Confirm the number in Site Health, then keep WordPress, themes and plugins updated as usual. That is the whole routine.