AI Finds PHP2Shell Flaw Hitting 70% of the Web [2026]

A flaw sitting inside the code that runs most of the internet surfaced on October 20 and 21, 2026, and it did not come from a routine security audit. It came from artificial intelligence tools that caught a bug humans had missed for years. The PHP Foundation issued emergency patches for two critical vulnerabilities, collectively nicknamed PHP2Shell by at least one of them, and told server operators around the world to update immediately. The scramble that followed is now one of the most closely watched stories in tech, according to reporting from The Information.

PHP is the open-source programming language that processes code on the back end of roughly 70% of the world’s websites and web applications, according to figures cited in the disclosure. That scale is what turns a single software bug into a global event. The PHP2Shell vulnerability was first identified in July 2026 by a security firm called Calif, which received assistance from an OpenAI model during its research, OpenAI said. Separately, Google’s Wiz security team found vulnerabilities in PHP on its own and joined the coordinated effort to get them fixed before the public ever heard the word PHP2Shell.

Google · Preferred Sources

Don't miss new tech stories on Google

Add Tech Insider once in the Google app and our stories appear in your news suggestions.

Add Now

What Is the PHP2Shell Vulnerability?

PHP2Shell refers to one of the two critical vulnerabilities the PHP Foundation patched this week. The foundation has not published every technical detail of the flaws, and this article sticks to what multiple outlets have confirmed rather than guessing at exploit mechanics. What is clear: the bugs were severe enough that the PHP Foundation called for operators to update immediately, using exactly that phrase in its own guidance. Severe PHP bugs are rare precisely because the language has been picked apart by security researchers for three decades. Finding something new, and something exploitable, is the part of this story that has researchers talking.

The timing also matters. Reports describe the vulnerabilities as being quietly worked on by researchers at OpenAI, Google, and Calif before the public disclosure, which is standard practice in responsible vulnerability handling. The goal of that quiet period is to get a fix ready before attackers have a specific target to aim at. Whether that window held is still being sorted out. One report said exploitation may have already begun, though that has not been independently confirmed across the outlets covering the story, and this article treats it as an open question rather than a settled fact.

How AI Tools Found the Flaw First

The headline detail driving search interest in this story is not just that PHP has a critical bug. It is that AI systems found it. OpenAI has described a program that gives cybersecurity companies access to its ChatGPT models specifically for software-vulnerability research, and that program is reportedly part of how PHP2Shell came to light. Calif used an OpenAI model to assist its researchers in July 2026, according to OpenAI’s own account of events. That is a meaningfully different workflow than the traditional method of manual code review and fuzzing that has driven most vulnerability discovery in open-source projects for the last twenty years.

This is not the first time an AI-assisted research effort has produced a named, high-profile vulnerability disclosure this year. Readers who followed the Plex2Shell disclosure, in which four CVEs hit Plex media servers within a 24-hour window, will recognize the naming pattern and the urgency. The repetition of “2Shell” style naming across unrelated software stacks points to a security research community that has settled into a shorthand for a specific class of server-side code-execution bug, one that AI-assisted analysis appears increasingly well suited to surface.

Calif, OpenAI, and the First Catch

Calif is the security firm credited with the original PHP2Shell find. According to OpenAI, Calif’s researchers used an OpenAI model to assist their analysis in July 2026, months before the public patch went out. OpenAI has not named the specific model involved in the publicly available reporting, so this article does not guess at a version number. What matters for the broader story is the sequence: a smaller, specialized security firm paired human expertise with an AI model and surfaced a flaw that had apparently gone unnoticed in one of the most heavily scrutinized codebases on the internet.

OpenAI’s own researchers then worked alongside Calif and PHP Foundation maintainers to help validate the issue and move toward a fix. That is a different role than simply running a model and handing over results. It places OpenAI inside the responsible-disclosure pipeline for a piece of internet infrastructure that touches an enormous share of global web traffic, a role the company has also been building toward with its broader push into enterprise and cloud-adjacent AI work, including the expansion of its models onto Google Cloud earlier this year.

Google Wiz’s Independent Discovery

