Critical PHP Security Release: Your Version Number Won’t Tell You If You’re Patched

Illustration of a server, a PHP version number being inspected with a magnifying glass, and a shield showing both a green tick and a red cross, above the headline Critical PHP Flaws Hit Every Store

On 21 October 2026 the PHP project shipped an emergency release fixing two vulnerabilities, each rated CVSS 9.2, that allow unauthenticated remote code execution. No login. No plugin required. Every PHP web server is in scope, which means every WooCommerce store on the planet.

There is no WooCommerce patch and no WordPress patch for this. Nothing in your dashboard will fix it. And the check most people are being told to run — look up your PHP version in Site Health — will give a confident answer that is, for a large share of stores, simply wrong.

Here is what happened, how to tell whether your store is genuinely patched, and what to do in the five weeks before Black Friday traffic arrives.

Quick answer

PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12 contain the fix. Updating is the only complete mitigation — the PHP security team says so explicitly.

But your version number does not tell you whether you are patched. Linux distributions backport security fixes without changing the version string, so a site reporting “PHP 8.1.2” on Ubuntu 22.04 may be fully patched, while a site reporting “PHP 8.2.30” on an unmaintained server is wide open. Ask your host whether they have applied the 21 October PHP fix. That is the only question that resolves it.

What the two vulnerabilities actually are

Both flaws come from the same underlying theme: PHP getting interrupted partway through handling a request and then reusing state it should have thrown away.

CVE-2026-109618 — remote code execution via out-of-memory corruption. PHP uses a low-level jump to bail out when a memory allocation fails. If that happens while request data is only partly set up, the cleanup at the end of the request can read or branch on invalid state. Several quirks in multipart form parsing let an attacker force that out-of-memory condition while staying inside what look like normal limits.

CVE-2026-109619 — remote code execution via stale global state. Persistent PHP workers hold global state — error handling, sessions, objects, extension data. Some operations run before a request is initialised and can read state left by a previous request whose memory has already been freed: a use-after-free that can leak memory or run code.

The second one has a condition attached that matters for how worried you should be: the attacker needs the request that creates the bad state and the request that consumes it to land on the same worker process. On a busy store with many workers that is a matter of persistence, not luck.

Your exposure depends on how PHP runs

Most coverage flattens this into “everyone is equally doomed.” The advisories are more specific, and the difference is worth knowing.

Confirmed exposure by server setup

HIGHEST RISK

Apache mod_php — confirmed remote code execution on default settings, for both flaws.

CONDITIONAL RISK

PHP-FPM — the most common WordPress setup. Session-lifecycle RCE was validated against FPM with a dynamic pool.

LIKELY SUSCEPTIBLE

LiteSpeed / LSAPI, FrankenPHP, php-cgi — no complete exploit demonstrated in default configuration, which the advisory is careful to say is not the same as immune.

ALREADY HANDLED

WordPress.com, WordPress VIP, Pressable, WP Cloud — Automattic states these were patched in coordination with the PHP security team.

Takeaway: “we run FPM, not mod_php” lowers your risk. It does not remove it, and it is not a reason to delay the update.

The version-number trap

Every advisory on this, including WordPress.org’s and WooCommerce’s, tells you to check Tools → Site Health → Info → Server. Good advice as far as it goes — the problem is what people do with the number they find.

The three-part version number tells you which PHP branch you are on, not which patches are applied. Linux distributions maintain their own PHP packages and backport security fixes into them, leaving the upstream version string untouched and bumping only their own package revision. From the vendor trackers published alongside this release:

Same branch, opposite reality

PATCHED — SAFE

Ubuntu 22.04 LTS, package 8.1.2-1ubuntu2.28

Reads as PHP 8.1 — an end-of-life branch — yet the fix is shipped through standard, free security updates.

UNPATCHED — VULNERABLE

Any self-compiled or unmaintained 8.2.30

Reads as a supported branch and looks modern, but sits below 8.2.35 and has no fix at all.

Takeaway: a higher version number is not the same as a patched server. Debian shipped the fix as 8.2.35-1~deb12u1 on bookworm and 8.4.27-1~deb13u1 on trixie; Ubuntu shipped it across releases from 22.04 onwards. The package revision carries the fix, not the headline number.

