Home CVEPHP2Shell: Two Unpatched Critical PHP RCE Flaws Force an Emergency Patch Day

PHP2Shell: Two Unpatched Critical PHP RCE Flaws Force an Emergency Patch Day

by Knowledge Base Linux
PHP2Shell emergency: a protective digital shield over Linux servers during a critical PHP RCE alert

PHP2Shell is the name security researchers are using for two critical, still-unpatched PHP remote code execution (RCE) vulnerabilities that have forced the PHP project into an emergency, out-of-cycle security release. The PHP security team has confirmed that two critical flaws, both rated CVSS v4.0 9.2, will be fixed in a release scheduled for Wednesday, 21 October 2026 at 14:00 UTC (21:00 in Vietnam). At the time of writing, the fixes had not yet landed, the vulnerable component had not been described, and PHP had not published an official list of affected or fixed versions.

The immediate lesson for server administrators is simple: do not wait for a perfect advisory before preparing. Inventory every PHP installation you own, know which branch each application runs, and be ready to update internet-facing systems first when the patched builds appear. For PHP2Shell, readiness is the only mitigation available before the official packages arrive. Our earlier background article, CVE-2026-109618 and CVE-2026-109619: Critical PHP RCE Flaws, explains the first warning signs; this article focuses on the PHP2Shell leak, what is actually confirmed, and the practical steps to take before patch time.

What Is PHP2Shell?

PHP2Shell is not an official PHP product name. It is a researcher label for the pair of vulnerabilities identified in leaked reporting as CVE-2026-109618 and CVE-2026-109619. According to The Hacker News, the issue became public after an October 20 post claimed that two PHP RCE flaws would be disclosed later in the week. That post assigned them a CVSS score of 10.0 and claimed an extremely broad impact, said to reach back to PHP 5.

Researchers at watchTowr then indicated that the leaked information was real and that the vulnerabilities had been under embargo. PHP published its own short advance notice later that evening. The official notice is deliberately narrow: it confirms two critical vulnerabilities, gives the PHP team’s own CVSS v4.0 score of 9.2 for both, announces the emergency release time, and warns that PHP may publish earlier if technical details become public or active exploitation is observed.

That distinction matters. The name PHP2Shell, the two CVE identifiers, and the claim that every release since PHP 5 is affected did not come from PHP’s notice. watchTowr’s FAQ is explicit that the reported scope has not been confirmed by an official vendor advisory, that no fixed version had been confirmed when the FAQ was published, and that no specific configuration or feature requirement has been described. In other words, administrators should treat the danger as credible and urgent, but should not repeat the widest affected-version claim as settled fact until PHP publishes the full advisory.

What PHP Has Confirmed — and What Remains Unverified

The confirmed core is small but serious. PHP says there are two critical vulnerabilities. Both are rated 9.2 under CVSS version 4.0. A coordinated emergency release is scheduled for 14:00 UTC on 21 October 2026. PHP also says full details, affected versions, and fixed versions will be published with the release. You can read the primary source directly in the official PHP announcement.

Several important questions remain open until that release. Which part of PHP is involved? Is a particular SAPI, extension, operating system, or configuration required? Does exploitation need authentication? Are all supported branches vulnerable in the same way? The available reporting does not answer those questions. The watchTowr FAQ for CVE-2026-109618 and CVE-2026-109619 likewise separates the reported RCE impact from what the vendor has formally confirmed.

As of 21 October, watchTowr listed no reported exploitation in the wild, and the flaws were not in CISA’s Known Exploited Vulnerabilities catalog. Huntress also said it had not seen exploitation in its partner environments as of October 20 and was not aware of public exploit code. That is good news, but it is not a reason to slow down. PHP vulnerabilities with broad deployment can move from disclosure to mass scanning very quickly; when CVE-2024-4577 became public in June 2024, Akamai observed exploitation attempts against honeypots within 24 hours.

Sysadmin preparing servers for PHP2Shell patches while monitoring PHP2Shell risk dashboards

Which PHP Versions Can Receive the PHP2Shell Fix?

Even before the affected-version list is known, the patching boundary is clear: PHP only issues new fixes for supported branches. PHP’s supported versions page currently lists PHP 8.2, 8.3, 8.4, and 8.5. Branches 8.4 and 8.5 are in active support, while 8.2 and 8.3 receive security fixes only. Those four branches are therefore the only ones that can receive an official PHP fix in today’s emergency release.

PHP branch Release reported before the emergency update Support status
8.5 8.5.11 Active support
8.4 8.4.26 Active support
8.3 8.3.35 Security fixes only
8.2 8.2.34 Security fixes only