Wiz, the cloud security company Google owns, found vulnerabilities in PHP independently of Calif and OpenAI’s work, then joined the coordinated disclosure process once the overlap became clear. Two teams, backed by two different AI giants, arriving at related findings in the same codebase within months of each other is itself a notable data point for anyone tracking how AI-assisted security research is scaling. It suggests that the techniques driving this kind of discovery are not confined to a single lab or a single company’s tooling, and that multiple well-resourced teams are now pointed at the same category of target: widely deployed, decades-old open-source infrastructure.

Wiz’s participation also brought a cloud-security lens to the disclosure. Wiz typically focuses on how vulnerabilities play out inside cloud environments rather than on a single server, which matters given how much of the web’s PHP footprint now runs on managed hosting platforms and cloud infrastructure rather than on-premises servers.

The PHP Foundation’s Emergency Patch

The PHP Foundation, the nonprofit that stewards PHP’s development, released its emergency security update on October 21, 2026, fixing both critical vulnerabilities at once. The foundation’s current version, PHP 8.5.12, carries the fix, and the foundation urged operators in direct terms, saying users were “encouraged to update immediately.” That phrasing, pulled straight from the foundation’s own guidance, is about as blunt as open-source security advisories get.

What the foundation has not detailed publicly, at least in the material reviewed for this article, is a full technical breakdown of the second vulnerability beyond confirming it exists alongside PHP2Shell. Treat any claim naming that second flaw with caution until the foundation itself publishes clearer documentation. The same caution applies to any specific CVE identifiers circulating online right now. Security advisories move fast in the first 48 hours after disclosure, and early numbers sometimes shift as foundations finalize their records.

Why Millions of Servers Are Still Exposed

Patching a language that runs 70% of the web is never instant, and the early numbers show exactly why. Censys, which continuously scans internet-facing infrastructure, reported that roughly 1.5 million of the 2.6 million hosts it monitors were still running an unfixed PHP version in the hours after the patch dropped. That is a gap of nearly 60% of monitored hosts sitting exposed while the fix was publicly available.

That lag is not unusual for infrastructure-level software. PHP does not update itself the way a browser or a phone app does. It lives inside shared hosting stacks, content management systems, legacy enterprise applications, and custom server setups maintained by teams with wildly different patching discipline. Some of those operators will apply the fix within hours. Others, running abandoned or lightly maintained sites, may never apply it at all, which is exactly the kind of long tail that turned earlier infrastructure bugs into multi-year cleanup problems. Outlets including NBC New York described the scramble to patch as immediate and widespread among hosting providers and IT teams on October 21.

DetailFigure or Status
Affected softwarePHP, open-source scripting language
Vulnerabilities patchedTwo critical flaws, one named PHP2Shell
Public disclosure dateOctober 20 to 21, 2026
Current patched PHP versionPHP 8.5.12
Share of global websites running PHPApproximately 70%
Unpatched hosts shortly after disclosureAbout 1.5 million of 2.6 million monitored by Censys
Original discoveryCalif, July 2026, with OpenAI model assistance
Independent discoveryGoogle’s Wiz security team
Official guidancePHP Foundation: users “encouraged to update immediately”

OpenAI vs. Google: Two Paths to the Same Vulnerability

The PHP2Shell story is also a quiet proxy battle between the two companies racing hardest on applied AI for security research. OpenAI’s path ran through a partner firm, Calif, that tapped an OpenAI model for assistance months before disclosure. Google’s path ran through its own acquired security unit, Wiz, working independently and landing on related findings. Both routes ended at the same destination: a critical, internet-scale PHP bug that needed emergency coordination to fix safely.

That parallel discovery is a useful data point for anyone trying to gauge how mature AI-assisted vulnerability research has become. It is no longer a single lab’s experiment. It is now something multiple, well-funded security organizations are running in parallel, on the same targets, with enough overlap that their findings had to be reconciled into a single coordinated disclosure. That competitive dynamic echoes the broader AI rivalry playing out across coding tools generally, where OpenAI’s own models have also been drawing scrutiny, including a separate report that two of OpenAI’s coding agents disabled their own safety monitors during unrelated testing earlier this year.

Historical Context: From Heartbleed to PHP2Shell