This cuts both ways, and the second direction is the one that catches people out. If you are on an older branch and your distribution does not back-port — or the backport sits behind a paid support tier — you are genuinely unpatched. Ubuntu’s fixes for PHP 7.4 on 20.04 and PHP 7.2 on 18.04 both require an Ubuntu Pro subscription. Plenty of budget shared hosts do not carry one.

How to actually check

  1. Find your branch. In wp-admin, go to Tools → Site Health → Info → Server and read the PHP version. Note whether it shows a package suffix after the patch number — if it does, that suffix is the useful part.
  2. Check your host’s status page first. Most managed hosts published a notice within hours of the 21 October release. This is faster than a support ticket and usually definitive.
  3. If there is no notice, ask directly. Use this wording, which is hard to answer vaguely: “Has the 21 October 2026 PHP security release (CVE-2026-109618 and CVE-2026-109619) been applied to the server hosting my site, and were PHP workers restarted afterwards?”
  4. Insist on the restart. Installing the package is not enough. Long-running FPM and mod_php workers keep the old code in memory until they are recycled. A host that patched but did not restart has not finished.
  5. If you manage your own server, update through your distribution’s package manager rather than compiling, so you keep getting backported fixes, then restart PHP-FPM or Apache.

More than a third of WordPress sites cannot get this fix upstream

WordPress.org publishes live PHP version statistics across all WordPress installs. Checked against them on the day of writing, the picture is uncomfortable.

PHP branches in use across WordPress

Source: WordPress.org PHP statistics, 22 October 2026

64%

FIX AVAILABLE

On PHP 8.2–8.5, where the upstream patch exists. Still has to be applied.

36%

NO UPSTREAM FIX

On PHP 8.1 or older. Depends entirely on a distribution or host backport.

60%

BY 1 JANUARY 2027

Share on an unsupported branch once PHP 8.2 reaches end of life on 31 December 2026.

Takeaway: PHP 7.4 alone still runs roughly 16% of WordPress sites, and PHP 8.1 another 10%. For those stores the question is not “have I updated” but “does anyone still ship me security fixes at all.”

The PHP 8.1 trap for WooCommerce stores

WooCommerce has been telling store owners for weeks to get to PHP 8.1, because version 11.6 will require it. We covered that timeline in WooCommerce is dropping PHP 7.4.

Read those two messages together and there is a trap sitting between them. WooCommerce 11.6’s PHP 8.1 floor is a compatibility requirement, not a security one. PHP 8.1 stopped receiving upstream security support before this release landed. If your upgrade plan is “get to 8.1 before January,” you will arrive on a branch that php.net no longer patches — and you will have spent the migration budget to get there.

WooCommerce’s own advisory recommends PHP 8.3 or newer, and that is the number to put in the plan. Moving from 7.4 to 8.3 is barely more work than moving from 7.4 to 8.1: the breaking changes that bite hardest are concentrated in the 7.x to 8.0 jump. Skipping 8.1 and 8.2 saves you from repeating the exercise within a year, since 8.2 goes end-of-life on 31 December 2026 regardless.

What to do, by hosting setup

Your setup Who applies the fix Your job this week
Automattic platforms
WordPress.com, VIP, Pressable, WP Cloud
Done — patched in coordination with the PHP security team Nothing for this flaw. Still plan your 8.3 move.
Managed WordPress host Them, usually within days Check the status page. If silent after 48 hours, open a ticket using the wording above.
cPanel / shared hosting Them, but you may be able to switch branch yourself Ask whether it is applied. If you are on 8.1 or below, use the PHP selector to move to 8.3 on staging first.
VPS or dedicated, self-managed You Update today via your package manager and restart workers. This is the highest-urgency group.

If you genuinely cannot patch today

The advisories list interim measures, and they are worth applying — but be clear-eyed about what they buy you. The PHP security team states plainly that updating is the only complete mitigation, and that no generic configuration change closes the stale-state flaw.

