AI Found A PHP Bug That Puts Up To 70% Of Websites At Risk: What php2shell Is, Who's Affected, And How To Patch It

October 22, 2026 AI Angst avatar — a robot head with a distressed expression. JBS

A glowing padlock cracked open on a dark background, with faint lines of code spilling out and a map of the web's interconnected servers fading into the distance behind it.AI Label

On Wednesday, October 21, 2026, the PHP Foundation disclosed two critical flaws, nicknamed php2shell, that let attackers run code on unpatched PHP servers without logging in. PHP is the language behind WordPress and a large share of the web, and AI models helped find a bug that had been sitting in it for 14 years.

Within hours, government agencies in Europe pulled websites offline, Cloudflare reported early attack attempts, and the FBI and NSA urged organizations to update. The patch exists. The open question is how fast the internet applies it.


What php2shell Actually Is

php2shell is the collective name for two critical vulnerabilities in PHP itself, CVE-2026-109618 and CVE-2026-109619, each rated 9.2 out of 10 on the CVSS severity scale. Because the flaws live in the language, not in any one website or plugin, updating WordPress, a theme, or an extension does not fix them. Only a patched PHP does.

Detail Fact
Disclosed October 21, 2026, by the PHP Foundation, alongside an emergency patch
Identifiers CVE-2026-109618 and CVE-2026-109619, nicknamed "php2shell"
Impact Remote code execution on unpatched PHP servers, without needing to log in
Affected versions Every PHP release before 8.5.12, 8.4.27, 8.3.36, and 8.2.35, reaching back at least to PHP 5.4
Fixed versions PHP 8.5.12, 8.4.27, 8.3.36, and 8.2.35
No upstream fix PHP 8.1 and older, though minimal source backports and some vendor-supplied fixes exist
Estimated exposure Palo Alto Networks' initial analysis found about 22.6 million potentially vulnerable instances

How AI Found It

Three groups reached the same flaw independently in August 2026, and all of them used AI to do it. They then joined a coordinated effort with the PHP Foundation to develop fixes and time the disclosure, led by OpenAI.

When What Happened
August 1 AI red-teaming firm Calif, invited into OpenAI's "Patch the Planet" initiative, finds the first issue using GPT-5.6 Sol. OpenAI investigates and finds additional elements, which made the flaw look more serious than first realized.
August 19 Researchers at Wiz, Google's security subsidiary, independently identify the vulnerabilities using Google's Gemini 4 Argon, GPT-5.6 Sol, and Wiz's own tooling.
August to October OpenAI convenes a coalition including Wiz, Calif, the PHP Foundation, Cloudflare, Quarkslab, and U.S. government agencies to build patches and coordinate disclosure.
October 21 The PHP Foundation publishes the advisory and emergency patch. Reports of the flaws had leaked overnight ahead of the official release.

OpenAI president Greg Brockman noted that the underlying bug had been present for 14 years, and that a limited version of it surfaced in 2024 but wasn't considered significant at the time. The Calif team said it wasn't expecting to find anything critical, since PHP has been scrutinized by the security community for years.


Where The "70%" Comes From, And What It Doesn't Mean

The 70% figure is an estimate of how much of the web runs on PHP, not a count of websites confirmed to be vulnerable. Coverage from CNN, The Washington Post, and Fortune uses the phrase "up to" or "as much as" 70% for that reason: it describes the maximum exposed population before anyone patches.

  • PHP powers WordPress, which Reuters says runs roughly 40% of all websites, along with many other content systems and a long tail of custom applications

  • Whether a particular site is exposed depends on its PHP version, its configuration, and whether the fix has been applied

  • Palo Alto Networks' initial scan put the number of potentially vulnerable instances at about 22.6 million, a much narrower figure than 70% of the web

  • Wiz has compared the severity to the 2014 Heartbleed bug, which affected an encryption library used by roughly two-thirds of the web


What Happened On Disclosure Day

The response was fast and, in places, disruptive: several government and company sites went dark as a precaution while administrators updated.

  • Government agencies in the Netherlands and Finland took websites offline, and an EU agency warned others might need to, according to Reuters

  • The Internet Archive's Archive.org went temporarily offline

  • The FBI's Cyber Division and the NSA urged potentially affected organizations to update, as did the EU's computer emergency response team and Japan's prime minister

  • Cloudflare's CTO said the company was seeing early attack attempts, and Cloudflare rolled out initial firewall rules for the known exploit routes

