On October 21, 2026, the PHP project released emergency fixes for two critical vulnerabilities, CVE-2026-109618 and CVE-2026-109619, which the security press nicknamed "PHP2Shell". Both let an attacker run their own code on a web server without logging in to anything. Four weeks later, on November 19, two more critical PHP fixes followed.
These are not WordPress bugs, but every WordPress and WooCommerce site runs on PHP, so every one of them is affected until its server is updated. This post explains what happened in plain English, how to check whether your site is patched, and why sites on older PHP versions can't be patched at all.
What happened
PHP's own security advisories describe four critical flaws:
- CVE-2026-109618, "RCE via OOM corruption" (October 21). When PHP runs out of memory at the wrong moment, it can leave a request's memory in a broken state. An attacker who triggers that on purpose can run code as the web server's user. The advisory confirms unauthenticated remote code execution, most directly on Apache with mod_php.
- CVE-2026-109619, "RCE via stale global state" (October 21). PHP can reuse leftover state from a previous request before it has been reset, which again can lead to code execution without logging in.
- CVE-2026-129289, PHP-FPM request smuggling (November 19). On servers where the web server keeps its connection to PHP-FPM open between requests, an attacker can sneak a second, forged request through and run PHP code of their choosing.
- CVE-2026-115560, session serializer mismatch (November 19). In some configurations, data an attacker controls can be read back as PHP objects, which can lead to code execution.
Whether a particular server can actually be attacked depends on how PHP is set up: Apache with mod_php, PHP-FPM behind nginx, LiteSpeed and others are affected differently. That is exactly why the safe answer is the same for everyone: run a fixed version.
Which PHP versions are fixed
| Branch | Fixes the October flaws | Fixes all four |
|---|---|---|
| PHP 8.5 | 8.5.12 or later | 8.5.13 or later |
| PHP 8.4 | 8.4.27 or later | 8.4.28 or later |
| PHP 8.3 | 8.3.36 or later | 8.3.37 or later |
| PHP 8.2 | 8.2.35 or later | 8.2.36 or later |
| PHP 8.1 and older | No fix | No fix |
That last row matters. PHP 8.1 and older are end of life, and the advisories list every older version as affected. According to WordPress.org's statistics, about 31% of WordPress sites run PHP 8.1 or older. For those sites, the PHP project hasn't released a fix, and it won't.
How to check your site
- In the WordPress admin, go to Tools → Site Health → Info → Server and note the full PHP version, for example 8.3.37.
- Compare it with the table above. The number after the second dot matters: 8.3.35 is not fixed; 8.3.37 is.
- If you're on shared or managed hosting, updating PHP is your host's job. If the version is behind, ask them when they're applying the fix.
- If you manage your own server, update the PHP packages and restart PHP-FPM or the web server.
- If you're on PHP 8.1 or older, you need a newer PHP version, not a patch. Our PHP 8.2 end-of-life guide walks through upgrading safely.
If you can't update PHP-FPM yet: PHP's advisory for the request-smuggling flaw says to turn off backend connection reuse until you can upgrade. Leave
fastcgi_keep_connoff in nginx, orenablereuseoff in Apache's mod_proxy_fcgi. And never expose PHP-FPM directly to the internet.
The real lesson: layers you don't control
A WordPress site is a stack of software from different people: PHP from the PHP project, WordPress from its core team, a theme from one company, and a plugin from a different developer for every feature. Each layer has its own vulnerabilities and its own update schedule. PHP2Shell is a reminder that even the bottom layer can break, and that fixing it depends on someone actually applying the update.
No platform is immune to vulnerabilities. Custom software runs on a language runtime too (ours run on Node.js), and that needs security updates like anything else. The difference is how many layers there are and who is responsible for them. A custom platform has far fewer third-party pieces, no plugin marketplace, and automated dependency checks that can flag a vulnerable package as soon as it's published, with someone accountable for acting on it.
Common questions
Do I need to update WordPress or my plugins to fix this?
No. These flaws are in PHP itself, so the fix is a new PHP version on the server. Keep WordPress and plugins updated anyway; they have vulnerabilities of their own.
Has my site been attacked?
There's no simple way to tell from the outside. Look for admin users you don't recognize, files that changed when nobody was working on the site, and unexpected redirects. Ask your host whether they saw attempts against these CVEs.
Does a security plugin protect me?
Not reliably. Some of these flaws are triggered before WordPress, and therefore any plugin, even starts running. Updating PHP is the fix.
Sources:
- PHP security advisories:
- PHP 8 changelog
- WordPress.org PHP version statistics
Originally published on cusicdigital.com. Not sure what your site runs on? A WordPress website audit checks PHP, WordPress, the theme and every plugin.
Top comments (0)