OCTOO AI Independent AI Lab

Essay

Black October: what the PHP vulnerability teaches us about websites, policy and AI security testing

In October, many websites in Germany and across Europe went offline as a precaution. Researchers using AI had found two serious flaws in PHP, the language behind most websites. Once the flaws were public, the fix came fast. The week shows why less code on the internet is safer, why governments must act, and why defenders need the same tools as attackers.

By 8 min read

Two lanes. WordPress site: on every visit PHP runs, where the flaw sat, and plugins and themes add more doors. Site built in advance: the visit gets a finished file, no PHP runs.
On this page
  1. The PHP vulnerability: what happened this week
  2. WordPress security: why custom-built websites make more sense now
  3. What governments and citizens should do now
  4. Defenders need the same tools

On Wednesday 21 October, many websites in Germany went dark, among them those of Berlin’s Charité hospital, the Federal Criminal Police Office and the Bavarian police. Some call it Black October. None of these sites had been hacked. Their owners had switched them off as a precaution after a serious vulnerability in PHP, known as PHP2Shell, became public.

The PHP vulnerability: what happened this week

PHP is the programming language most websites use to build their pages, including every WordPress site. Two serious bugs sat in the core of PHP, parts of them for more than a decade. Depending on how a server was set up, they let an attacker run commands on it without a password.

Defenders found them with the help of AI. In August, two teams came across them independently: a researcher at the security firm Calif, working in a programme run by OpenAI, and the security firm Wiz. An audit had shown early signs in 2024, but nobody could then prove the bug was exploitable. The PHP Foundation calls the delay a structural failure, due to the security team’s decision process and its lack of resources.

The fix was due on Thursday. On Tuesday, details leaked, and PHP moved the release forward to Wednesday. Updated server packages only arrived hours later, so Germany’s federal cyber security agency BSI and the US agency CISA suggested taking servers offline if necessary. Many public bodies, hospitals and companies did, in Germany as well as in the Netherlands, France and Finland. Most sites were back that evening or the next day.

Timeline. August: two teams find the flaws with AI and report them to PHP. Fri 16 Oct: US government informed. Sat 17 Oct: first attack attempt seen by Amazon. Tue 20 Oct: details leak. Wed 21 Oct: fix released, many sites offline as a precaution. From 22 Oct: most sites back, no mass break-in confirmed.
According to the White House, the US government knew days before the fix. The shutdowns in Europe were precautionary, and most sites were back within a day.

Attackers tried anyway. According to Amazon, they started days before the release. The BSI had no confirmed reports of successfully attacked systems in Germany’s federal administration or regulated industry, and one security vendor reports a case at a European authority. That no mass break-in has been confirmed so far is partly because the flaws are not easy to exploit. It is also to the credit of the defenders: the researchers, the PHP developers and the large hosts, most of which patched within a day. The full picture is not in yet.

What you should do now

  • Have PHP updated. Updating WordPress or its plugins is not enough.
  • Ask your host whether the fixed version is running. The version number alone can mislead.
  • Update your own servers yourself and restart PHP afterwards.
  • Think of hidden PHP, for example in control panels, network storage and firewalls.

WordPress security: why custom-built websites make more sense now

A WordPress site runs PHP on every visit: the server builds the page when someone asks for it. That makes WordPress flexible, but a flaw in PHP becomes a flaw in every one of these sites. In a lab test, Wiz showed it could take over a current WordPress installation without a password.

Then there are plugins and themes. Each one is extra code that runs on every visit, and almost all known vulnerabilities in the WordPress world sit there. WordPress core itself is well maintained and installs security updates automatically. It cannot update PHP, though.

A website built in advance is created once, when you publish, as finished files. When someone visits, the server simply hands out those files, with no PHP and no database. A flaw like this one finds nothing there to attack.

A custom-built website can be made exactly this way: only the code it really needs, built in advance as finished files. That used to be expensive, which is why many people chose WordPress with plugins. With AI coding agents, it is now affordable for many businesses. More on that in our essay Moving away from WordPress after ten years and in our comparison of Astro and WordPress. Astro builds websites in advance as finished files.

To be fair, a custom-built website needs care too. A custom application that runs PHP on every request was just as exposed to this flaw. The tools behind a site built in advance need security updates as well, and PHP may still run elsewhere, for example in a contact form or your host’s control panel. The advantage is simple: less code exposed to the internet. And where no PHP runs, a PHP flaw has nothing to attack.

What governments and citizens should do now

Teams with AI found in a few weeks what had partly sat in the code for more than a decade. Attackers have the same tools. The BSI expected large-scale attacks within hours of the update, partly because AI lets attackers study a fix quickly.

One question remains open. According to the White House, the US government knew on the Friday before the release. There is no public evidence that the BSI or the EU were told in advance. The BSI’s first warning drew on PHP’s public pre-announcement and an advisory from the EU’s own emergency team, CERT-EU, issued the day before and itself based on public sources. And Europe has no AI model of its own that matches the strongest US models.