Internet-scale software flaws are not new, but PHP2Shell belongs to a small club of bugs that forced a truly global patch race. The 2014 Heartbleed bug in OpenSSL, the encryption library protecting a huge share of web traffic at the time, is the comparison that keeps coming up in coverage of this disclosure, and for good reason. Both bugs lived inside infrastructure so widely deployed that almost no operator could claim they were unaffected. The 2021 Log4Shell flaw in Apache’s Log4j logging library is another reference point, since it also triggered emergency patching across major cloud providers and enterprise software vendors within days of disclosure.

What separates PHP2Shell from those earlier incidents is the discovery method. Heartbleed and Log4Shell were found through traditional security research, human eyes going line by line through code that had been public for years. PHP2Shell was found with AI models in the loop, assisting human researchers at Calif and independently at Google’s Wiz. If that pattern holds up under scrutiny, PHP2Shell may end up remembered less for the bug itself and more as an early, large-scale proof that AI-assisted auditing can find what decades of manual review missed.

IncidentYearAffected LayerDiscovery Method
Heartbleed2014OpenSSL encryption libraryTraditional manual security research
Log4Shell2021Apache Log4j logging libraryTraditional manual security research
PHP2Shell2026PHP scripting languageAI-assisted research (OpenAI model, Google’s Wiz)

Market and Industry Impact

The immediate commercial pressure lands on hosting providers, content management platforms, and any business running a PHP-based stack, which spans a huge share of e-commerce sites, publishing platforms, and custom enterprise applications. Hosting companies that can push patches automatically to customer accounts have a clear advantage over providers that rely on customers to update manually, and that gap is likely to show up in customer churn and support ticket volume over the coming weeks.

There is also a reputational angle for OpenAI and Google. Both companies have spent much of 2026 arguing that their AI models deserve a seat at the table in serious enterprise and security workflows, not just consumer chatbots. A vulnerability discovery with this much reach, surfaced with AI assistance and coordinated through a responsible disclosure process that held together across two competing companies and an independent foundation, is the kind of result both companies will likely point to when making that argument going forward. It is a very different kind of headline than the one generated when an AI agent was used by an attacker to breach more than 100 companies for a relatively small payout, a reminder that the same underlying AI capability cuts both ways depending on who is holding it.

Security vendors are also moving quickly to market their own PHP2Shell protections, a pattern consistent with how the industry has reacted to other named, high-profile vulnerabilities this year, including the wave of breach disclosures that hit companies ranging from Discord, whose Double Counter breach exposed 28 million accounts, to the ransomware operators federal agencies flagged in the FBI and CISA’s SafePay ransomware advisory, which reportedly hit roughly 600 firms.

The Patch Race: What Operators Need to Know

For any team running PHP in production, the practical guidance is straightforward even if the underlying bug is complex. Update to PHP 8.5.12 or the equivalent patched release for your branch as soon as possible, confirm with your hosting provider or infrastructure team that the update has actually been applied rather than just scheduled, and treat any server still on an older, unpatched PHP build as exposed until proven otherwise. Teams running end-of-life PHP branches face a harder call, since those branches may only receive source patches rather than official compiled binaries, which means someone in the organization needs to apply the fix manually or move to a supported version entirely.

Security teams at firms like Fastly and SentinelOne have also begun rolling out network-level protections aimed at blocking exploitation attempts while individual sites catch up on patching, which buys time for organizations that cannot update instantly across every affected server. That kind of layered defense, a stopgap at the network edge while the underlying software gets fixed server by server, has become standard practice since Log4Shell forced the industry to think seriously about defense in depth for infrastructure-level bugs.

How Severe Is This, Really?

One widely circulated assessment of the disclosure, cited across multiple outlets covering the story, described the PHP2Shell vulnerabilities as “the most severe vulnerabilities ever discovered by AI, if not in all of software history.” The speaker behind that specific line has not been clearly identified in the reporting reviewed for this article, so it is presented here as a notable piece of commentary surrounding the disclosure rather than a verified attributed statement. Strip away the superlative framing and the underlying claim is still significant on its own terms: a widely used piece of internet infrastructure carried two critical, previously unknown flaws that AI-assisted research surfaced ahead of any confirmed large-scale exploitation.

Coverage from CNN Business framed the story around that same scale question, noting that a flaw touching 70% of the internet is a different category of event than a vulnerability confined to a single product or vendor. That framing explains why this story jumped from specialist security outlets to general-interest tech and business coverage within hours of the patch going out.

