An elephant stands on a cracked stack of web pages while a magnifying glass inspects the crack, on a pink contour-map background.

AI-Assisted Research Uncovers PHP2Shell, Critical PHP Flaws That Wiz Says Touch 70% of Websites

PHP released emergency fixes on October 21, 2026 for PHP2Shell, two critical flaws in the language's core that allow remote code execution without a login. Calif, OpenAI and Wiz found them, with frontier AI models doing much of the hard work.

By Aileron Daily6:39 am PT3 min read

PHP released versions 8.2.35, 8.3.36, 8.4.27 and 8.5.12 on October 21, 2026 to close PHP2Shell, a pair of critical flaws in the language's core that let an attacker run code on a web server without logging in. Researchers at Calif, OpenAI and Wiz found them in August, and Wiz says frontier AI models made it possible to prove the decades-old weaknesses could be exploited.

  • Flaws: CVE-2026-109618 and CVE-2026-109619, each rated critical at CVSS 9.2
  • Impact: remote code execution without authentication, plus reading process memory that may hold passwords, tokens and API keys
  • Affected: nearly every PHP release back to 5.4, on any setup that serves web requests
  • Fixed in: PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, with minimal source backports for 7.4, 8.0 and 8.1
  • Reach: Wiz says PHP runs 70% of all websites, whatever their content management system

What the PHP2Shell vulnerabilities are

Both bugs trace back to the way PHP deals with fatal errors, out-of-memory errors in particular. When a request dies abnormally, PHP can leave damaged internal state behind, and a later request can trip over it.

CVE-2026-109618 is the out-of-memory case. The error can stop PHP while data for a request is only half built, and the cleanup routine then trusts that broken data. CVE-2026-109619 is the stale-state case: bookkeeping that belongs to one request outlives the memory it points to, and the next request on the same worker can pick it up before PHP resets it.

The two CVE numbers cover four exploitable bugs, and Wiz says more variants exist, some tracked and some likely not. Because the problems sit in PHP itself, a site is exposed even when its own code is clean. Wiz strung the bugs into a single exploit script and ran code without credentials on the latest container images of WordPress, Drupal and Joomla.

Which PHP servers are at risk

The PHP team says every installation serving web requests is at risk, naming LiteSpeed, FrankenPHP, php-cgi, PHP-FPM and Apache running mod_php. It rates mod_php as the most dangerous, since a demonstrated exploit fires from an unauthenticated request before any application code runs.

PHP 8.1 and older get no updates from the PHP project, which is why the security team took the unusual step of shipping minimal backports for 7.4, 8.0 and 8.1. Linux distributions and long-term support vendors received the patches early, so their customers should look for updated packages from those vendors.

How AI helped find PHP2Shell

Calif found the flaws while auditing PHP with the PHP Ecosystem Security Team, in work OpenAI sponsored through its Patch the Planet initiative, and reported the out-of-memory flaw to PHP on August 11. A 2024 audit of PHP's source code had already flagged a weakness of the same kind.

Wiz ran its own research with GPT-5.6 Sol, Gemini 4 Argon and its in-house Wiz Atlas. It found its first PHP flaw on August 19, 2026 and reported to the PHP security team on August 24, and PHP started work on a coordinated fix on September 21.

Wiz says the flaws had sat in PHP for decades because proving them exploitable took a chain of steps at the limit of what human researchers could manage, and frontier AI models substantially lowered that bar. Wiz places the findings among the worst ever uncovered in PHP, and possibly in any software.

A leak, early attacks and stopgap protections

Disclosure was scheduled for October 22, but details leaked online on October 20 and PHP pulled the release forward a day. Cloudflare saw early exploitation attempts before the patches shipped. It deployed web application firewall rules against the known attack methods, which its CTO, Dane Knecht, described as temporary.

Britain's National Cyber Security Centre told organizations to patch PHP immediately or take systems offline until they could. Wiz worked with Google Cloud, Cloudflare, AWS, Microsoft, Automattic and others on guidance, detections and mitigations for anyone unable to update straight away.

What PHP site owners should do now

Update. PHP says no mitigation is complete and an update is the only safe choice. For servers that cannot be patched at once, its stopgaps include switching off session upload progress and, on PHP 8.5, fatal error backtraces, then restarting every worker.

