Two critical PHP vulnerabilities known as PHP2Shell have prompted urgent security updates for web servers worldwide, after researchers demonstrated that attackers could execute code remotely without signing in. The flaws, tracked as CVE-2026-109618 and CVE-2026-109619, were patched on October 21, 2026, but subsequent reports of real-world exploitation have reinforced the need for website operators to check their systems.
PHP powers much of the internet, including websites built on WordPress, Drupal and Joomla. According to web technology measurements dated November 12, PHP is used by 68.8% of websites whose server-side language can be identified. That statistic describes technology adoption, not the number of websites hacked. There is no verified evidence that 70% of websites were compromised through these vulnerabilities.
How the PHP2Shell vulnerabilities work
Both flaws concern PHP's handling of memory and errors during the processing of web requests.
CVE-2026-109618 involves an out-of-memory condition that can interrupt the initialization of internal request data. During cleanup, PHP may mishandle that incomplete data, creating an opportunity for memory corruption and, under exploitable conditions, remote code execution.
CVE-2026-109619 concerns stale internal state left behind after memory is freed. A subsequent request processed by the same server worker may encounter that state, creating another path to memory corruption and code execution.
The vulnerabilities received critical severity scores of 9.2 under CVSS version 4.0. Their impact depends on the server configuration and exploit path, with Apache deployments using mod_php identified as particularly exposed.
AI-assisted discovery and exploitation
Security researchers working with AI tools helped identify and demonstrate the vulnerabilities. Reports were submitted to PHP maintainers in August 2026, followed by coordinated work on patches before the October disclosure.
This does not establish that AI independently hacked most of the internet. Rather, AI-assisted research accelerated the discovery and analysis of defects that had remained in PHP's codebase for years. Researchers have warned that similar tools could also make exploitation easier for malicious actors.
Confirmed attacks and security updates
On October 26, US cybersecurity authorities added both flaws to their catalog of vulnerabilities known to have been exploited. Further security analysis reported active attacks targeting publicly exposed management interfaces of certain network-security devices. These findings establish real-world exploitation, but not a mass compromise of PHP-powered websites.
The October 21 fixes were released as PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Administrators using older releases should check whether their operating-system provider supplies a backported security fix or migrate to a supported PHP branch.
An additional, more narrowly applicable PHP vulnerability was disclosed on October 23. It affects unusual application configurations, and administrators should consult current official security guidance rather than assuming the first update resolves every issue.
Website owners should verify their active PHP runtime, promptly apply supported updates, review server and application logs for suspicious activity, and assess externally exposed systems. Updating plugins or the website's application code alone is not a substitute for patching the underlying PHP runtime.
The broader lesson of PHP2Shell is not that the internet has already been hacked, but that widely deployed software can contain long-standing weaknesses—and that rapid patching remains essential even after a vulnerability becomes public.










Join the conversation
Comments are reviewed before publication. Your email stays private.