Technology · News

PHP2Shell: Two Critical PHP Flaws Trigger Global Site Shutdowns

Published:

In brief

Two critical remote-code-execution flaws in the PHP language, tracked as CVE-2026-109618 and CVE-2026-109619 and nicknamed "PHP2Shell," let unauthenticated attackers run code on vulnerable servers. PHP released patches on October 21, 2026, after exploit details leaked early, and security researchers say attacks began before the fixes shipped, prompting many organizations to take sites offline as a precaution.

PHP, the scripting language that runs a large share of the web's server-side code, was hit by two critical security flaws disclosed in October 2026. Collectively nicknamed "PHP2Shell" and tracked as CVE-2026-109618 and CVE-2026-109619, the bugs allow an attacker with no account or password to execute arbitrary code on an affected web server.

What the vulnerabilities do

According to security firm watchTowr, CVE-2026-109618 occurs when PHP runs out of memory partway through setting up an incoming request, leaving internal request data only partially initialized; PHP's cleanup routine then mistakenly treats that invalid data as valid. CVE-2026-109619 involves internal state tied to one request surviving after the memory it points to has already been freed, so a later request handled by the same worker process can use that stale state before normal initialization resets it.

Research firm Wiz, which examined the flaws, told Help Net Security that the issues had gone unnoticed for years and rank among the most severe ever found in the language. Beyond full remote code execution, watchTowr said the bugs can also crash PHP worker processes, allow arbitrary file reads, or leak server memory.

Who found it, and when

The two flaws were reported through separate research efforts. WatchTowr's advisory credits the security research team at Calif with the discovery, while Help Net Security's coverage attributes identification and disclosure to researchers at Wiz. The disclosure timeline was unusual: details intended to stay under embargo leaked publicly on October 20, 2026, and watchTowr confirmed the leaked information was genuine. PHP's maintainers responded by releasing patches a day ahead of the originally planned October 22 date, at 14:00 UTC on October 21, 2026.

Scope: who runs vulnerable PHP

PHP remains one of the most widely used server-side languages on the web, and the flaws can affect any setup that processes incoming HTTP requests through it. Affected setups include PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed, per watchTowr, meaning the bug sits in the server layer itself rather than in any single application.

PHP versions affected and fixed
PHP branchVulnerable versionsFixed version
8.5.xBelow 8.5.128.5.12
8.4.xBelow 8.4.278.4.27
8.3.xBelow 8.3.368.3.36
8.2.xBelow 8.2.358.2.35
7.4, 8.0, 8.1All versionsNo official PHP core patch; distribution/LTS vendor backports or move to a supported branch
7.3 and olderAll versionsNo fix available; upgrade to a supported branch required

Because PHP 7.4, 8.0 and 8.1 are no longer officially supported, watchTowr says there is no patch from the PHP core project for sites still running those branches, though Linux distribution or long-term-support vendor backports may be available as an interim option; otherwise those installations need to move to a supported branch. PHP 7.3 and older have no fix at all, according to watchTowr. PHP's advisory states that no configuration change fully closes the vulnerabilities short of updating the software.

Impact and exploitation

Help Net Security reported that a honeypot network run by Amazon detected exploitation attempts on October 17, 2026 — four days before the public patch — suggesting some attackers had early access to exploit details. WatchTowr said its own "Attacker Eye" honeypot network observed active exploitation in the wild continuing after the October 21 patch release. Content management systems built on PHP, including WordPress, Drupal and Joomla, along with Laravel-based applications and e-commerce platforms, are all within the affected footprint because they run on top of the vulnerable PHP engine.

As patching got underway, government agencies, online forums, gaming platforms and some infrastructure-linked sites were taken offline as a precaution while operators applied fixes, according to the coverage summarized on the PHP2Shell Wikipedia entry. The UK's National Cyber Security Centre urged organizations that could not patch immediately to take vulnerable systems offline instead, Help Net Security reported.

These findings rank among the most severe vulnerabilities discovered in PHP, and arguably in software history.

— Wiz researchers, quoted by Help Net Security

Severity rating and what site operators should do

PHP's own developers rated both flaws 9.2 out of 10 on the CVSS v4.0 scale, a "critical" score, according to watchTowr's advisory. The clear remediation path, per both PHP's advisory and watchTowr, is updating to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35 depending on which branch a server runs; sites on 7.4, 8.0 or 8.1 should use a distribution backport or move to a supported branch, while servers on 7.3 or older have no fix available and need to upgrade.

Questions

What is PHP2Shell?
PHP2Shell is the nickname for two critical PHP vulnerabilities, CVE-2026-109618 and CVE-2026-109619, that let an attacker with no login credentials execute code on a web server running vulnerable PHP.
Which PHP versions are affected?
Versions before 8.2.35, 8.3.36, 8.4.27 and 8.5.12 are vulnerable and have official fixes. PHP 7.4, 8.0 and 8.1 are also affected; since those branches are unsupported, there is no official PHP core patch, though distribution or LTS vendor backports may be available, according to watchTowr. PHP 7.3 and older have no fix available at all.
Is PHP2Shell being actively exploited?
Yes. Help Net Security reported exploitation attempts detected via an Amazon honeypot as early as October 17, 2026, and watchTowr said its honeypot network observed active in-the-wild exploitation after the October 21 patch.
How many websites could be affected?
PHP remains one of the most widely used server-side languages on the web, including powering sites built on WordPress, Drupal and Joomla, so the two flaws have a broad potential reach, according to watchTowr and the summary on the PHP2Shell Wikipedia entry.
How can a website operator fix it?
PHP's advisory and watchTowr both say the only complete fix is updating to a patched release — 8.5.12, 8.4.27, 8.3.36 or 8.2.35 depending on the branch — since no configuration change fully closes the vulnerabilities. Sites on unsupported branches (7.4, 8.0, 8.1, or 7.3 and older) need to use vendor backports where available or upgrade to a supported branch.

Sources

  1. Wikipedia — PHP2Shell
  2. watchTowr — PHP2Shell RCE Exploited: CVE-2026-109618 & CVE-2026-109619
  3. Help Net Security — PHP2Shell: Critical PHP vulnerabilities patched, update now!
  4. Wikipedia — PHP

This piece was prepared with artificial intelligence and passed an automated source check before publication. If you see an error, ask for a correction. Request a correction or reply · How we make this

Related