General

PHP2Shell: what the PHP security patch means for your website

A critical PHP flaw put WordPress, WooCommerce and Drupal sites at risk. What happened, how we kept every Siite client safe, and why we build in Astro.

Leonardo Miodrag By Leonardo Miodrag 21 October 2026 8 min read

On 21 October 2026 the PHP project released an emergency security update. PHP is the programming language behind WordPress, WooCommerce, Drupal and Joomla, and by the researchers’ own estimate it powers around 70% of all websites.

The flaws it fixes are about as serious as website security gets. Before the patch, an attacker could take control of a vulnerable server without a password, without an account, and without the website owner making any mistake at all.

If you are a Siite client, the short answer is that you are safe. Every client site we look after that runs on PHP was updated on the day the fix was released, and our sites built in Astro were never exposed in the first place. The rest of this article explains what happened, in plain English, and why it is one of the reasons we build most new websites the way we do.

The short version

What is PHP2Shell? PHP2Shell is the name given to two critical vulnerabilities in the PHP language itself, tracked as CVE-2026-109618 and CVE-2026-109619 and rated 9.2 out of 10 for severity. They allow an unauthenticated attacker to run their own code on a server running PHP, or to read passwords, login tokens and API keys from its memory. Because the flaw is in PHP rather than in any one application, a WordPress, WooCommerce, Drupal or Joomla site can be vulnerable even if its own code is perfectly secure. The fix is PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35, released on 21 October 2026.

QuestionAnswer
What is affected?Servers running PHP, going back to version 5.4
What could an attacker do?Take over the server, steal data, deface the site
Did they need a login?No
What fixes it?Updating to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35
Are Astro sites affected?No. A static Astro site does not run PHP

What actually happened

Most security problems you hear about are in a plugin or a theme. Someone wrote a contact form plugin badly, and every site that installed it is at risk until it is updated.

This one is different. The problem sits in PHP itself, the engine that every one of those plugins and themes runs on.

The security firm Wiz, working alongside Calif, OpenAI and the PHP team, found that PHP could leave a mess behind when a request ran out of memory at exactly the wrong moment. A later visitor to the same server could then reuse that leftover memory. With careful preparation, an attacker could turn that into one of two things:

  • Taking over the server. Wiz demonstrated this against fresh, fully updated installs of WordPress, Drupal and Joomla, without logging in.
  • Reading the server’s memory. That memory can hold passwords, login sessions, API keys and certificates that belong to other visitors or to the server itself.

Wiz put it bluntly: even a simple “Hello World” page running on an affected version of PHP could be vulnerable. Your developer doing everything right was not enough.

The flaw had been sitting in PHP for more than a decade. The PHP Foundation’s own write-up says the first signs of the underlying problem were spotted in 2024, but nobody could show a practical way to exploit it, and a fix kept stalling. What changed this year was AI. Frontier AI models made it practical to chain the bugs together into a working attack, and to adapt that attack to different servers in hours rather than months.

That last point matters for every business owner, not just this one incident. The same tools that helped researchers find and fix this flaw are available to attackers. Bugs that were once too complicated to bother exploiting are now within reach.

The patch, and a messy final 48 hours

PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 were released on 21 October 2026. The PHP Foundation was clear: if you run PHP, update now. PHP 8.1 and older no longer receive updates from the PHP project at all.

The release did not go quite as planned. According to the PHP Foundation, the two CVE numbers started circulating online on 20 October, a day early and with the wrong severity score. The release was brought forward by a day as a result. A video showing the attack working was published by mistake and copied around social media, and one software distributor published the fix more than six hours before the agreed time, which gave attackers a chance to study it before most site owners could install it.

In other words, the window between “the fix exists” and “attackers know how to use the flaw” was very short. That is exactly when it matters who is looking after your website.

Cloudflare, Google, AWS, Microsoft, Fastly and others also rolled out firewall rules to block known attack attempts. Those help, but every one of them says the same thing: a firewall is an extra layer, not a replacement for installing the update.

What we did for our clients

We look after websites on several platforms, because the right platform depends on the business. Here is where each one stood.

WordPress and WooCommerce sites. These run on PHP, so they were in scope. We updated PHP on every client site we host and manage on the day the patch was released, and checked each one afterwards. Clients did not need to do anything.

Shopify stores. Shopify is a hosted platform that does not run your store on PHP, and Shopify patches its own infrastructure. Nothing for our clients to do.

Astro websites. Not affected at all, and not because we were quick. There was simply nothing there for this attack to hit.

That last group is the one worth explaining.

Why Astro sites were never at risk