Successful breaches were still described as limited as of Thursday, with a handful of unverified individual reports circulating online. Security vendors say exploitation attempts have been observed in the wild, which is why most of them are treating this as a patch-now situation rather than a watch-and-wait one.


Why Researchers Call It An "AI Inflection Point"

The flaw itself wasn't new, what changed is how fast AI can turn a subtle weakness into a working attack. Wiz said the vulnerable code had been in PHP for more than a decade, and that AI's contribution was the ability to understand the weaknesses and turn them into an exploit. OpenAI called it one of the most impactful security issues in recent memory.

The uncomfortable part of this story is that the same capability sits on both sides of the fence. The coalition that found php2shell used AI to find, understand, and patch a long-buried flaw before it was exploited at scale, which is what a defender's best case looks like. But the identical skill, chaining small weaknesses into a working attack in hours instead of weeks, is available to anyone with access to a capable model. The window between a bug becoming public and attackers weaponizing it is shrinking, and that window is exactly where unpatched servers get hurt.

What Site Owners Should Do Now

The only complete fix is updating PHP to a patched release and restarting the processes that serve your site. This guidance reflects advisories from the PHP project and security vendors as of October 22, 2026, so check your host's or the PHP project's current notices for updates.

  • Update PHP to 8.5.12, 8.4.27, 8.3.36, or 8.2.35, whichever branch you're on

  • Restart your PHP workers (PHP-FPM, Apache, or container workers) after updating. A package update alone doesn't replace code already loaded in memory

  • Don't rely on a WordPress update. The fix has to happen in the PHP your host or server runs, so confirm the exact PHP version with your host

  • Using PHP 8.1 or older? There's no upstream release. Upgrade to a supported branch, get a backported fix from your Linux distribution or vendor, or take the system offline until it's patched, which is the guidance security firms attribute to CISA for systems that can't be updated

  • Rebuild container images and redeploy, since a base image is only as fixed as its last rebuild

  • Review logs from before you patched for signs of suspicious requests

If an immediate update isn't possible, some vendors, including Aikido, have published stopgap configuration changes to reduce exposure, which they stress should be applied together at the server level and are not a substitute for patching. Sites behind Cloudflare also benefit from its initial protective rules, but those too are a layer, not a cure. PHP 8.2, one of the patched branches, reaches end of life on December 31, 2026, so it's worth planning a move to a newer branch.


The Same Capability Cuts Both Ways

php2shell lands in the middle of an ongoing argument about whether AI helps defenders or attackers more, and the evidence so far says both. Fortune reported the same day on a growing wave of AI-assisted cyberattacks, and Forbes recently reported on a hacker who used Anthropic and DeepSeek models to steal more than 600,000 credit card numbers in attacks on over 100 websites.

It also connects directly to a threshold covered elsewhere on this site. OpenAI's newer Astra model was the first the company classified at its "Critical" cybersecurity tier, and GPT-5.6 Sol, the model at the center of the php2shell discovery, was the model that preceded it in the "High" tier. This week's disclosure is a concrete example of the capability those risk categories were created to describe, used here for defense, and a reminder that the same skills don't stay on one side of the line.


The php2shell PHP Vulnerability: FAQ

php2shell is the nickname for two critical vulnerabilities in the PHP programming language itself, CVE-2026-109618 and CVE-2026-109619, disclosed by the PHP Foundation on October 21, 2026. Both are rated 9.2 out of 10 on the CVSS scale and can let an attacker run code remotely on an unpatched PHP server without logging in. Because the flaws are in PHP, not in WordPress or any single application, updating a CMS or its plugins does not fix them.

The 70% figure is an estimate of how many websites run on PHP, not a count of confirmed-vulnerable sites. Whether a given site is exposed depends on its PHP version, configuration, and whether the fix has been applied. Palo Alto Networks' initial analysis identified about 22.6 million potentially vulnerable instances. The flaws affect every PHP version older than 8.5.12, 8.4.27, 8.3.36, and 8.2.35, so "up to 70% at risk" describes the maximum exposed population before patching, not a prediction that 70% of sites will be breached.

Multiple security teams independently used AI models to analyze PHP in August 2026. The AI red-teaming firm Calif found the first issue on August 1 using OpenAI's GPT-5.6 Sol, and OpenAI found additional elements that made the flaw more serious. Researchers at Wiz separately identified the vulnerabilities on August 19 using a combination of Google's Gemini 4 Argon, GPT-5.6 Sol, and Wiz's own tooling. The bug had been present in PHP for 14 years, and a limited version of it was discovered in 2024 but not considered significant at the time.

