Lounge
Connecting…
Connecting…
View all

AI security vulnerability PHP2Shell: why sites went offline

PHP2Shell, a PHP flaw confirmed with AI tools, took government and BBC pages offline in October 2026. See which versions fix it and what to check.

AILatest7 min read59 viewsPublished Updated
Contents7 sections
  1. What is the PHP2Shell AI security vulnerability?
  2. Why were websites taken down if a patch existed?
  3. What AI vulnerability discovery changed, and what it did not
  4. Checklist for site owners
  5. What everyday users should know
  6. Frequently asked questions
  7. Sources and references

Key takeaways

  • PHP2Shell (CVE-2026-109618 and CVE-2026-109619) is a pair of PHP engine flaws that can allow unauthenticated remote code execution, rated 9.2 under CVSS v4.0.
  • The fixes shipped on October 21, 2026 in PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35; PHP 8.1 and older get no official release from the PHP project.
  • Most outages were precautionary: agencies such as CISA and the UK NCSC told organisations to take systems offline if they could not patch or mitigate quickly.
  • AI tools sped up proving the bugs were exploitable, but people still chose the fix, reviewed the patch and managed a disclosure that leaked early.
  • Site owners should inventory every PHP install, update and restart, then hunt for signs of compromise; everyday users mainly need to watch for phishing and follow official notices.

The websites that went dark in October 2026 were not knocked over by an AI. They were switched off by their own operators after an AI security vulnerability investigation exposed PHP2Shell (CVE-2026-109618 and CVE-2026-109619), two critical flaws in the PHP engine that powers a large share of the web. When security agencies advised organisations to take systems offline if they could not patch quickly, government portals, councils and media sites did exactly that. This guide, current as of October 26, 2026, draws on the PHP project's advisory, the PHP Foundation, the US Cybersecurity and Infrastructure Security Agency (CISA) and the UK National Cyber Security Centre (NCSC). It covers what was found, why sites went down, what role AI really played, and what site owners and ordinary users should check.

What is the PHP2Shell AI security vulnerability?

PHP is a server-side language that builds web pages before they reach your browser. WordPress, Drupal, online stores, forums and hosting control panels commonly run on it. Because these bugs sit in the PHP engine itself, a carefully written website could still be exposed if the server underneath was not updated. The PHP security advisory says both flaws can allow unauthenticated remote code execution (RCE), meaning an attacker who never logs in could run commands on the server. Both are rated 9.2 under CVSS v4.0.

Nickname

CVE-2026-109618
RCE via out-of-memory corruption
CVE-2026-109619
RCE via stale global state

What goes wrong

CVE-2026-109618
Out-of-memory handling interrupts PHP while request data is half-initialised; cleanup then treats it as valid
CVE-2026-109619
Request-owned state survives after its memory is freed; the next request on the same worker uses it

Demonstrated impact

CVE-2026-109618
On Apache mod_php, an unauthenticated request can trigger it before any application code runs
CVE-2026-109619
Use-after-free and worker crash confirmed; RCE shown against a real-world application

Fixed in

CVE-2026-109618
8.5.12, 8.4.27, 8.3.36, 8.2.35
CVE-2026-109619
8.5.12, 8.4.27, 8.3.36, 8.2.35

The PHP project considers every installation that serves web requests to be at risk, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed, with mod_php the highest-risk setup. The PHP Foundation explains that the bugs live in memory management and error handling, code nearly every request touches, which is why they were both severe and hard to fix without breaking compatibility or performance.

How seriously to take the 70% figure

Many headlines repeated that roughly 70% of the internet was affected. The BBC attributes that estimate to Wiz and notes it could not verify it. The share of sites built on PHP is not the same as the share that is actually exploitable, which depends on version, server setup and what sits in front of PHP. Treat the number as a sign of reach, not a count of victims.

Why were websites taken down if a patch existed?

