
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.
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
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.
The two flaws, CVE-2026-109618 and CVE-2026-109619, go by the collective name PHP2Shell.
Each of the two flaws carries a critical CVSS score of 9.2.
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.
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.
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.
Every PHP installation that serves web requests is at risk, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed.
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.
Nearly every PHP release is affected, going back to version 5.4.
Attackers can also read a PHP process's memory, which may hold passwords, tokens and API keys.
The PHP security team also published minimal source backports for PHP 7.4, 8.0 and 8.1, versions it no longer updates.
Linux distributions and long-term support vendors got the patches ahead of release, so users of those packages should check with their vendor.
PHP says no mitigation is complete and updating is the only safe choice.
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.
Calif, OpenAI and Wiz found the flaws in August and worked with the PHP team on discovery, coordination and verifying the patch.
Calif found the flaws in a code audit with the PHP Ecosystem Security Team, work sponsored by OpenAI under its Patch the Planet initiative.
Calif reported the out-of-memory flaw to PHP on August 11.
Wiz used its own Wiz Atlas together with Gemini 4 Argon and GPT-5.6 Sol throughout its research.
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.
Wiz chained the bugs into one exploit script and ran code without authentication on the latest WordPress, Drupal and Joomla container images.
The flaws are in PHP itself, so a site can be exposed even when its own application code is secure.
Wiz says PHP powers 70% of all websites, so the flaws reach 70% of the web regardless of content management system.
The two CVEs group four exploitable bugs, and Wiz says other tracked and likely untracked variants exist.
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.
Wiz said: "These findings rank among the most severe vulnerabilities discovered in PHP, and arguably in software history."
A 2024 source code audit of PHP had already turned up a weakness of the same kind.
Disclosure was set for October 22, but details leaked online on October 20 and PHP moved the release up by a day.
Cloudflare saw early exploitation attempts before the patches were out.
Cloudflare deployed web application firewall rules to block the known attack methods, and its CTO Dane Knecht called them a temporary fix.
Britain's National Cyber Security Centre told organizations to update PHP at once or take systems offline until patched.
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.
Wiz worked with Google Cloud, Cloudflare, AWS, Microsoft, Automattic and others on guidance, detections and mitigations for organizations that cannot update right away.
Claire Zau on TikTok Venture partner, Lightspeed Claire Zau on Instagram Venture partner, Lightspeed Nate B. Jones on TikTok 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… Delia Lazarescu on Instagram Founder, Tech Unicorn Greg Brockman on X President and co-founder, OpenAI Deedy Das on X Principal, Menlo Ventures Pieter Levels on X Indie founder, Photo AI and Interior AI Quoting @stutxo: this is 9/11 for @levelsio Ethan Mollick on X Professor and author, Wharton School Quoting @fiveoutofnine: So basically, today PHP got two critical bugs that let anyone run code on your server without even logging in, which is bad, and then the details leaked before the patch was even out, which is worse, and it works on Wor… Delia Lazarescu on Instagram Founder, Tech Unicorn Jason Koebler on Bluesky Co-founder and journalist, 404 Media Peter Diamandis on X Founder and chairman, XPRIZE Foundation Charlie Warzel on X Staff writer, The Atlantic Aaron Levie on X Chief executive, Box Quoting @fiveoutofnine: So basically, today PHP got two critical bugs that let anyone run code on your server without even logging in, which is bad, and then the details leaked before the patch was even out, which is worse, and it works on Wor… Martin Casado on X General partner, a16z Chuck Keith (NetworkChuck) on X Quoting @Mudit__Gupta: 🚨 Nightmare day for cybersecurity
Multiple major security incidents, active exploits, supply chain compromises...
If you run production systems, start patching NOW.
PHP: Two critical unauthenticated RCEs. Attackers… Sarah Guo on X Founder, Conviction Martin Casado on X General partner, a16z Vaibhav Srivastav on X Aaron Levie on X Chief executive, Box Quoting @NSACyber: Effective Immediately, all organizations using PHP for their systems are advised to be prepared for an update addressing two critical vulnerabilities. PHP is widely used for web applications. These vulnerabilities often… Sriram Krishnan on X Sarah Guo on X Founder, Conviction Quoting @dok2001: PHP changes are live. Start patching.
Huge thanks to coordinated work by @ThePHPF! Ethan Mollick on X Professor and author, Wharton School 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… Stella Biderman on X Executive director, EleutherAI Quoting @So8res: It's striking that this vulnerability was found by Sol and Argon rather than being found and fixed in the wake of Mythos 6mo ago. Seems like a heavy strike against the "defense will run ahead of offense" theory, especia…In their words
What people in AI posted about this story70% 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.
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.
![]()
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
![]()
That PHP vulnerability that’s gonna cause havoc this week was found with… GPT‑5.6 Sol.
![]()
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
![]()
Over the past two months, we have been leading a coalition to mitigate one of the most severe bugs in open source software found in recent memory, php2shell, found as part of our Patch the Planet initiative.
![]()
This is serious.
I just saw with my very own eyes that even non-technical people can exploit CVEs like PHP2Shell using certain AI models and I am actually frightened.
Once you figure it out, it is downright trivial to do. The digital infrastructure of the world is at risk.
![]()
I pre-emptively disconnected ALL my sites / VPS servers from the web
I'll wait for the patch to hit at 2 PM UTC
If you have a PHP website, probably good to take them down until you patch PHP
69.3% of the web runs on PHP so this is going to be intense!
Good time maybe to buy cybersecurity stocks? (not financial advice)
![]()
A visible sign of what AI insiders have been warning about since at least the Mythos release. Acceleration of attack and defense, at inhuman speeds, interacting with the very human systems that need to react to them.
![]()
Php is the worst thing I’ve done for money & this week it’s kind of true for everyone lol 😭
my first job was PHP so I have a love hate relationship with it- but damn governments turning off their websites is a lil nuts…
So here’s what happened. Two critical bugs in PHP (people are calling them PHP2Shell) let an attacker run their own code on a website’s server without logging in. OpenAI says its AI models found them, and the security firm Wiz found them too.
PHP runs roughly 70% of websites (granted most of those are like old WordPress sites, and your grandma’s blog)..
Some governments pulled their own sites offline to be safe. PHP shipped fixes on October 21, and attackers are already trying their luck.
If you run a website:
1. Update PHP itself, then restart it. Updating WordPress or your plugins doesn’t fix this. Safe versions: 8.5.12, 8.4.27, 8.3.36, 8.2.35.
2. On hosting? Ask your host to confirm they’ve patched.
3. On PHP 8.1 or older? It doesn’t get official updates anymore. Time to upgrade (I know, I know).
4. Set session.upload_progress.enabled=0 in php.ini until the next PHP release. It covers a third, rarer bug.
5. Cloudflare added emergency protection, free plan included. That’s a band-aid, not a fix.
If you just use the internet:
1. You don’t need to update anything on your phone or laptop for this one.
2. A site being down this week doesn’t mean it got hacked. It’s probably patching.
3. If a site you trust suddenly redirects you, keeps asking you to log in, or pushes a download, close it.
4. Don’t click “reset your password” links in surprise emails. Go to the site yourself.
5. Use a password manager, unique passwords and 2FA, so one hacked site can’t unlock your other accounts.
Send this to whoever’s been patching servers all week 💻
#PHP2Shell #php
![]()
wrote about "Black October," the PHP vulnerability, and the AI-fueled dread and panic I'm seeing among almost all of the cybersecurity experts I've ever known.
I think people w/ LLMs are brute forcing software the same way they brute forced social media w/ slop
www.404media.co/php2shell-bl...
![]()
SpaceX keeps proving it's more than a rocket company. AI is now its largest business, with 830% revenue growth in a year, $20 billion in quarterly data center spending, and Elon says he could bring 20 gigawatts of compute online next year. Meanwhile, OpenAI’s own agents are switching off their safety monitors and lying about it, and a San Francisco startup is turning mercury into gold.
-- AI found critical flaws hiding for a decade in PHP, the language running 70% of all websites
-- Anthropic’s Claude designed 318,000 anti-venom proteins in 64 hours, built by IT analysts, not biologists
-- SpaceX-Tesla merger odds jumped from 29% to 56% on prediction markets
-- AI-designed molecular scissors cut a protein 30 million times faster than nature
![]()
70% of the internet was vulnerable yesterday to very bad security flaws inside a coding language. Turns out, *one volunteer* is mostly responsible for maintaining that code & helping push updates. Yesterday Ondřej Surý saved the internet. So I called him up. He rules.
![]()
If you wanted to know all the jobs that AI will produce, look no further than cybersecurity. This is going to become one of the biggest investment areas for enterprises going forward.
And even as the work becomes more agentic and autonomous you will need more talent to point the agents at the most critical work, review findings, patch systems, respond to incidents, and more.
Lots of opportunity right now for the systems that protect data and enterprises, as well as the professionals that are deploying them and protecting organizations.
It’s going to only get more wild out there.
![]()
Honestly I feel like cyber had largely become checklists, compliance, reporting, insurance etc over the last decade.
But now we're back to fighting the badies. Let's goooooooo!!!!!
![]()
It's getting more intense!!
For you on the frontlines, how's it looking?
I know it sucks to wake up with your hair on fire. Praying for ya'll.
![]()
1/ pretty bad out there. We have to fix the last 50 years of software and internet sloppiness. Faster than adversaries can find the holes, and faster than we ship new ones (with agents!). CVEs went from ~4k a month to ~15k since April. That is not business as usual.
![]()
Security researchers and operators from the 90s suiting back up ...
![]()
past ~48 hours in security:
> PHP: unauthenticated remote code execution
> GitLab: CVSS 10.0 remote code execution
> Node.js: Brotli decoder RCE + 9 other flaws
> Chrome: 353 security fixes
> Signal: a bug that can prevent calls fully ending
> eMudhra: compromised CA keys
> Oracle: 1,295 security patches
> Fortinet: critical/high fixes
> Atlassian: 176 vulnerability entries
and that’s after the Linux VM escape disclosed last week.
ask Codex / your agent to check your code, dependencies and infrastructure for exposure to these.
set up automations to regularly check for newly disclosed vulnerabilities and flag what needs patching.
![]()
Cyber is going to be one of the most profound aspects of AI. We now have a tireless workforce that can hunt down, discover, patch, or attack any system and software ever created.
We will use agents to identify the long standing risks in existing systems and infrastructure. Attackers will use agents to accelerate the discovery of gaps in environments. We will equally use agents to defend attacks and discover anomalous patterns to better protect our data, and much more.
We’re entering a new cyber regime, and we’ll probably use 100X more tokens on this loop than we’re imagining right now, because we can scan every log, look at every line of code, look through traffic, and process data at a scale that wasn’t comprehensible before.
More than ever, enterprises are going to care deeply about how they manage their networks, systems, software, data, identity, devices, and more. Agents will largely become the solution to these challenges, but they will keep everyone up in the process.
![]()
think today’s php disclosure is a harbinger of things to come. these models will make us all safer by finding long lurking issues.
however the entire software supply chain will need the muscles to rapidly build and deploy fixes.
we might need a lot more public + private partnerships to secure infrastructure across the country.
![]()
Good reminder that Cloudflare is a cool mission driven company and actually we need our infrastructure providers to be competent and forward looking
(Not a shareholder)
![]()
Companies I talk to are struggling with the rate of patches they need to do thanks to AI defenses finding issues before the inevitable wave of incoming cyberattacks by other AIs.
Now consumers are going to have the same experience of getting everything updated often & fast.
![]()
THIS IS DISINFORMATION
The PHP exploit Nate is talking about was found by AI-enabled defensive operations. There is no evidence of large scale exploitation. This is a huge win for defense running ahead of offensive.
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. 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. 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. 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. 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.Questions and answers
What is PHP2Shell, the PHP vulnerability patched in October 2026?
Which PHP versions fix PHP2Shell in 2026?
Who found the PHP2Shell flaws and how did AI help?
Which PHP servers are at risk from PHP2Shell?
Can PHP2Shell be mitigated without updating PHP?
Storyline62 storiesCybersecurity
In this story
Pacific timeCoverage timeline
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.