A traditional WordPress site builds every page at the moment someone asks for it. A visitor arrives, the server starts PHP, PHP asks the database for the content, assembles the page and sends it back. That happens on every single visit. It is flexible, but it means there is always a program running on the server, taking requests from anyone on the internet, and that program is what PHP2Shell attacked.

An Astro website works the other way round. The pages are built once, when we publish a change, and turned into finished files. When a visitor arrives, the server simply hands over a file that already exists. There is no PHP running, no database being queried on every visit and no login page for anyone to probe.

PHP2Shell needed a running PHP engine to attack. On a static Astro site, there isn’t one.

We want to be careful here, because no responsible agency should tell you any website is impossible to hack. Domains can be hijacked if the registrar account is weak. Email accounts can be phished. A third-party script added to a page can be compromised. Those risks exist whatever your site is built with, and we manage them for every client.

What Astro does is remove the largest and most common target: software running on the server, waiting for requests. Fewer moving parts means fewer things to patch, fewer things to break, and far fewer emergencies like this week’s.

Why we build most new websites in Astro

Security is one reason. It is not the only one, and it is not usually the one clients notice first.

It is fast. Because pages are ready-made files, they load almost instantly, especially on phones. Speed is part of how Google judges your site through Core Web Vitals, and it is part of whether a visitor stays long enough to call you.

It is secure by design. As above. There is far less on the server for anyone to break into, and nothing like the constant stream of plugin updates a typical WordPress site needs.

It is hassle-free. No weekly plugin updates, no “your site has been disabled” emails, no surprise compatibility problems after an update. You can still edit your own content. You just do not have to babysit the engine underneath it.

You still own it. An Astro site is a set of files that can be hosted almost anywhere. If you ever leave us, it goes with you. We cover why that matters in who owns your website.

For most businesses, that is the right trade. A plumber, a clinic, a solicitor or a restaurant needs a website that loads quickly, ranks, brings in enquiries and never needs thinking about. They do not need a server running a full application on every page view.

There are honest exceptions. If you run a large online shop, a membership site or something with complex logged-in features, a platform like Shopify or WooCommerce is often the better fit, and we build on both. The point is that we choose the platform for your business, not the other way round. When WooCommerce is the right answer, part of the job is keeping it patched, which is what we did this week.

What to do if your website is not with us

If your site runs on WordPress, WooCommerce, Drupal, Joomla or anything else built on PHP, ask whoever looks after it three questions today:

  1. Which version of PHP is my website running? It should be 8.5.12, 8.4.27, 8.3.36 or 8.2.35, or a version your hosting company has confirmed contains the fix.
  2. When was it updated? “On 21 October” is a good answer. “We’ll look into it” is not.
  3. Is my site on PHP 8.1 or older? If so, the PHP project no longer fixes it at all, and it needs upgrading, not just patching.

If you do not know who looks after your hosting, or you do not get a clear answer, that is worth fixing too. You can read more about what good hosting should include, or ask us to check.

Sources

Frequently asked questions

What is PHP2Shell? +

PHP2Shell is the name for two critical vulnerabilities in the PHP programming language, CVE-2026-109618 and CVE-2026-109619, rated 9.2 out of 10. They let an attacker run code on a server running PHP, or read sensitive data from its memory, without logging in.

Is my WordPress website affected? +

WordPress runs on PHP, so if your server runs an affected PHP version, yes. Researchers demonstrated a full takeover of an up-to-date WordPress install. The fix is updating PHP itself to 8.5.12, 8.4.27, 8.3.36 or 8.2.35. Updating WordPress or its plugins alone does not fix it.

Is WooCommerce affected? +

Yes, in the same way. WooCommerce runs on WordPress, which runs on PHP. If you have an online shop on WooCommerce, check that your host has updated PHP.

Are Shopify stores affected? +

Shopify does not run your store on PHP and it manages its own infrastructure, so Shopify store owners do not need to install anything for this issue.

Are Astro websites affected? +

A static Astro website does not run PHP at all. Its pages are prepared in advance and served as finished files, so there is no PHP engine for this attack to target.

Does a firewall like Cloudflare protect me? +

Cloudflare and other providers deployed rules that block known attack attempts, and that helps. Every one of them still says to install the PHP update, because a firewall is an extra layer and attackers adapt.

I am a Siite client. Do I need to do anything? +

No. We updated PHP on every client site we host and manage on the day the patch was released, and Astro and Shopify sites were not affected. If you have a question about your own site, get in touch and we will go through it with you.

Related reading

Ready to grow your business?

Book a 30-minute audit. We'll benchmark your website, ads, SEO and reviews, and send you a written plan whether you hire us or not.

Get my free growth planor call 0333 057 5140

You own everything. Month-to-month. No markup on ad spend.