The plan was a coordinated disclosure: Linux distributions and long-term support vendors received patches early so everyone could update at once. That plan broke down two days before release, according to the PHP Foundation. The key moments, in UTC:

2024

What happened
An external audit surfaces first signs of the out-of-memory bug; no attack path is found and the fix stalls
Source
PHP Foundation

Jul 30, 2026

What happened
Calif begins auditing PHP through OpenAI's Patch the Planet programme
Source
PHP Foundation

Aug 11, 2026

What happened
Calif reports an unconditional RCE; Wiz (Aug 24) and OpenAI (Sep 18) add further attack vectors
Source
PHP Foundation

Oct 17, 2026

What happened
Amazon Threat Intelligence observes exploitation attempts before disclosure
Source
Tenable summary

Oct 20, ~15:00

What happened
CVE IDs leak with a wrong score of 10.0; PHP posts advance notice at 19:30
Source
PHP Foundation

Oct 21, 07:41

What happened
Chainguard breaks the embargo and publishes patched images early
Source
PHP Foundation

Oct 21, 14:00

What happened
PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 ship; agencies issue urgent alerts
Source
PHP.net, CISA, NCSC

The outages followed official advice. The UK NCSC told organisations that could not update or apply temporary mitigations to consider taking systems offline until fully mitigated. CISA went further for anyone unable to update immediately or still on unsupported PHP 8.1 or earlier: take PHP-based systems offline until patched. The BBC reported that Finland's public government web services, the Dutch cyber security agency's site, Edinburgh council and some BBC pages went offline, and the Wikimedia Foundation took down a number of systems as a precaution.

Recovery took time because finding PHP is harder than updating it. CISA points out that PHP is often a component of other software and may not be directly visible. Old outsourced sites, forgotten test servers, appliance admin panels and container images all need checking. Many organisations judged that a few hours offline cost less than cleaning up a breach, and the BBC quoted Cloudflare's CTO saying early attacks were already emerging.

What AI vulnerability discovery changed, and what it did not

This is called an AI-found vulnerability because AI did the heavy lifting in proving the bugs were dangerous. The PHP Foundation says it scanned PHP with an Anthropic model earlier in the year and later added OpenAI tooling to validate reports and exploits. Wiz, quoted by the BBC, said frontier models let researchers develop and adapt working exploits across multiple applications in hours. A problem that stayed theoretical in 2024 was confirmed as an unconditional RCE within weeks in the summer of 2026.

  • Changed: the speed of confirming that old, subtle bugs are exploitable.
  • Changed: report volume. The PHP security team published 15 CVEs since July 1 and worked through more than 100 reports that were invalid, duplicates or not reproducible.
  • Unchanged: choosing the fix. Weighing compatibility, performance and third-party extensions, then reviewing the patch, still fell to a small group of engineers.
  • Unchanged: the human side of disclosure. A leak, a mistakenly published demo video and a broken embargo did more to compress the timeline than any model.

A fairer reading is that AI sped up both defenders and attackers. The PHP Foundation expects tools to keep finding bugs faster and report numbers to keep rising, so the winning skill is knowing your assets and patching quickly. If you want to follow how AI security stories spread, theddari's AI Telegram trends and blog trends dashboard show which topics are gaining attention. Those signals are context only; base any action on the PHP advisory and agency guidance.

Checklist for site owners

