The PHP Foundation disclosed two critical memory safety vulnerabilities, CVE-2026-109618 and CVE-2026-109619, on October 21, 2026, which allow unauthenticated remote code execution and received a critical CVSS v4.0 score of 9.2. These flaws, dubbed "PHP2Shell," affect an estimated 70% of websites worldwide, with exploitation attempts documented days before official patches were released.

The widespread use of PHP means millions of websites, from personal blogs to major e-commerce platforms, faced immediate risk of server compromise by attackers. The rapid discovery, leak, and exploitation of these flaws show the intense challenge in securing fundamental internet infrastructure against escalating cyber threats.

The PHP2Shell Vulnerabilities

The two vulnerabilities, CVE-2026-109618 and CVE-2026-109619, are memory safety issues found within the core of the PHP programming language itself. They stem from how PHP manages requests that encounter failures, particularly in cases of out-of-memory conditions or stale global states. An attacker could use these flaws to run code with the privileges of the compromised PHP process without needing any prior authentication. Reports indicate these issues have existed for more than a decade, with their root causes identified as early as 2004, but the PHP security team had not reached a consensus on a permanent fix. The vulnerabilities impact PHP installations that process web requests, including common setups like PHP-FPM and Apache deployments using mod_php.

Rapid Disclosure and Exploitation

The PHP Foundation publicly announced the existence of the vulnerabilities on October 20, 2026, with patches scheduled for release the following day at 14:00 UTC. However, information about the vulnerabilities, including their CVE identifiers, was leaked prematurely before the scheduled disclosure. Evidence indicates exploitation attempts began as early as October 17, 2026, four days before the official patches became available. Amazon Web Services (AWS) recorded an exploit attempt on October 17 and observed new exploits targeting its sensors almost immediately after the 14:00 UTC patch release on October 21. Cloudflare also reported early attacks at 07:43 UTC on October 21, several hours before the patches were made public.

AI's Role in Discovery

Artificial intelligence played a significant part in the discovery of these flaws by several independent teams. Security firm Wiz Research identified the first vulnerability in August 2026, utilizing its AI tool Atlas, which integrates Google's Gemini 4 Argon and OpenAI's GPT-5.6 Sol. By late August 2026, Wiz Research confirmed unauthenticated remote code execution against both Drupal and WordPress sites. Wiz reported the vulnerabilities to the PHP security team on August 24, 2026, initiating the coordinated disclosure process. OpenAI also stated that security firm Calif identified one of the critical flaws using its GPT-5.6 Sol model as part of a security program called "Patch the Planet".

Volunteer Efforts for Rapid Patching

During the urgent effort to patch these vulnerabilities, Ondrej Sury, a volunteer in Czechia, made crucial contributions to making fixes available. Sury has spent more than 20 years packaging PHP in his spare time. Within hours of PHP's emergency release, his builds enabled Debian and Ubuntu servers worldwide to install the patch with a single command, even for PHP versions that no longer receive official updates. As of October 23, 2026, Sury's repositories carried fixed PHP2Shell builds for multiple PHP versions, including backported builds for PHP 5.6 through 8.1.

What the PHP Foundation Said

The PHP Foundation referred to the long-standing unpatched vulnerability as a "structural failure" due to its security team's inability to reach a consensus on a solution for many months. The Foundation urged immediate action from anyone operating PHP-based websites and initiated an urgent, global effort to distribute patches.

What We Could Not Confirm

The specific source of the leaked vulnerability details on October 20, 2026, which occurred before the planned public disclosure, could not be confirmed. The full extent of successful exploitation of PHP2Shell vulnerabilities across all affected websites globally remains unconfirmed.