Nexowide

PHP2Shell: Websites Go Offline Across Europe After AI Finds Critical Flaws in the Code Behind 70% of the Web

Two critical PHP flaws found by AI pushed governments, the BBC and Nintendo offline. Here's what PHP2Shell is, who was hit, and how to protect your website.

Rows of server racks inside a data centre
CERN data centre. Photo: Hugovanmeijeren / Wikimedia Commons, CC BY-SA 3.0

Wednesday was not a normal day on the internet. Government websites in Finland went dark. The Dutch parliament’s site stopped loading. In the UK, Edinburgh council’s website was unreachable, and so were BBC pages for Doctor Who and The Traitors.

Nobody was hacked, as far as we know. The sites were switched off on purpose, because two very serious security holes had just been found in PHP. PHP is the programming language that runs a huge share of the world’s websites, including every WordPress site.

The bugs now have a name: PHP2Shell. What makes the story even bigger is who found them. It wasn’t a human hacker. It was artificial intelligence.

Here is what happened, explained in plain English.

What Is PHP2Shell?

PHP is the behind-the-scenes code that builds many of the web pages you visit. You never see it, but it runs on the server every time you load a page on a WordPress blog, an online shop or a council website.

On 21 October 2026, the PHP team released an emergency fix for two critical flaws:

  • CVE-2026-109618 (described as “RCE via OOM corruption”)
  • CVE-2026-109619 (described as “RCE via stale global state”)

Both are rated 9.2 out of 10 for severity (CVSS v4.0). (Source: Wiz, CERT-EU)

In simple words, the flaws could let an attacker run their own commands on a website’s server, from anywhere on the internet, without a password. Security people call that “remote code execution.” It’s about as bad as a web bug gets. Once someone can run code on your server, they can steal data, plant malware or take the site down.

The UK’s National Cyber Security Centre (NCSC) said the flaws “may allow attackers to execute commands on any web server running PHP.” (Source: NCSC)

Cyber-security firm Wiz, one of the teams that found the flaws, called them “among the most severe vulnerabilities discovered in PHP, and arguably in software history.” (Source: Wiz)

Quick Facts at a Glance

WhatDetails
NamePHP2Shell
Bug IDsCVE-2026-109618 and CVE-2026-109619
Severity9.2 out of 10 (critical)
What an attacker can doRun code on the server without logging in
Who found itCalif and Wiz, using AI models
How long it was hiddenMore than 10 years
Fix releasedWednesday, 21 October 2026 (around 14:00 UTC)
Fixed versionsPHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35
No official fixPHP 8.1 and older (end of life)

Sources: Wiz, BleepingComputer, Tenable, php.net

AI Found the Bugs, and That Changes Things

For more than a decade, these bugs sat unnoticed in PHP’s code. (Source: Wiz)

This year, two security teams found them with the help of AI:

  • Calif, working with OpenAI, used OpenAI’s latest model to dig through PHP’s code. According to OpenAI, it was part of a coordinated disclosure, and OpenAI worked with the US Cybersecurity and Infrastructure Security Agency (CISA) and the White House Office of the National Cyber Director on the fix. (Source: Cybersecurity Dive)
  • Wiz found the same flaws on its own, also using frontier AI models, and reported them to PHP on 24 August. (Source: Wiz)

“Frontier models were critical to making this process practical, enabling us to develop and adapt working exploits across multiple applications in hours,” Wiz said. (Source: Wiz, , BBC News)

OpenAI described it as “one of the most impactful security issues in recent memory.” (Source: Cybersecurity Dive)

That’s the good news and the scary news in one story. AI helped defenders find a hidden danger. But the same tools can help attackers move faster too. Lukasz Olejnik of King’s College London told Reuters: “The scale is huge… And with AI exploitation may happen instantly, on a large scale.” (Source: Reuters)

Why Did So Many Websites Go Offline?

The plan was to keep the details secret until 22 October, but they leaked a day early, before the fix was ready. (Source: Sansec, Wiz)

That left website owners in a tough spot. Security agencies told them to patch at once, and if they couldn’t, to think about switching off.

“Where immediate remediation is not feasible, organisations should consider taking the system offline until it can be fully mitigated,” the UK’s NCSC said. (Source: NCSC)

So many organisations pulled the plug as a precaution.

Websites reported offline or unreachable on 21 October

Country / RegionWho went offline
FinlandCentral government public web services (shut down by state IT centre Valtori), National Land Survey
NetherlandsNCSC-NL, Tweede Kamer (parliament), RIVM health institute, MijnOverheid, DigiD, Data Protection Authority, Port of Rotterdam, KNVB, the five largest political parties, several hospitals
United KingdomEdinburgh and Oxford councils, Met Police website, BBC programme pages (Doctor Who, The Traitors)
DenmarkKombit services, including the national school platform
FranceLocal government sites (Interior Ministry), CNIL
Germany & AustriaCharité Berlin, University of Vienna, University of Freiburg, several hospitals
JapanNiconico, pixiv, BOOK WALKER, BASE and several online games
Global platformsNintendo, OBS Project, Something Awful; DeviantArt showed a “down for maintenance” page

Sources: BBC News, Reuters, NOS, LBC, The Record, Precursor Security

Note: Not every site above confirmed that PHP was the reason. Edinburgh council and the BBC, for example, did not confirm a link when BBC News asked. (Source: BBC News)

Valtori, Finland’s state IT centre, called its shutdown “precautionary, not in response to a breach.” (Source: Precursor Security)

What Did Governments Say? Europe vs America

Cyber-security agencies on both sides of the Atlantic moved quickly, but the tone was different.

