Advertisement

PHP2Shell: Two Unpatched Critical PHP RCE Flaws (CVSS 9.2) Trigger Emergency Security Alert

Summary: This story is developing and was written before PHP's scheduled 14:00 UTC release on October 21. Once the release is out, the affected and fixed versions below are confirmed by the official advisory. PHP will ship an out-of-cycle security release at 14:00 UTC today, October 21, for two critical vulnerabilities that its security team has rated 9.2 on the CVSS v4.0 scale but has not described.

PHP2Shell: Critical PHP Vulnerabilities Trigger Emergency Patches and Exploitation Attempts

The PHP development team has released emergency security updates addressing two critical vulnerabilities that could allow unauthenticated attackers to execute malicious code on vulnerable web servers. Collectively known as PHP2Shell, the flaws affect the PHP runtime itself rather than individual applications, potentially exposing websites, APIs, and enterprise services that rely on the programming language. Both vulnerabilities carry a CVSS v4.0 severity score of 9.2, reflecting their potential impact on affected systems.

Tracked as CVE-2026-109618 and CVE-2026-109619, the vulnerabilities were publicly disclosed on October 21, 2026, following an accelerated disclosure process triggered by leaked technical information. Security researchers demonstrated remote code execution scenarios, while monitoring organizations subsequently reported exploitation attempts against internet-facing systems. Although malicious activity has been observed, the available reporting has not established how many production systems, if any, have been successfully compromised.

The discovery is particularly significant because PHP remains a foundational technology for websites, content management systems, e-commerce platforms, and business applications. Unlike vulnerabilities affecting individual plugins or frameworks, weaknesses in the underlying runtime can potentially undermine otherwise secure applications, making remediation a priority for organizations operating PHP-based infrastructure.

Advertisement

Two Critical Weaknesses in the PHP Runtime

PHP2Shell involves two distinct memory-management vulnerabilities affecting how PHP initializes, processes, and cleans up requests. CVE-2026-109618 concerns memory corruption during certain out-of-memory conditions, while CVE-2026-109619 involves improper handling of internal state between requests. Both issues can create opportunities for attackers to manipulate the runtime’s execution behavior, potentially achieving remote code execution under vulnerable conditions.

The first vulnerability can arise when memory allocation failures interrupt request initialization, leaving internal structures in an inconsistent state. Subsequent cleanup operations may then process partially initialized information incorrectly, creating conditions for memory corruption. The second flaw involves stale internal state that may remain accessible after its associated memory has been released, potentially allowing subsequent requests to interact with invalid data.

According to the PHP security advisory, affected environments include deployments using Apache mod_php, PHP-FPM, php-cgi, FrankenPHP, and LiteSpeed, although exploitation requirements differ between configurations. Apache mod_php is considered particularly exposed because researchers demonstrated an attack capable of triggering code execution through a single unauthenticated request.

These vulnerabilities illustrate why runtime-level security flaws can be especially dangerous. Even applications with strong authentication, authorization, and input validation may remain exposed when the interpreter processing their requests contains a critical weakness. Successful exploitation could potentially allow attackers to execute commands, access sensitive information, or compromise additional resources available to the affected PHP process.

Emergency Disclosure and Rapid Exploitation Attempts

The vulnerabilities were initially scheduled for disclosure on October 22, but information about their existence appeared publicly two days earlier. The PHP security team subsequently accelerated its release schedule, publishing emergency updates on October 21 to reduce the period during which organizations remained exposed without an official fix.

The disclosure became more complicated when additional technical information emerged before the patches were formally released. Reports indicated that a working exploit demonstration had been published prematurely, while patched container images also appeared ahead of the coordinated announcement. Such developments can create opportunities for attackers to analyze security corrections and develop exploitation techniques before administrators have completed their updates.

Research into PHP2Shell involved security specialists from Wiz Research, Calif, and OpenAI’s Codex Security team, alongside collaboration with the PHP security team and other researchers. Artificial intelligence reportedly contributed to the vulnerability research process, helping investigators analyze complex memory-management behavior and develop proof-of-concept exploits. The findings demonstrate how AI-assisted security research can accelerate the discovery of weaknesses embedded in mature software.

Following disclosure, security organizations began observing suspicious activity targeting the vulnerabilities. Cloudflare reported malicious requests and introduced protective firewall rules, while watchTowr identified exploitation attempts against both CVE identifiers. These observations indicate that attackers were responding quickly to the disclosure, although attempted exploitation should not be confused with confirmed successful compromise.

The rapid emergence of malicious activity highlights an increasingly difficult challenge for vulnerability management. Organizations that depend on traditional maintenance windows may struggle to respond when critical flaws begin attracting attackers within hours or days. For internet-facing infrastructure, emergency patching capabilities and accurate software inventories are becoming essential components of effective security operations.

Why PHP2Shell Matters for Web Application Security

The most significant aspect of PHP2Shell is that the vulnerabilities exist beneath the application layer. A website may run an updated content management system, use secure authentication mechanisms, and follow established development practices while remaining vulnerable because its underlying PHP runtime has not been patched.

This distinction is particularly relevant for organizations operating containerized applications or complex hosting environments. Updating application dependencies does not automatically replace vulnerable PHP binaries embedded in container images, virtual machines, or managed hosting platforms. Administrators must identify which runtime versions are actually executing their applications and ensure that corrected packages are deployed across every affected environment.

The PHP security team has released fixed versions for supported branches, including PHP 8.5.12, 8.4.27, 8.3.36, and 8.2.35. Organizations should upgrade to the appropriate corrected release or install vendor-maintained packages containing the relevant security fixes. Systems running unsupported PHP versions may require distribution-specific backports, extended security support, or migration to a maintained release.

Temporary mitigations, including request restrictions and configuration adjustments, may reduce exposure to certain exploitation techniques but do not provide comprehensive protection. The PHP security advisory identifies updating the runtime as the only complete remediation, making patch deployment the primary defensive priority.

Organizations should also consider reviewing logs and system activity for indications of attempted exploitation, particularly if vulnerable installations were publicly accessible during the disclosure period. Unexpected PHP worker crashes, unusual requests, unexplained process behavior, or suspicious file modifications may justify additional investigation, although none of these indicators independently proves that an intrusion occurred.

PHP2Shell demonstrates how vulnerabilities in foundational software can create risks extending across thousands of otherwise unrelated applications. It also illustrates the growing speed of modern vulnerability research, where coordinated investigations, automated analysis, and AI-assisted techniques can uncover weaknesses that remained unnoticed for years.

The central lesson is that application security depends on the entire execution environment, not just the code developers write. As attackers increasingly target vulnerabilities in widely deployed runtimes and infrastructure components, organizations must maintain visibility into their software dependencies and be prepared to deploy critical security updates without delay.

Advertisement

Key facts

  • PHP will release an out-of-cycle security update today, October 21
  • The update addresses two critical vulnerabilities
  • The vulnerabilities have been rated 9.2 on the CVSS v4.0 scale
  • The vulnerabilities allow for remote code execution (RCE)

Why it matters

These vulnerabilities represent a significant threat to web infrastructure, as PHP powers a substantial portion of the internet. Unpatched critical flaws with high severity ratings create an immediate window of opportunity for attackers to compromise servers, potentially leading to widespread data breaches, denial-of-service attacks, and the hijacking of web applications. Organizations relying on PHP must act swiftly to apply updates once released to mitigate these risks.