Governments should therefore make sure of three things:

  1. Early warning. European authorities must not learn of such finds later than Washington.
  2. Capability of our own: data centres, models, experts, and money for the security of open software like PHP. By the end of the year, the European Commission plans to set out how Europe’s cyber defence keeps access to strong AI, even if a provider or a foreign government cuts it off.
  3. Rules for the race between AI companies. The German author Karl Olsberg, who has warned about AI risks for years, says AI is now presenting us with the bill for old mistakes. He expects a permanent race between attack and defence. Above all, he criticises the AI companies’ goal of building AI that improves itself without human help, and he wants that race stopped.

And what about us, as citizens and businesses? We can keep our systems updated and shrink our attack surface: delete old plugins, switch off forgotten websites. We can prepare, without panic, for power or key online services failing for a few days. Germany’s civil protection office offers a checklist for this, which Olsberg also recommends (the page is in German and offers an English version). And we can tell our representatives what we expect.

Defenders need the same tools

What attackers can do, defenders must be able to do first: test their own systems before criminals do.

A test on the YouTube channel Everlast AI shows how easy this has become. Three AI attackers, all based on the same open, uncensored model, worked as a team under a coordinating model against OWASP Juice Shop, a practice shop full of flaws on purpose. They found, among other things, a way to log in as administrator without a password, for about the price of a coffee, according to the channel. The flaws there are known, but the test shows how cheap the method has become. Uncensored means the models do not refuse tasks, as our article on abliteration explains.

The teams behind the PHP find were reviewing PHP’s public source code, inside an AI provider’s programme or at a company with its own AI. Ask a big hosted assistant such as ChatGPT or Claude, as an ordinary customer, to attack your live website this way, and it will often refuse or restrict the task, even though it is your own site. The provider sets the top rules, and they sit above the customer: OpenAI writes in its Model Spec that neither developers nor users can override these basic rules. Where the line for attack testing lies is the provider’s call. The maker of Claude unlocks attack testing only for vetted organisations and, as a rule, wants to keep the data in return.

An uncensored open model on your own server in Germany runs the test. What it learns about your weak spots stays in-house instead of going to a provider abroad. The BSI, too, names the lack of confidentiality for what you type into hosted AI as a risk. Open models do not quite reach the strongest models. For a first check of the typical weak spots of your own site they can be enough; how reliably they find unknown flaws in real systems is not yet proven. More on our Private AI page.

One rule always applies: only test systems you own or have explicit permission to test.

In numbers

  • 69% of websites whose server language can be detected use PHP, and almost 40% of all websites run on WordPress (W3Techs).
  • The oldest affected code is about 14 years old, from PHP 5.4 in 2012 (Calif, Wiz).
  • 4 days before the release, Amazon saw the first attack attempt. According to Cloudflare’s CEO Matthew Prince, there were thousands of attempts in the 10 hours before, and according to Reuters millions afterwards.
  • 91% of the 11,334 new vulnerabilities in the WordPress ecosystem in 2025 were in plugins, 9% in themes and 6 in WordPress core. 46% had no fix when they became public (Patchstack, a WordPress security vendor).
  • About 5% of the world’s computing capacity for AI is in the EU, 78% in the US (Bruegel).
  • 2 hours, 15 reported flaws, 14 confirmed by the coordinating model, 2 critical, about $1.50 in costs: figures from the Everlast AI test.

We are happy to answer questions about secure websites or private AI for security tests. Write to us.

Common questions

Am I affected by the PHP vulnerability?

Anything that runs PHP to answer requests from the internet is affected, including every WordPress site. You are protected if your PHP line is at least at 8.5.12, 8.4.27, 8.3.36 or 8.2.35. An older release of the same line, such as 8.4.10, is not protected unless your host has built the fix in. A site made of finished files, where no PHP runs when someone visits, gives these flaws nothing to attack. Check, though, whether other PHP runs on the same server, such as a control panel, webmail or a contact form.

Is WordPress affected by the PHP vulnerability?

Yes, because every WordPress site runs PHP. The flaw is in PHP itself. WordPress has said that no WordPress update is required or planned. What matters is that your server runs the fixed PHP version. WordPress shows which one you have under Tools, Site Health, Info, Server.

What should I do about the PHP2Shell vulnerability?

Have PHP updated. On rented web space, your host does it. Ask whether the fixed version is running, because the version number alone can mislead. On your own server, update PHP yourself and restart it. If you cannot update right away, take the server offline for the time being: the US agency CISA advises it, and Germany's BSI recommends considering it. PHP 8.1 and older get no official new release, so they need a backport, for example from your host, or a move to a newer line. Updating WordPress or plugins does not close the gap.

Can AI test my website for security vulnerabilities?

Yes. AI models can work as a team, attack a website and report the flaws they find. Without a special unlock, big hosted assistants often refuse such attacks or restrict them, even on your own site. An uncensored open model on your own server runs the test, and the results stay in-house. Only test systems you own or have permission to test.

Sources

  1. PHP: security releases and notes on the critical flaws, October 2026 php.net
  2. BSI, Germany's federal cyber security agency: security notice on the critical PHP flaws, version of 22 October 2026 (in German) bsi.bund.de
  3. WordPress.org: Critical PHP Security Release, October 2026 wordpress.org
  4. Patchstack: State of WordPress Security in 2026 patchstack.com
  5. OpenAI: Model Spec, version of August 2026 model-spec.openai.com

WordPress, Astro and Cloudflare are trademarks of their respective owners. Naming them does not imply endorsement by, or a business relationship with, OCTOO AI.