AgencyRegionWhat they said or did
NCSC (UK)EuropePatch now; if you can’t, consider taking the system offline
CERT-EUEuropeFind PHP apps and patch fast; isolate internet-facing apps until fixed
NCSC-NL (Netherlands)EuropeAny PHP system reachable from the internet is “presumably vulnerable”
BSI (Germany)EuropeIssued an orange (level 3) warning
CISA (USA)AmericaHelped coordinate the fix with OpenAI; no emergency directive found as of 21 Oct
NSA (USA)AmericaWarned the flaws “often provide a direct path to the server’s file system or database”
Canadian Centre for Cyber SecurityAmericaIssued advisory AV26-1070; urged operators to patch or go offline
ACSC (Australia) & Japan’s cyber officeAsia-PacificUrged PHP users to update

Sources: NCSC, CERT-EU, NOS, Cybersecurity Dive, BleepingComputer, Reuters

In Europe, whole governments switched off. In the US, the response was quieter. We found no reports of major American websites going offline. US agencies worked mostly behind the scenes, and big US tech firms such as Cloudflare, Google, Microsoft, AWS and Akamai rolled out protective firewall rules. (Sources: Cloudflare, Wiz, Cybersecurity Dive)

Is Anyone Being Attacked Right Now?

The picture is still developing.

  • Cloudflare’s chief technology officer, Dane Knecht, said: “We are seeing early attacks emerging and are updating mitigations as new vectors show up.” He also called Cloudflare’s firewall protection “a STOPGAP only.” (Source: Tenable, CyberScoop)
  • Jake Knott of watchTowr said: “Whilst nobody has been successful to date, we don’t expect that will last long.” (Source: The Record)
  • More than 100 so-called “proof-of-concept” attack codes appeared on GitHub. Tenable could not verify them, and some may be fake or even malicious. (Source: Tenable)

In short, attackers are trying, but there was no confirmed successful break-in reported on the day the fix came out.

How Big Is the Risk? The Numbers

FigureNumberSource
Websites using PHP (where the language is known)69.3%W3Techs
Websites running on WordPress39.6%W3Techs
PHP servers exposed to the internetAbout 1.3 to 1.9 millionTenable
Of those, running old, unsupported PHPAbout 758,000CyberScoop

That “70% of the internet” figure you may have seen comes from PHP’s share of websites. It doesn’t mean 70% of sites have been hacked. (Source: W3Techs)

“PHP is everywhere. It quietly powers WordPress, Drupal, Joomla, and Magento sites, shared hosting platforms, control panels, and an awful lot of software that doesn’t even advertise that it runs PHP under the hood,” cyber-security company Huntress said. (Source: Huntress, , BBC News)

Don Smith of the Sophos Counter Threat Unit told the BBC that the hard part isn’t installing the fix. It’s finding every place PHP is running. “The use of PHP is pervasive, it can sit beneath public websites, content management systems, hosting platforms and third-party products, sometimes without even being obvious to the organisation using it.” (Source: BBC News)

I Have a Website. What Should I Do?

If you run a WordPress blog, an online store or any site on shared hosting, this one matters to you. Here is a simple checklist.

  1. Updating WordPress won’t fix this. The flaw sits in PHP itself, not in WordPress or your plugins. (Source: Cloudflare)
  2. Check your PHP version. In WordPress, go to Tools > Site Health > Info > Server. On cPanel hosting, look for “MultiPHP Manager” or “Select PHP Version.” You need 8.5.12, 8.4.27, 8.3.36 or 8.2.35, or newer. (Source: BleepingComputer)
  3. Running PHP 8.1 or older? Upgrade. These versions get no official fix. (Source: Tenable)
  4. Message your hosting company. Ask them directly: “Have you installed the PHP2Shell patch on my server?” Most shared hosts have to apply it for you. (Source: Cloudflare)
  5. Use a firewall as a stopgap only. Cloudflare has turned on protection for free and paid plans, but it only helps if all traffic goes through Cloudflare. (Source: Cloudflare, Patchstack)
  6. Watch for warning signs, like lots of “500 errors,” memory-limit errors or strange, oversized cookies. (Source: Wiz)
  7. If you suspect a break-in, change your passwords and keys. These bugs can leak passwords and API keys from server memory. (Source: Patchstack)
  8. Don’t install random “fix” plugins. They’re unverified and could make things worse. (Source: Patchstack)

The Bottom Line

PHP2Shell is a wake-up call. One hidden bug in a single piece of code nearly every website depends on was enough to push governments, hospitals and big brands offline in a single morning.

It also shows where security is heading. AI can now find problems that people missed for more than ten years. That gives defenders a powerful new tool, but it also means attackers get faster. For website owners the lesson is simple: keep your software up to date, and that includes the parts you can’t see.

The fix is out. If you own a website, check your PHP version today.

Sources

  1. BBC News – Websites taken down across Europe as critical cyber-security update issued
  2. Reuters (via WTVB) – EU agency warns websites may need to be taken offline
  3. UK NCSC – Critical security issue affecting PHP
  4. CERT-EU – Security Advisory 2026-018
  5. Wiz Research – PHP2Shell
  6. Cybersecurity Dive – PHP website vulnerabilities
  7. BleepingComputer – PHP ships emergency patches for critical PHP2Shell flaws
  8. Tenable – PHP2Shell FAQ
  9. Cloudflare – PHP vulnerabilities WAF protection
  10. The Record – PHP warnings
  11. NOS (Netherlands)
  12. LBC
  13. Patchstack – PHP major vulnerability alert
  14. CyberScoop
  15. Sansec
  16. Precursor Security live blog
  17. W3Techs – PHP usage
  18. W3Techs – WordPress usage
  19. PHP.net news archive

Featured image: CERN data centre by Hugovanmeijeren, Wikimedia Commons, CC BY-SA 3.0.

Leave a Reply

Your email address will not be published. Required fields are marked *