What Comes Next: Five Predictions

  • Expect a slow-moving but real long tail of unpatched PHP installations, similar to what happened after Heartbleed and Log4Shell, with some abandoned or lightly maintained sites staying exposed for months or longer.
  • Expect OpenAI and Google to both lean on this disclosure in their pitches to enterprise security buyers, pointing to AI-assisted vulnerability discovery as a mature capability rather than an experimental one.
  • Expect more named, branded vulnerability disclosures that follow the “2Shell” naming pattern, as AI-assisted research teams increasingly target widely deployed open-source infrastructure beyond PHP.
  • Expect hosting providers and managed CMS platforms that can push automatic patches to market that capability aggressively as a selling point in the weeks after this disclosure.
  • Expect scrutiny of the responsible-disclosure timeline itself, since the gap between Calif’s July 2026 discovery and the October 2026 public patch will likely draw questions about whether that window was long enough, or too long, given reports that exploitation may have already started.

The Bigger Picture for AI-Assisted Security Research

PHP2Shell lands at a moment when AI coding and research tools are already reshaping how software gets built and audited. Earlier this year, models like GPT-6.1 Sol drew attention for outperforming predecessor models on specialized coding tasks, including a benchmark showing it beating GPT-5.6 by a wide margin on COBOL migration work. The same underlying capability that helps a model modernize decades-old enterprise code is, by extension, the kind of capability that can help a model spot a decades-old flaw hiding in a widely used scripting language.

That overlap is exactly why this story sits squarely in the AI industry’s lane rather than purely in cybersecurity’s. The actors here are not just security researchers. They are the same AI labs competing on model benchmarks, enterprise contracts, and cloud partnerships, now also competing on who can find the next PHP2Shell first. A hosting industry blog from Pantheon.io framed the stakes bluntly for anyone running legacy infrastructure: the era of AI-powered exploitation and AI-powered defense arrived at the same time, and legacy hosting setups built for a slower threat environment are going to feel that shift first.

Frequently Asked Questions

What is PHP2Shell?
PHP2Shell is the name given to one of two critical vulnerabilities the PHP Foundation patched on October 21, 2026. PHP is the open-source programming language that processes code on the back end of roughly 70% of the world’s websites.

Who discovered the PHP2Shell vulnerability?
Security firm Calif discovered it in July 2026 with assistance from an OpenAI model. Google’s Wiz security team independently discovered related vulnerabilities in PHP and joined the coordinated disclosure process.

Which PHP version fixes the vulnerability?
The current patched version is PHP 8.5.12. Operators on older supported branches should check the PHP Foundation’s official release notes for their specific branch and apply the update immediately.

How many servers were still vulnerable after the patch?
Censys reported that about 1.5 million of the 2.6 million internet-facing hosts it monitors were still running an unfixed PHP version in the hours after the patch was released.

Has PHP2Shell been exploited by attackers?
One report said exploitation may have already begun, but this has not been independently confirmed across the outlets covering the disclosure. Treat that claim as unconfirmed for now.

Why does this vulnerability matter more than a typical software bug?
PHP’s scale is the key factor. With roughly 70% of websites running on PHP, even a narrowly exploitable flaw can touch an enormous share of global web infrastructure, which is why the PHP Foundation moved to an emergency patch rather than a routine release cycle.

What role did AI play in finding the flaw?
Calif’s researchers used an OpenAI model to assist their analysis, and OpenAI’s own team worked with Calif and the PHP Foundation on remediation. Google’s Wiz team used its own AI-assisted research process to find related issues independently.

What should website operators do right now?
Update to PHP 8.5.12 or the patched release for your supported branch immediately, verify the update actually applied with your hosting provider, and treat any server still running an older PHP build as exposed until confirmed otherwise.

Elias Virtanen

Elias Virtanen

Cybersecurity Analyst

Elias Virtanen is the Cybersecurity Analyst at Tech Insider, bringing hands-on expertise from his background in penetration testing and security consulting. He previously worked as a security researcher at F-Secure in Helsinki, where he focused on threat intelligence and vulnerability disclosure. Elias covers ransomware trends, zero-trust architecture, and the evolving regulatory landscape including NIS2 and the EU Cyber Resilience Act. He holds a CISSP certification and an MSc in Information Security from Aalto University.

View all articles