BriefingResearchDeveloping

AI-found PHP2Shell flaws in core PHP prompt NSA warning and patch to version 8.5.12

OpenAI-backed researchers at Calif and Google's Wiz independently found two critical PHP engine flaws using GPT-5.6 Sol and Gemini 4 Argon; PHP patched them October 21 after two months of coordination.

Image: Latent Space
By Javier DíazWed 21 Oct, 09:00 · 3 min read · briefed from 4 sources

In context

  1. 01Two CVEs, CVE-2026-109618 and CVE-2026-109619, cover four memory-safety bugs in PHP's core engine, with severity up to CVSS 9.2, according to Wiz.
  2. 02Calif found one flaw via OpenAI's Patch the Planet using GPT-5.6 Sol; Wiz separately used Wiz Atlas, Gemini 4 Argon and GPT-5.6 Sol.
  3. 03Wiz says every PHP version back to 5.4 in the last decade is affected; PHP released the fix October 21, and TechCrunch says to update to 8.5.12.
  4. 04Researchers demonstrated unauthenticated remote code execution on WordPress, Drupal and Joomla, plus memory disclosure; the NSA advised taking unpatchable sites offline.
  5. 05OpenAI says the flaws were found before hackers did, and TechCrunch reports no exploits in the wild; Cloudflare says early attacks were appearing as it deployed WAF rules.

What happened

PHP released a patch on October 21, 2026 for multiple memory-safety vulnerabilities in its core engine, nicknamed PHP2Shell. The flaws are grouped under CVE-2026-109618 and CVE-2026-109619. The US National Security Agency warned that sites which cannot be patched immediately should be taken offline until they can be.

Two parties found the bugs independently. Ryan Austin of the security firm Calif found one through OpenAI's Patch the Planet initiative, using GPT-5.6 Sol. Wiz, recently acquired into Google Cloud, used its Wiz Atlas agent along with Gemini 4 Argon and GPT-5.6 Sol. Both worked with PHP on fixes before disclosure.

According to Wiz, the bugs stem from how PHP handles fatal errors, particularly out-of-memory errors, and can leave corrupted internal state that a later request or worker reuses. That can lead to memory disclosure or corruption. Wiz says it chained four bugs into one exploit script and ran it against the latest WordPress, Drupal and Joomla container images without authentication.

Wiz says a simple Hello World application on an affected PHP version can be vulnerable, and that memory reads can expose passwords, tokens and API keys without code execution. Cloudflare deployed WAF rules for all customers, including the free tier, before the patch, and called them a stopgap.

Why it matters

PHP runs about 70% of websites, so a flaw in the engine reaches sites whose own code is sound. WordPress said the issue is not specific to its software and that site owners must patch servers and work with hosts. TechCrunch notes that PHP 8.1 and older are unsupported, so some operators face upgrade work.

“With AI this is no longer a barrier. LLMs can help adapt an exploit to different PHP versions, configurations and memory layouts”
Wiz

The episode also shows AI changing exploit economics. Wiz says the flaws were decades old but hard to exploit, needing a complex chain at the edge of what human researchers could do, and that frontier models let it adapt working exploits across applications in hours. Wiz compares the potential significance to Heartbleed and Log4Shell.

That comparison is contested. Latent Space's newsletter says the degree to which this matches those famous bugs is up for debate and that high-profile cyber disclosures carry some marketing. It also notes that the researcher-reported demonstrations should not be read as an identical, immediately exploitable path on every deployment.

What to watch

The main question is the patching race. TechCrunch says tens of millions of sites need updates before attackers can exploit unpatched ones, and Cloudflare reported early attacks as it rolled out mitigations. The coverage does not say how many compromises have occurred.

Wiz also says other tracked and likely untracked variants of the pattern exist, though it says the PHP patch fixes the issue at its core in the patched release. Further disclosures from AI-assisted audits of widely used software are likely.

Sources

  1. 01Patch the Planet: global response coordination as agents uncover critical vulnerabilitiesOpenAI · Wed 09:00
  2. 02PHP2Shell: AI uncovers critical RCE in PHPwiz.io · Wed 15:43
  3. 03PHP Armageddon: OpenAI, Google’s Wiz find ancient holes, panicking the internetTechCrunch · Wed 19:59
  4. 04[AINews] OpenAI’s Patch the Planet program is 1 of 2 parties to discover PHP2Shell vulnerabilities in core PHP affecting 70% of the web, using GPT-5.6 Sol; coordinated response over 2 monthsLatent Space · 09:42

This briefing was written by Claude from the sources above. Check the original reporting before relying on it.

Three times a week

The Context Briefing.

The most important AI news, analysis and ideas, briefed and sourced.

We’ll email you once to confirm. Unsubscribe anytime. Privacy

Latest issue, #3: DeepSeek open-sources the inference stack behind V4.1 Flash