Update PHP to 8.5.12, 8.4.27, 8.3.36, or 8.2.35, then restart your PHP workers so the patched code actually runs. If you use managed hosting, ask your provider to confirm the specific PHP version running your site. A WordPress update alone does not fix the issue. PHP 8.1 and older receive no upstream fix, so those sites should upgrade, obtain a vendor backport, or be taken offline until patched, and logs from before the patch should be reviewed.

The vulnerable code sat in PHP for more than a decade, so AI didn't create the flaw. What researchers say changed is the ability to understand subtle weaknesses and chain them into a working exploit quickly, work that once took skilled specialists far longer. The same capability helps defenders find bugs before attackers do, and helps attackers build exploits faster once a bug is public, which is why the patch race matters.

This article summarizes public reporting on a fast-moving security incident as of October 22, 2026. It is general information, not a substitute for guidance from the PHP project, your hosting provider, or your organization's security team.


Jans Bock-Schroeder, AI Expert and Founder of AI Angst

Jans Bock-Schroeder

Publisher & Founder of AI Angst

Coming from the world of art, photography, and the luxury market, Jans launched AI Angst in 2025 to explore the cultural, ethical, and psychological impacts of artificial intelligence. His work bridges creative vision with critical technology analysis, offering clarity in an era of rapid technological change.


Sources and Citations

This article is based on the following sources:

  1. Fortune: "AI tools discovered the PHP vulnerability that could take down 70% of the Internet" (October 21, 2026)
    Primary reporting source for the discovery timeline, the coalition, disclosure-day events, and the 22.6 million instances estimate.
    https://fortune.com/2026/10/21/ai-tools-discovered-the-php-vulnerability-that-could-take-down-70-of-the-internet-now-the-race-is-on-to-patch-it-before-ai-powered-hackers-attack/
  2. CNN: "Global websites shut down after AI found a critical flaw affecting 70% of the internet"
    Source for the Heartbleed comparison and the government site shutdowns.
    https://www.cnn.com/2026/10/21/tech/php2shell-vulnerability-ai
  3. Forbes: "OpenAI Says AI Found One Of The Biggest Web Weaknesses Ever"
    Source for the models used, OpenAI's statement on severity, and the AI-assisted credit card theft case.
    https://www.forbes.com/sites/thomasbrewster/2026/10/21/openai-ai-found-one-of-the-biggest-web-weaknesses-ever/
  4. Help Net Security: "PHP2Shell: Critical PHP vulnerabilities patched, update now!"
    Source for the unauthenticated nature of the flaws, patched versions, and Cloudflare's firewall rules.
    https://www.helpnetsecurity.com/2026/10/21/php2shell-php-vulnerabilities-patched-cve-2026-109618-cve-2026-109619/
  5. Hostinger: "Hostinger deploys protections against php2shell PHP vulnerabilities"
    Source for the CVSS scores, affected-version range, and the point that CMS updates do not fix the flaw.
    https://www.hostinger.com/blog/protecting-php2shell/
  6. Aikido Security: "What you need to know about PHP2shell"
    Source for reports of exploitation in the wild, end-of-life branch backports, and the interim mitigation guidance.
    https://www.aikido.dev/blog/critical-vulnerabilities-in-php-php2shell
  7. DeployHQ: "PHP2Shell: Patch the PHP RCE Flaws"
    Source for the guidance to restart PHP workers after updating and the handling of managed hosting platforms.
    https://www.deployhq.com/blog/php2shell-php-rce-patch-guide

Published: October 22, 2026. For the authoritative patch details, consult the PHP Foundation's security announcement at php.net. This is a developing story and figures may change. All external links open in a new tab.

A glowing star-shaped AI core suspended above a dark control room, with faint chain-like lines of light around it fraying and dissolving into static on one side.

OpenAI Calls Astra The Start Of The AGI Era. Its Own CEO Calls "AGI" A Marketing Term.


A glossy, hyper-realistic digital portrait of a woman's face subtly dissolving into pixel grid and wireframe lines on one side, set against a soft Instagram-gradient background.

Instagram Will Bury AI Influencers That Won't Admit They're Not Real.


A speedometer-style dial glowing amber, its needle hovering between 'fast' and 'paced,' rendered in a minimalist style against a dark background with faint server-rack silhouettes.

Amodei, Altman, And Musk Agree AI Should Slow Down. Trump Says No.