Until the patch is in, Wiz suggests watching logs for odd multipart requests that end in memory-limit errors or a string of HTTP 500 errors, oversized or malformed PHPSESSID cookies, and PHP workers restarting for no clear reason.

The facts

  1. On October 21, 2026, PHP released versions 8.5.12, 8.4.27, 8.3.36 and 8.2.35 to fix two critical flaws that can let an attacker run code remotely without logging in.

  2. The two flaws, CVE-2026-109618 and CVE-2026-109619, go by the collective name PHP2Shell.

  3. Each of the two flaws carries a critical CVSS score of 9.2.

  4. CVE-2026-109618 is remote code execution through out-of-memory corruption: an out-of-memory error can interrupt PHP while request data is only partly set up, and cleanup can then treat that invalid data as valid.

  5. CVE-2026-109619 is remote code execution through stale global state: internal state tied to one request can outlive the memory behind it, and a later request on the same worker can use it before it is reset.

  6. Both flaws come from how PHP handles fatal errors, especially out-of-memory errors, which can leave corrupted internal state behind when a request ends abnormally.

  7. Every PHP installation that serves web requests is at risk, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed.

  8. The PHP team rates the risk highest for mod_php, where an unauthenticated request was shown to trigger the attack before any application code runs.

  9. Nearly every PHP release is affected, going back to version 5.4.

  10. Attackers can also read a PHP process's memory, which may hold passwords, tokens and API keys.

  11. The PHP security team also published minimal source backports for PHP 7.4, 8.0 and 8.1, versions it no longer updates.

  12. Linux distributions and long-term support vendors got the patches ahead of release, so users of those packages should check with their vendor.

  13. PHP says no mitigation is complete and updating is the only safe choice.

  14. For servers that cannot update at once, PHP lists stopgaps such as turning off session upload progress and, on PHP 8.5, fatal error backtraces, then restarting every worker.

  15. Calif, OpenAI and Wiz found the flaws in August and worked with the PHP team on discovery, coordination and verifying the patch.

  16. Calif found the flaws in a code audit with the PHP Ecosystem Security Team, work sponsored by OpenAI under its Patch the Planet initiative.

  17. Calif reported the out-of-memory flaw to PHP on August 11.

  18. Wiz used its own Wiz Atlas together with Gemini 4 Argon and GPT-5.6 Sol throughout its research.

  19. Wiz found its first PHP flaw on August 19, 2026, reported the flaws to the PHP security team on August 24, and PHP began building a coordinated fix on September 21.

  20. Wiz chained the bugs into one exploit script and ran code without authentication on the latest WordPress, Drupal and Joomla container images.

  21. The flaws are in PHP itself, so a site can be exposed even when its own application code is secure.

  22. Wiz says PHP powers 70% of all websites, so the flaws reach 70% of the web regardless of content management system.

  23. The two CVEs group four exploitable bugs, and Wiz says other tracked and likely untracked variants exist.

  24. Wiz said the flaws had been present for decades, that proving them exploitable took a chain at the edge of what human researchers could do, and that frontier AI models substantially lowered that barrier.

  25. Wiz said: "These findings rank among the most severe vulnerabilities discovered in PHP, and arguably in software history."

  26. A 2024 source code audit of PHP had already turned up a weakness of the same kind.

  27. Disclosure was set for October 22, but details leaked online on October 20 and PHP moved the release up by a day.

  28. Cloudflare saw early exploitation attempts before the patches were out.

  29. Cloudflare deployed web application firewall rules to block the known attack methods, and its CTO Dane Knecht called them a temporary fix.

  30. Britain's National Cyber Security Centre told organizations to update PHP at once or take systems offline until patched.

  31. Until servers are patched, Wiz advises watching for unusual multipart requests followed by memory-limit errors or repeated HTTP 500 responses, oversized PHPSESSID cookies and unexplained PHP worker churn.

  32. Wiz worked with Google Cloud, Cloudflare, AWS, Microsoft, Automattic and others on guidance, detections and mitigations for organizations that cannot update right away.

In their words

What people in AI posted about this story

Claire Zau on TikTok

Venture partner, Lightspeed

70% of the world’s websites are vulnerable 🚨 🌐 PHP runs WordPress, Wikipedia and online stores behind the scenes 🐛 PHP2Shell: hackers need just 1 request, no password or login, to take over a site 🤖 The bug sat there for 10+ years, deemed too complex to exploit until an AI audit cracked it 🔐 Fix is on the server, not in WordPress. Turn on 2FA and watch for fake reset emails #cybersecurity #AI #Tech #PHP #softwareengineer Views expressed are my own. This is for informational and educational purposes only.
Open on TikTok

