PHP Security Team Releases Emergency Patches for Critical "PHP2Shell" RCE Vulnerabilities
The PHP security team has released emergency security patches to address two critical remote code execution (RCE) vulnerabilities collectively tracked under the name "PHP2Shell." The vulnerabilities, designated as CVE-2026-109618 and CVE-2026-109619, pose an immediate and severe threat to web infrastructure worldwide, prompting coordinated warnings from security researchers, government agencies, and industry leaders alike.
The two unauthenticated RCE flaws were discovered collaboratively by security researchers from Calif, OpenAI, and Wiz. According to technical assessments, the vulnerabilities affect virtually all PHP installations that handle and serve web requests. This widespread exposure encompasses popular server configurations and application interfaces, including PHP-FPM, Apache running mod_php, php-cgi, FrankenPHP, and LiteSpeed servers.
In its official advisory, the PHP security team highlighted the elevated risk associated with specific configurations. "We consider the risk highest for mod_php, with a demonstrated exploit where an unauthenticated request can trigger the attack before any application code runs," the team stated. Because the exploit can execute prior to the execution of any underlying web application logic, traditional application-level security controls and input validation routines are largely bypassed.
Both vulnerabilities stem from a shared underlying architectural problem within the language’s memory management engine. Specifically, PHP can leave its internal memory in a corrupted or unstable state when a web request terminates abnormally. This lingering, corrupted memory state can then be manipulated by malicious actors to achieve remote code execution on the underlying server.
The mechanics of the two flaws present distinct yet equally dangerous pathways for attackers. CVE-2026-109618 can be leveraged to gain remote code execution running under the privileges of the web worker account by exploiting a complex chain of weaknesses that trigger out-of-memory corruption. Meanwhile, CVE-2026-109619 exploits a stale global state vulnerability, enabling an unauthenticated heap use-after-free condition, memory disclosure, and ultimate remote code execution, again operating with the compromised web worker’s privileges.
To remediate these critical risks, administrators managing servers running PHP 8.x are urged to install the newly released versions—PHP 8.5.12, 8.4.27, 8.3.36, or 8.2.35—as quickly as possible. For organizations still running legacy environments on PHP 7 or earlier, developers advise a prompt migration to a fully supported and fixed release.
However, the reality of enterprise infrastructure means that many systems remain on older, end-of-life versions. Addressing this concern, the PHP developers noted that PHP 8.1 and older software iterations no longer receive standard updates from the official PHP project. While some operating system distributions and long-term support (LTS) vendors provide backported fixes, organizations relying on those environments must contact their specific vendors for details or plan an immediate upgrade to a supported version.

Given the extraordinary severity of the PHP2Shell vulnerabilities, the PHP security team took the unusual step of providing minimal source-backports for PHP 7.4, PHP 8.0, and PHP 8.1. These backports are intended to assist system administrators who build PHP from source code or who lack access to an official LTS vendor update channel.
Advanced warning and early exploitation
The emergency patch release follows a rigorous advanced warning issued earlier by PHP developers, who strongly urged system administrators to prepare their infrastructure to install the security updates the moment they became available. Anticipating the public release of technical details or the emergence of active exploits, the development team stressed the urgency of operational readiness across the web hosting landscape.
Echoing the urgency of the situation, PHP core developer Gina Peter Banyard warned the community that no temporary PHP2Shell mitigations would fully block potential attacks. Banyard emphasized that applying the official security patches remains the only permanent and reliable defense against the flaw.
Even before the official patches were made publicly available, evidence of active targeting emerged. Cloudflare CTO Dane Knecht confirmed that his company—which had already deployed custom Web Application Firewall (WAF) rules designed to block known PHP2Shell exploitation vectors—was observing early attacks actively targeting the two vulnerabilities. Despite deploying these early defensive measures, Knecht strongly reinforced the core developer consensus, urging all administrators to apply the official PHP security updates immediately upon release.
The threat has also caught the attention of national cybersecurity authorities. The UK National Cyber Security Centre (NCSC) issued a formal alert warning organizations across the United Kingdom to immediately update all systems utilizing PHP or, if patching is not immediately feasible, to take vulnerable systems offline until proper security updates can be applied.
Global exposure of the PHP ecosystem
PHP (Hypertext Preprocessor) remains a foundational pillar of the modern internet. As an open-source, server-side web development language, it powers an estimated 75% to 80% of all websites globally. This vast footprint includes major content management systems such as WordPress, Joomla, and Drupal, as well as countless custom-built enterprise web applications.
Data compiled by VirusTotal estimates that more than 5.1 million PHP hosts are currently exposed directly to the public internet, with approximately 3.8 million of those hosts maintaining at least one open port accessible to external networks. This immense surface area highlights the sweeping potential impact of unauthenticated RCE vulnerabilities like PHP2Shell, making rapid deployment of the emergency patches a critical priority for system administrators, hosting providers, and web infrastructure operators worldwide.
