Skip to content
AI

AI Helped Find Two Huge Holes in PHP, the Code Behind a Big Chunk of the Web, and Sites Scrambled to Patch

PHP rushed out fixes for two critical bugs that could let a stranger take over a web server without logging in. AI-assisted researchers at Calif, OpenAI and Wiz helped prove how bad they were, and a leak forced the fix out a day early.

Devon Dooley / So Basically

So basically: PHP is the programming language running behind a huge share of websites, including online stores, banks, news sites and government pages. On Oct. 21, the PHP team pushed out emergency fixes for two critical bugs that, under the right conditions, let an attacker run their own code on a web server without logging in. AI-assisted security researchers were a big part of how the full danger got figured out.

If you run a site on PHP, the fixed versions are 8.5.12, 8.4.27, 8.3.36 and 8.2.35.

What the bugs were

In plain English, both had to do with PHP cleaning up after itself badly.

  • The first one happened if a request ran PHP out of memory at exactly the wrong moment. PHP could leave half-built data lying around and later trust it, which corrupts memory.
  • The second one happened when an error hit at a bad moment. PHP could keep pointing at memory left over from a previous visitor’s request, and the next request could use it.

The PHP Foundation rated them 9.2 out of 10 for severity. The Neuron reported that Finland temporarily shut down government web services, and the BBC and Edinburgh’s council took pages offline while they patched.

Where AI comes in

A PHP developer actually noticed signs of the first problem back in 2024, but nobody found a way to exploit it, and the fix kept stalling. The Foundation openly called that delay “a structural failure.”

That changed this summer. On Aug. 11, a researcher at the security firm Calif reported a working remote attack, and OpenAI independently reported the same root cause. Calif was working through Patch the Planet, a program OpenAI started to fix open-source bugs, and The Neuron reports it used OpenAI’s GPT-5.6 Sol. The security company Wiz found more attack paths on its own. After that, fixing it became the top priority.

AI is also flooding the PHP team with reports. They’ve published 15 vulnerabilities since July 1 and tossed out more than 100 reports that were invalid, duplicates or couldn’t be reproduced.

Then it leaked

The plan was a coordinated release on Oct. 22. But on Oct. 20, the bug IDs started circulating online with a wrong release time and a wrong 10.0 score. PHP moved the release up a day. Calif then accidentally posted a video showing its attack working, and copies spread. And one distributor, Chainguard, published fixed builds more than six hours early, which the Foundation said let attackers study the fix while everyone else waited.

OpenAI called the stretch between AI finding a bug and the public finding out a “Defender’s Window,” the time defenders get to patch before attackers catch up.

Who’s affected and what to do

Datadog’s security team says the bugs affect PHP versions going all the way back to 5.4, up through 8.5.11. Supported versions got fixes, but anything 8.1 or older is past its official support. Those sites have to upgrade or rely on their hosting company or Linux distribution for a patch. Security agencies told organizations that couldn’t patch quickly to consider cutting vulnerable systems off from the internet.

If you just have a website on a regular hosting plan, your host is probably handling this. It’s still worth asking. Companies like Cloudflare and Google Cloud also put out protections and guidance for their customers.

My take

This is the part of AI that doesn’t get talked about enough. The same tools that help the good guys find a bug from 2024 can help the bad guys too, and now the race is measured in days. What got me is how small the team protecting all this code is. A language running a big chunk of the internet is being kept safe by a handful of funded developers working weekends.

So basically — pass it on.

Daily Updates

Get new stories in your inbox

Near-future tech when it moves. Robots, space, EVs, AI. No spam.