PHP 8.1, 8.0, 7.x, and 5.x are end of life. For PHP2Shell, an unpatched legacy branch would be the hardest case: if the final advisory confirms that the flaws reach those branches, those installations will not receive a vendor patch from PHP. Linux distributions, control-panel vendors, or commercial support providers may backport fixes in some environments, but that must be verified package by package. An end-of-life runtime should be upgraded, removed from the public internet, or isolated behind a VPN or a properly configured web application firewall until migration is complete.

The potential legacy exposure is large. The Hacker News cited Mallory data based on Shodan banners: about 884,000 internet-facing hosts reported a PHP version of 8.1 or older on October 20, roughly 59% of the 1.5 million hosts that reported any PHP version, while another 740,000 hosts reported PHP without a version. Banner counts are not proof that a host is vulnerable, and many banners are incomplete or misleading. Still, the figures show why defenders are treating PHP2Shell as a fleet-wide inventory problem rather than a single-server patch.

How to Prepare for PHP2Shell Patches

Preparation should start with a complete inventory. PHP often hides in more places than the main web stack: old WordPress sites, vendor appliances, monitoring tools, Windows software, Docker images, and control panels such as cPanel and Plesk may all bundle their own runtime. On a Linux server, begin with the running version and services:

php -v
systemctl list-units 'php*-fpm*' --type=service --all
ps aux | grep -E 'php-fpm|php-cgi' | grep -v grep

For containers, do not stop at the host version. List running containers and check the PHP version inside each image that serves a web application:

docker ps
docker exec <container-name> php -v

Next, prioritize patching. Internet-facing production systems come first, followed by admin panels and internal applications that handle sensitive data. Test the new PHP build in staging where possible, but do not let a long change-freeze process become an excuse to leave a critical RCE exposed. Check whether your operating system vendor or hosting provider ships backported packages; the package version string may not match PHP’s upstream fixed version even when the security fix is included.

For end-of-life branches, choose a compensating control now rather than after disclosure. Upgrade to PHP 8.2 or newer if the application supports it. If an urgent upgrade is impossible, remove the application from the public internet, restrict it to a VPN or allow-listed networks, or place it behind a WAF while migration is scheduled. CERT-EU’s advice, as reported by The Hacker News, is to consider isolating internet-facing applications from public networks until a fix is available when patching cannot be done immediately.

Finally, prepare detection before you need it. Make sure web server, PHP-FPM, and system logs are being collected and retained. Alert on suspicious child processes launched by php-fpm, php-cgi, httpd, or apache2, especially shells, scripting interpreters, curl, wget, and other download tools. If you find evidence of compromise, isolate the server, preserve logs for investigation, and hunt for web shells, unexpected files in the web root, new cron jobs or scheduled tasks, and unauthorized accounts. Patching a server that is already compromised does not remove an attacker’s persistence. PHP2Shell monitoring should continue after patching, at least until logs covering the disclosure window have been reviewed.

PHP2Shell FAQ

Has PHP2Shell been exploited in the wild?

No exploitation had been reported as of 21 October 2026 in the watchTowr FAQ, and Huntress said it had not seen exploitation in partner environments as of October 20. That status can change quickly after full technical details are released.

Are PHP 5, PHP 7, and PHP 8.1 officially confirmed as affected?

Not yet. A leaked report claimed impact from PHP 5 onward, but watchTowr notes that this scope has not been confirmed by an official PHP advisory. What is certain is that those branches are end of life and will not receive a new fix directly from PHP.

What time should administrators be ready to patch?

PHP scheduled the emergency release for 14:00 UTC on Wednesday, 21 October 2026. That is 21:00 in Vietnam, 15:00 in London, and 10:00 in New York. PHP reserved the right to release earlier if details leak or exploitation appears.

Bottom Line

The safest way to read the PHP2Shell story is neither panic nor dismissal. PHP has confirmed a rare emergency: two critical vulnerabilities scored 9.2, serious enough to justify an out-of-cycle release before full details are public. The broader claims about affected versions remain unverified until the advisory lands. Administrators who use the waiting time well — inventorying PHP, identifying end-of-life runtimes, testing update paths, and watching for suspicious PHP child processes — will be ready to patch within minutes instead of scrambling after scanners start.

Sources: The Hacker News, PHP announcement, watchTowr FAQ, and PHP supported versions.

You may also like

KbLinux

Typically replies within a day

Hello, Welcome to the site. Please click below button for chatting me through Telegram.