The Negative Patch Window: How PHP2Shell Exploitation Started Four Days Before the Patch Existed
At 15:00 UTC on October 20, two CVE numbers began circulating on forums and social media, trailed by rumor: critical flaws in PHP — the engine Wiz says powers roughly 70 percent of all websites — with a CVSS score of 10.0 and patches on the way. The score was wrong — it is 9.2 — and no technical details had leaked. It did not matter. Within seventy-two hours PHP had shipped an emergency release a day ahead of schedule, a vendor had broken the embargo outright, Cloudflare was counting exploit attempts in the millions, and Japan's prime minister Sanae Takaichi was publicly advising companies to consider suspending their websites. The Dutch government just switched its own off. The bugs are CVE-2026-109618 and CVE-2026-109619, nicknamed PHP2Shell: unauthenticated remote code execution and memory disclosure in the core PHP engine, reachable in every release from 5.4 through 8.5.11, code the web has run since 2012.
The barrier that held for a decade
PHP's own account is unusually blunt. During the language's first external security audit in years — carried out by Quarkslab in 2024, funded by Germany's Sovereign Tech Agency — a Foundation-contracted core developer spotted the first signs of the out-of-memory problem behind CVE-2026-109618. An exploit was theorized but no concrete vector emerged, and every proposed fix carried a trade-off: compatibility breaks, new denial-of-service potential, or changes across the third-party extension ecosystem. Work stalled and restarted for months. The Foundation's word for this is a structural failure.
What unfroze it was AI-assisted research. On July 30 the PHP project entered OpenAI's Patch the Planet program, and security firm Calif began an audit. On August 11, researcher Ryan A reported an unconditional remote code execution with the same root cause. OpenAI independently reported it too. Wiz found the same thing on August 19 using Wiz Atlas with Gemini 4 Argon and GPT-5.6 Sol, confirmed pre-authentication RCE against Drupal and WordPress within two days, and reported on August 24. Three independent parties, one decade-old bug, ten weeks from first report to patch.
The important claim is technical. Turning the flaws into a working exploit required chaining multiple bugs and adapting to each target's memory layout — work at the edge of what human researchers could practically achieve, which is why the bugs survived since 2012. Frontier models made exploit development practical in hours. Wiz demonstrated pre-auth RCE against stock WordPress, Drupal, and Joomla containers, plus a memory-disclosure path that reads passwords, tokens, and API keys from PHP worker memory — in one variant, leaked back to the attacker inside a PHPSESSID response cookie before application code even runs.
The week the window went negative
The coordinated disclosure plan was orthodox: distributors pre-seeded with patches, embargo lifting October 22 at 14:00 UTC. It held until two days out. The October 20 leak forced PHP to pre-announce at 19:30 UTC and move the release up to October 21. Around 20:00, Calif mistakenly published a video of its proof of concept working against multiple targets, deleted it, and watched copies circulate. At 02:29 UTC on October 21 a leaked-details archive hit VirusTotal. At 07:34, Patchstack reported multiple active exploitation incidents from hosting partners. At 07:41, Chainguard shipped built images containing the fix — more than six hours early. The Foundation's complaint: any attacker could now study the fix in binary form while every other PHP user was still waiting. Chainguard CEO Dan Lorenc answered that he released on evidence of active exploitation, and on how easily his team independently rediscovered the flaw.
The most telling fact is the earliest one. Amazon's threat intelligence saw an exploit attempt on October 17 — three days before the leak, four before the patch. Amazon attributes the attempt to a threat actor on a commercial anonymization network and says it remains unclear how the actor acquired exploit information before disclosure. Cloudflare CEO Matthew Prince counted thousands of attempts ten hours before the announcement, tens of thousands within forty-five minutes of it, hundreds of thousands within two hours, and millions since. Frank Dickson of Dickson Research put the structural lesson plainly: an embargo protects defenders only until someone else finds the same bug, and every party that receives the patch early is one more way for the secret to escape.
Precautionary darkness
The response was governments switching themselves off as a defensive posture. The UK's National Cyber Security Centre told PHP operators:
Where immediate remediation is not feasible, organisations should consider taking the system offline until it can be fully mitigated.
The Netherlands' public-health agency RIVM and the Tweede Kamer, the lower house of parliament, went dark. Japan's prime minister told companies to consider suspending services; airline ANA, railway operator JR West, and bank MUFG suspended pages. Parts of infosec began calling it Black October.
The honest footnote: mass exploitation is not established. Sansec, after analyzing the requirements, walked back its own first impression — an attack needs target-specific knowledge and conditions, so mass exploitation is less likely than first expected, and PHP rates exploitability as configuration-dependent, with Apache mod_php deployments at highest risk. The shutdowns still made sense, because the arithmetic of exposure is brutal: PHP 8.1 and earlier are end-of-life with no binary fixes at all — only source backports for 7.4 through 8.1 — so any host that cannot upgrade is exposed indefinitely, not just until the patch lands.
The Foundation's closing numbers explain why the pipeline itself is the story: its security team has published fifteen CVEs since July 1 while working through more than a hundred reports that were invalid, duplicates, or not reproducible. Tools now find bugs faster than a foundation-funded team can triage them. The takeaway is Dickson's rule for defenders: plan for exploitation to begin before the advisory, because it now does. The zero-day window is not shrinking. It has gone negative.