Claire Zau on Instagram

Venture partner, Lightspeed

70% of the world’s websites are vulnerable 🚨 🌐 PHP runs WordPress, Wikipedia and online stores behind the scenes 🐛 PHP2Shell: hackers need just 1 request, no password or login, to take over a site 🤖 The bug sat there for 10+ years, deemed too complex to exploit until an AI audit cracked it 🔐 Fix is on the server, not in WordPress. Turn on 2FA and watch for fake reset emails #cybersecurity #AI #tech #PHP #hacking Views expressed are my own. This is for informational and educational purposes only.
Open on Instagram

Nate B. Jones on TikTok

This is the worst day for cyber attacks in my entire career #ai #news #learn #learnontiktok If you want to learn more start by looking up PHP Then ask your AI to please scan your system for vulnerabilities and help you update! Share with someone who needs to hear this one

Peter Steinberger on X

Quoting @OpenAI: OpenAI models helped researchers—operating as part of our Patch the Planet initiative—discover critical security flaws in PHP, an open-source programming language used to run an estimated 70% of websites. Over the past…

That PHP vulnerability that’s gonna cause havoc this week was found with… GPT‑5.6 Sol.

Delia Lazarescu on Instagram

Founder, Tech Unicorn

wtf happened & how to stay safe 👇Cleansing my laptop’s energy because PHP had a really bad week 🧘‍♀️💻 just posted a YT video about this 👀 but the TLDR… AI just found two critical bugs that had been hiding in PHP for over a decade. PHP runs about 70% of the internet, including most WordPress sites. Hackers were already using them, and the NSA and FBI basically said “patch it or take it offline” 😳 Firewalls are great, but have you tried manifesting? ✨ Jokes aside, if you have a website, the real ritual is: 1️⃣ Update PHP (or ask your host if they already did) 2️⃣ Update WordPress and every plugin you forgot existed 3️⃣ Change your passwords and API keys if anything looks weird Sage is optional. Updates are not 🙃 As an ex-Google engineer, I can confirm a pool, a singing bowl and a red swimsuit don’t count as a security patch. My full breakdown, plus a copy-paste AI prompt to check your site, is on YouTube. Link in bio 🔗 Send this to your friend whose website hasn’t been updated since 2019 🦄 #cybersecurity #php #technews #techhumor techunicorn
Open on Instagram

Questions and answers

What is PHP2Shell, the PHP vulnerability patched in October 2026?

PHP2Shell is the name for two critical PHP flaws, CVE-2026-109618 and CVE-2026-109619, each rated CVSS 9.2. They let an attacker run code on a web server without logging in and read process memory that may hold passwords and API keys. PHP fixed them on October 21, 2026.

Which PHP versions fix PHP2Shell in 2026?

PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 fix the PHP2Shell flaws. The PHP security team also published minimal source backports for PHP 7.4, 8.0 and 8.1, which the PHP project no longer updates. Linux distributions and long-term support vendors received the patches in advance.

Who found the PHP2Shell flaws and how did AI help?

Calif, OpenAI and Wiz found the PHP2Shell flaws in August 2026. Calif audited PHP with the PHP Ecosystem Security Team under OpenAI's Patch the Planet initiative, and Wiz used GPT-5.6 Sol, Gemini 4 Argon and its own Wiz Atlas. Wiz says frontier AI models substantially lowered the barrier to proving the flaws exploitable.

Which PHP servers are at risk from PHP2Shell?

Every PHP installation serving web requests is at risk from PHP2Shell, including LiteSpeed, FrankenPHP, php-cgi, PHP-FPM and Apache running mod_php. The PHP team rates mod_php highest, because a demonstrated exploit triggers from an unauthenticated request before any application code runs. Nearly every release back to PHP 5.4 is affected.

Can PHP2Shell be mitigated without updating PHP?

No mitigation fully protects against PHP2Shell, and PHP calls updating the only safe choice. Stopgaps include turning off session upload progress and, on PHP 8.5, fatal error backtraces, then restarting every worker. Cloudflare's firewall rules against known attack methods are temporary, its CTO Dane Knecht said.

More in this topic

Latest video

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.