3 November 2026 · 6 min read · Updated 25 November 2026

PHP2Shell: what a small business should do

Two critical PHP flaws were fixed on 21 October 2026. What they are, which versions are safe and six questions to send your host or agency this week.

A brass padlock on the door of a server cabinet lit by a caged lamp

Scrolling LinkedIn in late October, you’d have thought the world was ending. Agencies and developers were raising the alarm and staying up all night fixing servers by hand. Hardly any of it told a business owner what to do.

So that’s the job of this post. If you own a website and somebody else runs the server, here is what PHP2Shell is, what the people who maintain PHP have said about it and six questions to send your host or agency this week. Every source is linked. Check me.

What PHP2Shell is

PHP is the programming language underneath WordPress and Magento. W3Techs counts it on roughly two thirds of the websites whose server language it can detect. On 21 October 2026 the PHP project released fixes for two critical flaws. The pair goes by one name: PHP2Shell.

Both are faults in how PHP handles memory while it reads an incoming request. Their records are CVE-2026-109618 and CVE-2026-109619, each scored 9.2 out of 10. In plain words, a stranger with no login can send a request to your site and end up running their own commands on the server. No password comes into it. On the most exposed kind of setup, PHP’s advisory says the attack can fire “before any application code runs”. Your plugins and your theme have no say.

The fixed versions are 8.5.12, 8.4.27, 8.3.36 and 8.2.35. A lower number on any of those four lines is affected. Wiz, one of the two firms that found the flaws, traces at least one of them back to PHP 5.4, which is more than a decade of releases. PHP 8.1 and older get nothing from the PHP project: its notice says some operating system and support vendors “provide backported fixes” and tells you to ask them.

Was the alarm justified? Yes. The UK’s National Cyber Security Centre wrote the same day that “organisations using any version of PHP are affected”. It added that anyone who can’t fix or mitigate quickly “should consider taking the system offline”. The posts on my feed were right about the size of it. They were written for other developers, though.

Was it used before the fix came out?

On LinkedIn I wrote that attackers were already using it by the time it was made public. I’ve since read the sources properly. That was too strong.

Amazon’s threat intelligence team saw an attempt in its decoy systems dated 17 October, four days before the fix. It also says “it’s unclear if any of these attempts would have succeeded in real-world systems”. The PHP Foundation says it had found no working exploit when it released the fix. Five days later, on 26 October, the US agency CISA added both flaws to its list of vulnerabilities known to be exploited.

Attempted before, confirmed after. The date that matters to you is 17 October, because Amazon advises checking for break-ins from then.

Six questions for your host or agency

You can’t patch this yourself. The WordPress update button won’t do it: Cloudflare’s note says updating website code or plugins doesn’t fix the flaw, because the flaw is in PHP itself. Whoever runs the server has to do it. Send them this.

  1. Which exact PHP version is my site running today, to the third number?
  2. On what date was it updated and was PHP restarted afterwards?
  3. If that number is lower than a fixed version, who supplied the fix? Send me their notice.
  4. Have the logs been checked for signs of a break-in from 17 October onwards? What did you look for?
  5. Is session upload progress switched off?
  6. If a firewall such as Cloudflare sits in front of my site, has the server behind it been patched too?

Question five needs a line of explanation. On 23 October the PHP project posted a follow-up about a third, less likely route in, CVE-2026-115560. Its advice is to switch off a setting called session upload progress “until the next regular bugfix release”. As I write, that release hasn’t arrived.

Question six is there because Cloudflare switched on blocking rules for its customers on 21 October, then told them to patch anyway.

How to see the version yourself

In WordPress, go to Tools, then Site Health, then the Info tab. Open the Server section and the PHP version is listed.

Magento works the other way round. Ask your agency which Magento version you’re on, because Adobe’s requirements table ties each release to the PHP it can run. Versions 2.4.4 and 2.4.5 run on PHP 8.1 only. That is one of the versions the PHP project has stopped updating. If your shop is on either, question three is the one to press.

What “fixed” looks like

The simple case is a number at or above 8.2.35, 8.3.36, 8.4.27 or 8.5.12.

The awkward case is a lower number that is safe anyway. Ubuntu 24.04 ships PHP 8.3.6 and patched it in place: the fixed package is 8.3.6-0ubuntu0.24.04.13. The PHP version it reports is still 8.3.6. So “8.3.6” on your Site Health screen could mean patched or wide open, which is why question three asks for the vendor’s notice. A host that has done the work can answer all six from its records.

What I did with my own servers

I look after my own. I gave Claude Code the brief I’d give a top security consultant: patch every server and every site, work through one server at a time, prove each site still works afterwards, sweep for any sign of a break-in and show me the plan before you start.

It checked 10 servers. It updated and restarted 7, one at a time. It tested 36 websites before and after every change. It moved 9 web apps off software that no longer gets security fixes and switched off 7 old sites nobody used. Three sweeps for a break-in found nothing. Its working time came to about 2.5 hours across the week. While it worked I made food and ate with my daughter.

It wasn’t flawless. One site went down for about three minutes. Claude found the cause, fixed it and wrote it into its report. My figure of 40 hours for an engineer doing the same by hand is an estimate. Nobody timed it.

The people who found the flaws worked the same way. Wiz says it used its own Atlas tool with Gemini 4 Argon and GPT-5.6 Sol. Its claim is that “a single researcher completed in a week what previously would have taken a world-class team months of work”. Calif, the other firm, is blunter: “No model is simply capable of unearthing ‘all bugs’ with simple prompts. At least for now.” The PHP Foundation uses AI to sort incoming reports and says a person makes every call.

The people patching by hand weren’t wrong. They were doing the slowest version of the right thing. I could judge the plan Claude showed me. If you couldn’t, don’t copy me: the six questions are your version of it.

One correction to my LinkedIn post. I said Node.js needed urgent fixes the same week. Node.js did ship a security release on 21 October: ten fixes, the worst rated high, in versions 26.12.1, 24.22.1 and 22.23.4. It had nothing to do with PHP2Shell. If your web app runs on Node, ask question one about that too.

What isn’t finished

I haven’t found a published case of a real site broken into before 21 October. That doesn’t prove there wasn’t one.

The fix for the third issue is still to come. There is a deadline behind it too. PHP 8.2 stops getting security fixes on 31 December 2026. A site patched to 8.2.35 last month has eight weeks of cover left. Ask your host now what happens in January.

Questions this answers

What is PHP2Shell?

It is the name for two critical flaws in PHP, CVE-2026-109618 and CVE-2026-109619, both rated 9.2 out of 10. They can let someone with no login run their own commands on the server behind a website.

Which PHP versions are fixed?

PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, released on 21 October 2026. PHP 8.1 and older get no update from the PHP project, so a fix has to come from the operating system vendor or a paid support vendor.

How do I see which PHP version my WordPress site runs?

In the WordPress admin go to Tools, then Site Health, then the Info tab and open the Server section. The number shown can be misleading on its own, so ask your host whether the fix is in place.

Was PHP2Shell used in attacks before the fix came out?

Amazon saw an attempt in its decoy systems dated 17 October, four days before the fix. It could not say whether the attempt would have worked on a real site. CISA listed both flaws as exploited on 26 October.

Filed underAIE-commerceUK business

Send me a message.

I reply within one working day.

Your details are used to reply to you and for nothing else.