Combining the NCSC, CISA and PHP guidance gives a clear order of work. Do not assume a recent version is safe: the NCSC says all versions may be affected, so look for every PHP installation rather than only outdated ones.

  1. 1

    Inventory every PHP install

    Start with internet-facing systems, then internal ones. Include agency-built sites, test servers, admin panels, appliances that bundle PHP and container images. The NCSC points to NCSC-NL's list of software with a PHP dependency.

  2. 2

    Update and restart

    Move to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35 or later, or your distribution's patched package. Restart every worker and confirm the new build is actually running. Plan a move off 8.1 and older.

  3. 3

    Mitigate or go offline if you cannot patch

    PHP lists temporary settings, including memory_limit=-1 set so applications cannot override it, a lower post_max_size and session.upload_progress.enabled=0. They narrow specific paths only. If even these are not feasible, follow the NCSC advice and consider taking the system offline.

  4. 4

    Hunt for compromise

    CISA advises watching for PHP worker processes launching shells or downloading tools. Look for new PHP files in web directories, unexplained outbound connections and bursts of out-of-memory or server errors. Preserve logs before rebooting a suspect server.

  5. 5

    Keep watching for follow-ups

    On October 23, PHP issued an informational advisory recommending session.upload_progress.enabled=0 until the next regular release. Track updates from vendors whose products bundle PHP.

Do not run unverified scanner scripts or public exploit code on production servers. Malware disguised as a checking tool tends to spread during incidents like this. Use official advisories and reputable security vendors.

What everyday users should know

Most people never touch PHP directly; this is a server problem. If a site you use is briefly unavailable, it is most likely a precautionary check, so follow its official status page or social account. Be wary of emails or texts asking you to log in to confirm your security, because phishing usually spikes after big headlines. If you reuse a password across sites, change it, and turn on passkeys or two-factor authentication where offered.

Some risk remains. Small sites and devices on unsupported PHP may stay exposed for months. Exploitation attempts reportedly began before disclosure, and updating does not evict an attacker who already got in. And as AI makes exploit validation faster, disclosures of this scale may recur. The practical lesson for operators is to keep an up-to-date record of where PHP runs, which version is installed and when it was last patched, so the next advisory becomes a routine task rather than an emergency.

Frequently asked questions

Did an AI attack these websites?
No. According to the PHP Foundation, researchers at Calif, Wiz and OpenAI used advanced AI tools to audit PHP, confirmed the bugs could be exploited and reported them privately to the PHP security team. The outages came afterwards, when operators took systems down as a precaution. The concern is that attackers have access to similar tools, which shrinks the time between disclosure and exploitation.
Was my data stolen if a site I use runs PHP?
Running PHP does not by itself mean a site was breached. CISA said that, as of its October 21, 2026 alert, it had not observed successful exploitation in the wild. Tenable's summary notes that Amazon Threat Intelligence saw exploitation attempts starting October 17, before public disclosure, so risk is real. Watch the service's official announcements and change any password you reuse elsewhere.
Is PHP 8.1 or older still safe to run?
Not without extra work. The PHP project published no official releases for 8.1 and older, though its security team shared minimal source backports for 7.4, 8.0 and 8.1, and some Linux distributions and long-term support vendors ship patched packages. Distribution packages may keep the same version number, so check the package revision. The longer-term answer is moving to a supported branch; note that PHP 8.2 itself reaches end of life on December 31, 2026.
Will a web application firewall protect me until I patch?
Only partly. CISA said a WAF may provide some protection until systems are updated. PHP's own advisory lists temporary settings such as memory_limit=-1, a lower post_max_size and session.upload_progress.enabled=0, but stresses that these reduce specific attack paths and do not make an installation safe. Updating is the only complete fix.

Sources and references

  1. 1PHP.net: Security advisory - Critical remote code execution vulnerabilities (Oct 21, 2026)(opens in a new tab)www.php.net
  2. 2The PHP Foundation: Today's PHP Security Release, and How We're Strengthening PHP Security(opens in a new tab)thephp.foundation
  3. 3CISA: Critical Vulnerabilities in PHP Require Immediate Patching(opens in a new tab)www.cisa.gov
  4. 4UK NCSC: Critical security issue affecting PHP(opens in a new tab)www.ncsc.gov.uk
  5. 5BBC News: Websites taken down worldwide as critical PHP cyber-security update issued(opens in a new tab)www.bbc.com
  6. 6Tenable: php2shell frequently asked questions(opens in a new tab)www.tenable.com