The AI-Found PHP Bug That Went From Patch to a Million Attacks in Hours
October 23, 2026 · 5 min read
Two severe PHP vulnerabilities, dubbed PHP2Shell (CVE-2026-109618 and CVE-2026-109619), carry a severity score of 9.2 and allow remote code execution with no login at all — and PHP powers roughly seven in ten websites on the internet (via Winbuzzer). The flaws had been hiding for more than a decade. They were found independently by two parties: Calif, using GPT-5.6 Sol, and the security firm Wiz. Disclosure had been planned for October 22, but an early leak pushed the patch out a day early, on October 21, in versions 8.5.12, 8.4.27, 8.3.36, and 8.2.35. What happened next is the part every site owner should sit with: Cloudflare reported attack attempts reaching the hundreds of thousands within two hours of disclosure, then passing a million, while government services in the Netherlands, Finland, and Japan were temporarily taken offline.
The uncomfortable detail is not just the severity, it is the compression of the timeline. In the old rhythm of vulnerability disclosure, defenders got days or weeks between a patch release and mass exploitation, because turning a bug report into a working exploit took skilled human effort. PHP2Shell shrank that gap to about two hours. The same AI capability that found the bug — one team openly credits GPT-5.6 Sol — also lowers the cost of weaponizing it, and the scanning is automated anyway.
What to do, in order
First, check your PHP version today, not at the next maintenance window: if you are not on 8.5.12, 8.4.27, 8.3.36, or 8.2.35 (matching your branch), upgrade now. Second, if you cannot patch immediately, take the site offline rather than leaving it exposed — that is the blunt advice circulating with this disclosure, and for an unauthenticated remote-code-execution flaw it is the honest one: a down site can be restored, a compromised server has to be rebuilt and investigated. Third, after patching, look for signs of compromise rather than assuming a clean upgrade means a clean server, because the attacks began almost immediately and some of them will have landed before the patch. Check for unfamiliar files, unexpected processes, and outbound connections you cannot explain. Fourth, put a recurring check in place for PHP and framework updates, so the next disclosure does not depend on someone happening to read the news.
The bigger shift: AI is now on both sides of the hunt
It is tempting to read this story as "AI found a bug," but the fuller story is that AI is compressing the whole vulnerability lifecycle. Discovery gets faster, which is good for defenders who run the tools themselves. Exploitation also gets faster, which is bad for everyone who patches slowly. The two independent discoveries here matter: when two separate parties find the same decade-old flaw at the same time, it is a sign that the flaw was findable by anyone with the right tooling, not a one-off stroke of luck.
What this means for small sites
Big companies have security teams and staging environments; the sites most at risk here are the small ones — the brochure site built years ago, the WordPress install nobody remembers updating, the internal tool that "just works." PHP's reach is exactly why this matters: seven in ten websites means the long tail is enormous, and the long tail is where patching is slowest. If you run a site like that, the checklist is short: find out what PHP version you are on, upgrade to a fixed release, and if your host manages PHP for you, ask them to confirm the version in writing. And if you have a site you no longer maintain, this is the week to decide whether to update it or shut it down — an unmaintained site on an old PHP branch is now a liability with a known price.
The bottom line
PHP2Shell is a story in three acts: a flaw hidden for over a decade, found by AI-assisted hunting, and exploited at scale within hours of disclosure. The patch exists — 8.5.12, 8.4.27, 8.3.36, 8.2.35 — and for anyone running PHP, installing it is the whole job this week. The longer lesson is about speed: the window between disclosure and mass attack is now measured in hours, so patching has to be a reflex, not a project. Sites that cannot be patched should not be left standing in the meantime.