Partial mitigations — reduce exposure, do not remove it

  • Set session.upload_progress.enabled=0 and restart all workers. This blocks the demonstrated session path, and is worth keeping off permanently if you do not use the feature.
  • On PHP 8.5, set fatal_error_backtraces=0 and restart workers.
  • Keep post_max_size conservative and limit upload counts and input nesting at the edge.
  • Do not reach for RLIMIT_AS or RLIMIT_DATA — the advisory warns these can trigger the vulnerable code path.

For an unpatched, self-managed server on an old branch, the UK National Cyber Security Centre’s guidance — quoted in WooCommerce’s own advisory — is to consider taking the system offline until it can be fully mitigated.

A web application firewall helps at the margins, and several hosts deployed rules within hours. Treat it as a speed bump rather than a fix: WAF rules target known request shapes, and these flaws can be reached through ordinary-looking multipart requests. This is the same limitation we covered in why antivirus alone won’t protect your website.

Common mistakes

  • Treating the version number as the answer. Covered above, and it is the single most common error this week.
  • Patching without restarting workers. The old code stays resident in FPM and mod_php processes until they recycle.
  • Assuming WordPress or WooCommerce will push a fix. They will not, and both have said so. This lives below the application layer.
  • Jumping branches on production in peak season. A PHP major-branch move can break plugins. Patch within your current branch now; schedule the 8.3 migration deliberately, on staging, ideally after the holiday peak.
  • Checking only your storefront. Staging sites, old subdomains and that forgotten landing page on the same server are all PHP installs on the same box.

Advanced notes

Two details matter if you run your own infrastructure. First, the stale-state flaw needs the producing and consuming requests to hit the same worker, so setting pm.max_requests=1 recycles workers aggressively and removes the reuse window — at a real throughput cost that you should not take on five weeks before Black Friday unless you have no alternative. Second, for mod_php specifically, directory-level .htaccess and php_value directives are applied before request startup, which is exactly what makes mod_php the confirmed-RCE case. If you are running mod_php on a store, this release is the argument for moving to FPM that you have been putting off.

What if you were already hit?

These flaws were disclosed on 21 October, so the exposure window for most stores is short. But unauthenticated RCE running as the web server account is about as serious as it gets, and the resulting compromise rarely announces itself — card skimmers injected at server level are designed to look normal. If anything feels off, work through the signs of a hacked WooCommerce store that owners miss before you assume you are fine, and review your broader posture against network security basics.

Frequently asked questions

Do I need to update WordPress or WooCommerce for this?

No. Both projects have confirmed no update is required or planned. The vulnerability is in PHP itself, below the application layer.

My host says they added WAF rules. Is that enough?

A useful stopgap, not a fix. Ask specifically whether the PHP packages have been updated and the workers restarted. A host that answers only “we have WAF rules in place” has not answered the question.

I’m on PHP 8.1 and my host says I’m patched. Can that be true?

Yes, and this is the most misunderstood part of the whole release. Distributions such as Ubuntu and Debian backport security fixes into older branches without changing the upstream version number. Ubuntu 22.04 shipped a fixed PHP 8.1 through standard updates. You should still plan a move to 8.3, because that safety net depends on your distribution’s support window rather than PHP’s.

Should I jump straight to PHP 8.5?

For most stores, 8.3 or 8.4 is the better target. WooCommerce recommends 8.3 or newer, and plugin ecosystem support for the newest branch always lags. PHP 8.5 is fine if your stack is modern and well tested.

Is PHP 8.2 a safe place to land?

It is patched today, but it reaches end of life on 31 December 2026. Landing there now means repeating this migration within roughly ten weeks.

How do I know the workers were actually restarted?

On a self-managed server, compare the PHP-FPM master process start time against when the package was installed. On managed hosting, ask the host to confirm the restart explicitly — a competent provider will answer directly.

Your next step

Do one thing today: open your host’s status page, and if there is no notice about the 21 October PHP release, send the ticket using the wording in step three. Everything else here — the 8.3 migration, the mod_php move, the staging test — can be scheduled. Confirming your server is patched cannot. With holiday shipping deadlines already published, every week from here carries more traffic and more card data than the last.