Blog / News

PHP2Shell: critical vulnerabilities in the PHP core found by AI — RCE and cross-request memory reads on 70% of the internet

Using frontier AI models, Wiz Research uncovered two critical vulnerabilities in the PHP core — CVE-2026-109618 and CVE-2026-109619, up to CVSS 9.2: unauthenticated RCE and remote process memory disclosure leaking passwords, tokens, and API keys from other users' requests. Every PHP version since 5.4 is affected — including fresh WordPress, Drupal, and Joomla. The vulnerable code sat in the core for over a decade; one researcher with Gemini 4 Argon and GPT-5.6 Sol did in a week what used to take a world-class team months. The patch shipped on 2026-10-21 — update now.

•5 min read
News Research

TL;DR: Wiz Research has disclosed PHP2Shell — two critical vulnerabilities not in PHP applications but in the PHP core itself. The first, CVE-2026-109618, is a use-after-free in the upload-progress unserializer combined with remote process memory disclosure: passwords, tokens, API keys, and certificates from other requests handled by the same worker. The second, CVE-2026-109619, is a use-after-free in fatal-error backtraces plus a type confusion in OPcache — yielding unauthenticated RCE. Combined severity: up to CVSS 9.2. Every PHP version from the last decade, starting with 5.4, is vulnerable — and PHP powers roughly 70% of the internet. Pre-auth RCE was demonstrated on fresh wordpress:latest, drupal:latest, and joomla:latest containers. The patch shipped today, 2026-10-21, on php.net. Discussion on HN.

What’s broken: the core, not the application

The key difference between PHP2Shell and a typical “vuln of the week”: the flaw doesn’t depend on application code. WordPress isn’t the hole, and neither is Drupal — the interpreter itself is. Even a “Hello World” on a vulnerable PHP version is vulnerable. And since WordPress, Joomla, Drupal, and MediaWiki all run on PHP, the blast radius covers most of the public web.

PHP2Shell’s two CVEs: CVE-2026-109618 — use-after-free in the upload-progress unserializer and process memory disclosure; CVE-2026-109619 — use-after-free in fatal-error backtraces and type confusion in OPcache

The mechanics, briefly. When an out-of-memory or fatal error hits while a request is being processed, the interpreter’s internal state stays corrupted. The PHP worker doesn’t die — it picks up the next request and inherits the stale state from the previous one. The result is memory corruption and reads of data the process was serving to other users: passwords, tokens, API keys, certificates from strangers’ sessions.

The researchers demonstrated both scenarios: remote process memory disclosure without code execution — and full pre-auth RCE on stock, freshly pulled containers of the three most popular CMSs.

Heartbleed → Log4Shell → PHP2Shell: the AI era

The most important part of this story isn’t the bugs — it’s how they were found. The vulnerable code sat in the PHP core for over a decade. Hundreds of eyes read it, fuzzers ran against it, reviewers reviewed it. The exploit chain is at the edge of what’s possible for a human: out-of-memory errors, corrupted state carried across requests, use-after-free, type confusion.

Wiz used its AI stack — Wiz Atlas, Gemini 4 Argon, and GPT-5.6 Sol. Argon made key contributions at every stage: finding the vulnerability itself, developing the exploit, building detection, and validating the patch. The result: a single researcher did in one week what would previously have taken a world-class team months.

The authors explicitly draw the line: Heartbleed (2014) → Log4Shell (2021) → PHP2Shell (2026). PHP2Shell is the AI-era turning point in security research: complexity no longer protects you. If ten-year-old PHP core code falls in a week, any complex codebase is a matter of time and compute.

PHP2Shell’s scale: PHP powers 70% of the internet, every version since 5.4 is vulnerable, pre-auth RCE on fresh WordPress, Drupal, and Joomla

The responsible disclosure timeline

  • 2026-08-19 — vulnerabilities found.
  • 2026-08-20–21 — RCE confirmed on Drupal and WordPress.
  • 2026-08-24 — reported to the PHP security team.
  • 2026-09-21 — the PHP team confirmed the issue.
  • 2026-10-21 — patch on php.net and public disclosure.

PHP2Shell timeline: found 2026-08-19, RCE on Drupal and WordPress 08-20–21, reported 08-24, confirmed by PHP 09-21, patch and disclosure 10-21

Disclosure was coordinated with the PHP team, OpenAI, and Calif — plus the companies holding the perimeter: Automattic, Akamai, AWS, Cloudflare, Fastly, Google, Imperva, Microsoft, and Vercel. For those who can’t patch immediately, they prepared ready-made mitigations at the CDN and WAF level. Alongside Wiz, OpenAI (on coordinated disclosure), Calif, and The PHP Foundation published their own posts today.

What to look for in logs before patching

If patching right now isn’t an option, Wiz names characteristic attack signals:

  • unusual multipart requests followed by memory-limit errors or HTTP 500s;
  • abnormally large or corrupted PHPSESSID cookies in server responses;
  • unexplained PHP worker restarts.

But the main advice is one word: update PHP. Patched versions shipped today, and this is the case where “we’ll update in the next window” is a bad plan.

Where MaxGraph fits in

Research like this is two months of hypotheses, dead ends, and discovered techniques. The most valuable part is the intermediate state: why this chain didn’t work, which state turned out to be a dead end, which detection doesn’t fire. Usually all of that dies in a researcher’s sessions and never reaches the next person.

MaxGraph preserves exactly that: the memory of the work process — facts, decisions, dead ends and their causes — available to the next session and the next agent. No overclaiming: MaxGraph doesn’t patch PHP and doesn’t hunt vulnerabilities. It’s about making sure knowledge earned over a week of work doesn’t die with the session.

FAQ

What is PHP2Shell? Two critical vulnerabilities in the PHP core found by Wiz Research: CVE-2026-109618 (use-after-free in the upload-progress unserializer + remote process memory disclosure) and CVE-2026-109619 (use-after-free in fatal-error backtraces + type confusion in OPcache). Combined — up to CVSS 9.2, unauthenticated RCE and reading other users’ data from worker memory.

Which PHP versions are vulnerable? Every version from the last decade, starting with PHP 5.4. The flaw is in the core, so neither clean application code nor the absence of a CMS saves you — even a “Hello World” is vulnerable. The patch shipped on 2026-10-21 on php.net.

Was RCE really demonstrated on production CMSs? Yes: pre-auth RCE was demonstrated on fresh wordpress:latest, drupal:latest, and joomla:latest containers, plus process memory disclosure without code execution.

What does AI have to do with it? The vulnerable code sat in the core for 10+ years, and the exploit chain is at the edge of human capability. Wiz used Wiz Atlas, Gemini 4 Argon, and GPT-5.6 Sol: Argon helped find the vulnerability, build the exploit, create detection, and validate the patch. One researcher did in a week what used to take a team months.

How do I know if I’m already under attack? Before patching, look in logs for: unusual multipart requests followed by memory-limit errors or HTTP 500s, abnormally large or corrupted PHPSESSID cookies in responses, and unexplained PHP worker restarts.

What’s next


MaxGraph — memory for AI agents: local, private, with a living knowledge graph. 7 days free.

MaxGraph

Give your agent memory

7-day trial, no card. Installation is one prompt — your agent does the rest.

Pricing ✓ Copied