PHP2Shell: AI Found a Hole in 70% of Sites
AI News Today | Julian Goldie Podcast
October 23, 2026
PHP2Shell: AI Found a Hole in 70% of Sites
Julian Goldie
AI just found a hole in the software behind 70% of all websites, called PHP2 Shell. And it means a stranger could take over a website without ever logging in. The hole has been sitting in there for over 10 years. Nobody caught it. Then AI researchers helped find it in a matter of weeks. The existence of the flaw was announced on October the 20th, and an emergency fix came out the next day. Wikimedia actually switched off one of its tools as a precaution hours before the fix. Now, some government websites in Europe went off online on purpose to fix it and stay safe, and one security firm, Sanseq, said it expected mass break-ins to start within 15 minutes of the fix going public. So by the end of this, you'll know what PHP2Shell is, why AI found it, when people didn't, what it means if you have a website, and what to do about it today. So let's start with why you should care. PHP is the language that builds most web pages. If you have a WordPress site, your site runs on PHP. Every time someone visits your page, PHP puts that page together behind the scenes. Now, picture this. Your website is your shop. PHP is the building it sits in. Most security problems are about one shop leaving its back door open. This one is actually different. This one is a crack in the building itself, and that's why it's such a big deal. The floors live inside PHP itself, and in many cases, they can be reached without the website doing anything wrong. You can have a clean site, good passwords, every plugin up to date, and still be at risk because the problem site underneath all of that, and it sits underneath everything below it. So what can someone actually do with it? Well, the floors could let a person run their own code on a web server without logging in. In plain words, they get to act like your own server. They could, for example, grab your customer list, change what's on your page, send your visitors somewhere bad, and if you care about getting found on Google, a hack site is one of the fastest ways to lose that. Google actually warns people away from sites to look unsafe. Years of work on a site can take a hit in a single afternoon. So here's a problem we're really solving. Most websites aren't watched. Somebody built the site, it works, it brings it leads, and nobody has searched the server in like two years. A fix only helps you if someone actually puts it on your site. PHP can ship the fix in a day, but it can't walk over to your server and install it for you. And now there's a new piece to the problem. AI actually makes finding these holes faster, also makes using them faster. The good guys found this one first, but the gap between found and used keeps getting smaller. Now, let me run you through the numbers so you can see how big it actually is. Number one, 70 percent. Reports put the share of websites at risk at around 70 percent, because that's roughly how much of the web runs on PHP. Most blogs, most small business sites, lots of online shops. Number two, over 10 years, which says every PHP version released in the last decade, all the way back to version 5.4 has at least one of these two floors. So if your site is old, it's in. If it's new, it's in two. Number two, sorry, number three, 9.2 out of 10 That's the danger score of PHP's own team's rating. So their team actually rated it 9.2, and one security firm, Watchtower, gave it a full 10
Schools that are high in this range are rare. Number four, about two months. The first bug was found with AI on August 19th. It was reported to PHP on August 24th. PHP started building the fix on September 21st, and they gave public notice on October 20th, and the fixed versions shipped on October 21st. That quiet stretch in the middle is how the good guys got ready. Number five, four version numbers you need to know. The fixes are in PHP 8.5.12, 8.4.27, 8.3.36, and 8.2.35. If your site is on one of those or newer, you're covered for this one. But if it's on something older, you're actually not. And number six, before the fix even came out, people are already trying to use it. So Cloudflare says, the details leaked before the official date. They saw a break in traffic aimed at its customers. So this wasn't like a maybe someday problem. It was happening live. And number seven, one week. Wiz says, AI let it build working break ins across several apps and hours, and that one researcher did it in one week, and achieved in one week, one would have taken a world class team mumps. Now hold on to that last number, because that's actually the real story. And if you've got a website bringing in leads, and you've never once checked what it's running on, this is the sort of stuff we help with inside the AI profit board. And we've helped over 3,300 business owners inside there, and some of them never used AI before they joined. Inside, you can plug in your agents into our Agent OS, your Cloud, your Hermes, OpenClaw, and build your own workflows on top. I've also added tools for video for SEO agents for AI avatars. So instead of a site and nobody looks out, you can have agents to check on it for you whilst you focus on getting more customers. You get the zip file, the 30-day roadmap for selling out, a video tutorial and daily updates as we improve it. There are four coaching calls every week where you can bring your own website set up live and ask how to keep it safe and keep it ranking. And there are always people online so you're never stuck on your own. Link in the comments description or just go to the aiprofitbomb.com to get access. So what's actually here? Well, websites have had big holes before. So why does this one feel different? Three things. The first one is how deep the hole actually went. To get why it's different, you need to know how the bug actually works. And I'll keep it simple. When your website gets a visitor, PHP sets aside a bit of memory to build the page. Think of it like a waiter carrying a tray, sometimes a PHP, runs out of memory halfway through. When that happens, it stops and cleans up fast. The problem is the cleanup. Both flows come from the same root issue. PHP can leave its memory in a messy state when a request ends early. So it's like the waiter drops a tray, rushes to clean up, and leaves a few things on the table. Then the next customer sits down and gets served off that messy table. In the second flow, bits left over from one visitor can survive after they should be gone. And the next visitor's request reads those leftovers before things get reset. So a sneaky person can set up those leftovers on purpose, and that's how they get in. And for the most common setup, it's even worse. PHP's team actually says the risk is highest for one popular setup called mod underscore PHP, where a single request from a stranger can set things off before any of the website's own code even runs. And that's a big difference here, right? It's not one size mistake. It's the flaw that everyone stands on. The second difference is who found it and how. So the first actually came from a security firm called Calif, using OpenAI's GPT 5.6 Sol.
Read the other 6 minutes of this episode here.
$15 gets you this episode and 99 more. Credits never expire. After checkout, one link brings you back here to read it.
Not what you expected? Full refund within 14 days.
Thousands of transcripts fetched by people building searchable podcast archives
Fetch transcripts with code
The same credits work from a script or an AI agent. The demo key returns a sample episode in full, no card needed:
curl -H "x-api-key: pt_demo" \
https://spoken.md/transcripts/1000651996090Markdown with the speakers named, for your notes, your knowledge base, or anything that makes HTTP calls.
From $0.10 per transcript. No subscription. Credits never expire. Prices exclude VAT, added at checkout for EU customers. Not what you expected? Email us within 14 days with 20 or fewer credits used and we refund the pack in full.
Using your own key:
curl -H "x-api-key: YOUR_KEY" \
https://spoken.md/transcripts/1000797777294