Over four days in October, two critical PHP vulnerabilities came to light, millions of attack attempts were recorded and public websites in several countries were taken offline as a precaution. The security community calls it Black October. The common thread is artificial intelligence, which now finds weaknesses faster than most can patch them.
If your website runs on WordPress or an older CMS, this is no longer a theoretical problem. Black October showed how vulnerable the old way of building websites has become, and why more and more businesses should consider renewing their website.
What was Black October?
Black October wasn't a single attack, but a series of separate incidents in quick succession. The peak was 19 to 22 October, but the name now covers the whole month.
What worries experts most is the speed. AI appears on both sides: researchers use it to find the flaws, attackers use it to exploit them.
For websites, PHP2Shell is the big story. But it didn't come out of nowhere.
AI makes finding flaws cheap
WordPress got a foretaste back in July. Two flaws in WordPress itself, dubbed wp2shell, let an anonymous attacker take full control of a website without logging in. The attack worked on a completely standard installation without a single plugin.
- The researcher who found the flaws used OpenAI's GPT-5.6 and needed about ten hours.
- Another security firm reproduced the flaw with AI in minutes.
- Working exploit code was out within hours, where it used to take a day.
- Attacks began just hours after the fix was released.
PHP2Shell was also found with AI. Security firm Wiz used models from Google and OpenAI, among others, and reported the flaws to PHP in August.
Professor Junfeng Yang of Columbia University explains the imbalance to Fortune: AI makes old flaws cheaper to find and exploit, while testing and rolling out fixes still happens at human speed.
PHP2Shell: when the foundations give way
PHP2Shell is two critical vulnerabilities in PHP itself, the programming language behind an estimated 70 per cent of all websites and the whole of WordPress. Both are rated 9.2 out of 10 for severity and let an attacker run their own code on the server without logging in.
The flaw lies in the PHP engine, not in a specific application. A website can therefore be vulnerable even if its own code is perfectly sound. WordPress.org wrote on 21 October that the flaws affect all servers running PHP and that no WordPress update was needed. Updating WordPress didn't help, in other words. It was the server that needed updating.
The fixes came on 21 October in PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Then things moved fast.
Many chose to shut down rather than risk a silent breach. Finland's state IT centre took public online services offline, and in Japan banks, airlines and railways suspended parts of their online services.
Why WordPress is an easy target
WordPress is the world's largest publishing platform, and that is exactly the problem. According to W3Techs, WordPress runs 39.6 per cent of all websites. When a single flaw can be exploited on tens of millions of websites at once, automating the attack pays off. With AI, that now takes hours.
A WordPress site also has plenty of points of attack. It sits on three layers that each need to be kept up to date, often by different parties.
Plugins are the weakest link
Patchstack counted 11,334 new vulnerabilities in the WordPress ecosystem in 2025, up 42 per cent on the year before. 91 per cent were in plugins and 9 per cent in themes, while the WordPress core itself had just six. The number of easily exploitable vulnerabilities rose by 113 per cent.
46 per cent of the vulnerabilities had no fix when they became known. Updating doesn't help then, because there's nothing to update to. Many plugins are simply abandoned: in 2024, 1,614 plugins and themes were removed from the official WordPress directory because security holes weren't fixed.
Your hosting won't save you
Many people assume their hosting provider takes care of security. In Patchstack's test, standard hosting defences stopped just 12 per cent of attacks targeting known WordPress holes. The rest got through.
Experience from post-breach clean-ups points the same way. Of the 39,594 hacked websites security firm Sucuri cleaned up in 2023, 95.5 per cent ran WordPress. That partly reflects WordPress being the biggest, but it shows where attackers spend their time.
Old PHP no longer gets help
PHP 8.1 and older no longer receive updates from the PHP project. For PHP2Shell, only minimal source-code fixes were released for the oldest versions, and users were referred to vendors with their own patches. PHP 8.2 loses support on 31 December 2026.
It affects every PHP-based CMS
Because PHP2Shell sits in PHP itself, Drupal, Joomla and home-made PHP solutions are just as exposed when the server isn't updated. The EU's cybersecurity service CERT-EU stated that all PHP installations responding to web requests were at risk.
The most exposed website is often one that was delivered a few years ago and then left to fend for itself. It sits on cheap hosting with old PHP, has plugins nobody has looked at, and has automatic updates switched off because something once broke. All three layers can then be out of date at once, without anyone noticing.
This time, it turned out fine
The internet didn't collapse. Authorities in Germany, the Netherlands and Japan reported that they hadn't seen a single successful breach via PHP2Shell, despite millions of attempts. During wp2shell, the damage was limited because WordPress forced updates through, and because Cloudflare and Automattic added protection before the fix was released. That's protection individual website owners don't control.
At the same time, the window you have has shrunk from weeks to hours. Attack attempts against PHP2Shell began before the holes were made public, and the US agency CISA later added them to its list of actively exploited vulnerabilities. According to Patchstack, around half of the most serious WordPress holes in 2025 were exploited within 24 hours, with a median of five hours. A breach doesn't have to be noticeable either. An unknown admin account or a hidden snippet of code can sit there for a long time before anyone finds it.
Those who update within hours are fine. Those who update when it suits them have become an easy target.
What you should do now
If you have a WordPress site today, do the first three steps straight away. But that's first aid, not a solution.
Why we recommend Sanity
The most effective measure is to remove what attackers go after. With a headless setup on Sanity, your content lives in a cloud service run by Sanity, and the website itself is built in Astro or Next.js. That means no PHP facing visitors, no plugin store and no wp-admin to attack.
Headless isn't automatically secure. Forms, logins and APIs still need securing, and a headless setup with WordPress behind it needs the same PHP updates as before. But a website with no PHP on the public server didn't need the PHP2Shell fix at all.
Sanity is SOC 2 Type 2 certified and runs on Google Cloud. Running and securing the content database is therefore Sanity's job, not your hosting provider's. Read more about how we work with Sanity.
Sources
- Patchstack: State of WordPress Security in 2026
- Fortune: Black October, AI attacks and PHP2Shell
- The Next Web: wp2shell and AI
- The Next Web: Millions of attempts, no confirmed breaches
- Cybernews: Amazon and Cloudflare on PHP2Shell
- GovInfoSecurity: Wiz and the AI models behind the discovery
- PPC Land: CERT-EU Security Advisory 2026-018
- Lovguiden: ENISA on PHP 8.1 and older
- eSEOspace: W3Techs and WordPress.org on PHP2Shell
- eSEOspace: Static vs dynamic websites – which is safer?
- Lynton: Sucuri and Patchstack on abandoned plugins
- Sanity: Security & compliance
- IBTimes: Websites shut down worldwide
- Fox News: What Black October is
- YourStory: Black October and the PHP vulnerabilities