By Mark Allford, Acting CTO

If your security plan is “we patch when the vendor tells us to”, this week retired it. Two flaws in the PHP engine let an attacker run code on a web server without logging in; the technical details leaked a day before the fix existed, attacks were observed before the patch shipped, and the UK’s National Cyber Security Centre told organisations to update immediately or take affected systems offline. The question this week asked was not “how fast can you patch?” It was “do you know what you are running, and can you make a decision about it in hours?”

What actually happened

PHP2Shell is the name given to CVE-2026-109618 and CVE-2026-109619. Both sit in the PHP engine itself, not in any particular application, which is why the exposed list reads like a roll call of the web: WordPress, Drupal, Joomla, Magento, MediaWiki, Laravel, Symfony, Nextcloud, phpMyAdmin and Roundcube among them. Because the bug fires before application code runs, maintenance mode and most web application firewall rules do not help. The fixed releases are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35; anything older gets source backports at best, and the PHP core team has said the patches are the only permanent fix.

The timeline is the part worth sitting with. The bugs were reported to PHP in August, found with significant help from AI tooling by researchers at Wiz, OpenAI and a firm called Calif. On 20 October, the details leaked, and a third party confirmed working remote code execution. At 07:43 UTC on 21 October, Cloudflare reported early attacks. The patch landed at 14:00 UTC that afternoon. That is roughly a day in which the attackers had the details, and the defenders had nothing but advice.

The advice itself is new territory. The NCSC said to update immediately and, if you cannot, consider taking the system offline until it is mitigated; CISA and CERT-EU issued their own critical advisories the same day. Governments in the Netherlands, Finland, France and Denmark pulled sites. The Wikimedia Foundation took systems down as a precaution. The Prime Minister of Japan posted on X asking companies to check whether their public websites run PHP. When national leaders are issuing patch guidance, the security team’s job has stopped being technical and become operational.

It was not only PHP

The same seven days delivered three more incidents that each would have led the news in a quieter month. GitLab patched CVE-2026-97229, a CVSS 10.0 unauthenticated code execution flaw in the CI/CD regular expression compiler affecting self-managed instances, reported to have existed in the product since 2014. LiteLLM, an open-source AI gateway many teams install without a second thought, had its 1.107.0 release hijacked on 21 October: for about two hours, every PyPI wheel and the Docker tags, including latest, carried a credential stealer and a remote code loader that ran on any Python start in the affected environment. And eMudhra, a public certificate authority trusted by every major browser, was found to have published intermediate CA certificates whose private keys were small whole numbers. One of them was the number four. A researcher recovered all eight keys from the public certificates in under a second, and Google, Mozilla, Apple and Microsoft blocked them within days.

Put those together, and you have the full stack failing in one week: the runtime your website runs on, the pipeline you build with, the AI library you installed yesterday, and the trust layer that is supposed to prove a website is who it says it is.

Where the panic is wrong

Here is the concession. Most organisations do not need to take anything offline, and most did not. The headline figure that PHP powers around seven in ten websites measures the public web, not the typical UK mid-market estate, where the exposed PHP is usually a marketing site at an agency, a bundled admin console on an appliance, or an internal wiki nobody owns. The exploit is real, but it needs an internet-facing PHP endpoint, and it needs you not to have patched. If you knew your estate on Monday, this was a long Tuesday, not a crisis.

That “if” is the whole point.

The three things that changed

First, discovery has sped up and will not slow down. These PHP flaws had been present in the codebase for over a decade and were found with AI assistance in weeks. The same tooling is available to attackers. The comfortable gap between a bug existing and a bug being exploitable is closing, and the gap between a patch being announced and an exploit being public is now sometimes negative.

Second, “take it offline” is now a standard recommendation from national agencies, which means someone in your organisation needs the authority to do it. In most businesses I speak to, nobody has been given that decision in advance. The security lead cannot pull the public website without the marketing director, the marketing director cannot without the CEO, and by the time the call is made, the window has closed either way. That is a governance gap, not a technology gap.

Third, the supply chain is now part of your perimeter whether you have signed a contract with it or not. LiteLLM’s compromise needed no clever exploit, just a stolen credential and a pipeline that trusted it. eMudhra’s failure needed no attacker at all. Pinning versions, verifying what you install, and knowing which secrets a given host can reach are no longer good practice for mature teams. They are the baseline.

What to do this week

The practical response is unglamorous. Build or refresh the inventory of every internet-facing system and every product that bundles PHP, including appliances and vendor-hosted portals; the Dutch national cyber security centre published a product list worth checking against. Patch what you can patch today. For anything you cannot, apply the PHP team’s temporary mitigations and decide, in writing, whether it stays online. If 1.107.0 of LiteLLM ran anywhere with outbound internet access, assume the secrets on that host have left and rotate them. Then look at the harder question: how long did each of those steps take, and who owned them?

That last question is the one we ask in every Cyber Maturity Assessment, and it is the one that separated organisations this week. Not the tooling, not the vendor, but whether anyone could say with confidence what was running, who could change it, and how fast. If you cannot observe it, you cannot operate or secure it. PHP2Shell was a reminder that the world no longer gives you time to find out.

Book a Cyber Maturity Assessment.