Critical PHP2Shell Vulnerabilities (CVE‑2026‑109618, CVE‑2026‑109619) Enable Remote Code Execution Across PHP 8.x
What It Is — The PHP Foundation disclosed two critical zero‑day flaws, collectively dubbed “PHP2Shell,” that have lingered in the language’s core for more than a decade. CVE‑2026‑109618 is a memory‑corruption bug that can cause the interpreter to treat malformed data as valid, while CVE‑2026‑109619 is a stale‑global‑state issue that allows an attacker to hijack the process’s execution flow. Both receive a CVSS 4.0 score of 9.2 (Critical) and can be triggered remotely without authentication, granting full control of the host server and the ability to exfiltrate data.
The vulnerabilities affect every PHP 8.x release that is still supported: 8.5.12, 8.4.27, 8.3.36, and 8.2.35 contain the fixes. Earlier branches (7.x, 5.x) are end‑of‑life and receive no patches. The attack surface is especially large for the mod_php SAPI, where the PHP team confirmed two working proof‑of‑concept exploits—one for each CVE.
The PHP team announced the patches on Wednesday, October 21, 2026, after an embargo breach on Tuesday leaked details of the flaws. The leak accelerated the release schedule, moving the patches forward by a full day. Researchers from offensive‑security firms Calif (using OpenAI’s GPT‑5.6 Sol) and Wiz (leveraging Google’s Gemini 4 Argon, GPT‑5.6 Sol, and Wiz Atlas) independently discovered the bugs in August and reported them to the PHP maintainers. Coordination with major cloud providers helped verify the fixes and develop out‑of‑the‑box mitigations.
Censys estimates roughly 2.6 million hosts and 55 million web properties run PHP, though exposure does not guarantee vulnerability. Industry surveys show 70 % of all web‑facing sites rely on PHP, with 65 % on version 8, 27 % on version 7, and 8 % on version 5. The sheer prevalence means the potential impact rivals historic crises such as Heartbleed and Log4j, according to Wiz analysts.
National‑level bodies have issued urgent remediation guidance. The U.S. National Security Agency advises immediate patching; if that is not feasible, organizations should take affected services offline until the update is applied. The UK’s NCSC, CERT‑EU, and the Dutch NCSC echo the same recommendation, with the Dutch agency temporarily disabling its PHP‑driven website as a precaution.
Early exploitation attempts have already been observed in the wild, though no large‑scale compromise has been publicly confirmed. Threat‑intel teams warn that attackers can reverse‑engineer patches and weaponize an exploit within 24 hours, making the window for remediation extremely narrow. Continuous monitoring of PHP and web‑server processes for anomalous behavior—unexpected child processes, unusual command execution, or abnormal network traffic—is now a top priority for defenders.
Beyond the immediate technical risk, the incident highlights a broader shift: frontier AI models are accelerating the discovery and weaponisation of complex bugs. Both discovery teams leveraged large language models to locate the flaws and generate working exploit chains in weeks—a timeline that previously required months of specialised research. This “Defender’s Window” may shrink further as AI tools become more accessible to adversaries.
Affected Products — PHP 8.5.12, 8.4.27, 8.3.36, 8.2.35 (all supported 8.x branches); any deployment using PHP‑FPM, Apache mod_php, php‑cgi, FrankenPHP, or LiteSpeed.
Why It Matters for Trust & Control Assurance — The episode tests an organization’s ability to maintain timely patching and evidence of vulnerability remediation, a core control‑area that maps to many frameworks (e.g., NIST CSF Identify ID.BE‑5, ISO 27001 A.12.6.1).
Recommended Actions —
- Inventory all PHP installations and verify version numbers against the patched releases.
- Apply the PHP 8.5.12/8.4.27/8.3.36/8.2.35 updates immediately; for unsupported versions, migrate to a supported branch or isolate the service.
- If patching cannot be performed within 48 hours, temporarily take the affected web services offline.
- Enable continuous monitoring of PHP processes for anomalous activity and retain logs as audit evidence.
- Document the remediation steps in your vulnerability‑management system to demonstrate control effectiveness.
Source: DataBreachToday – Critical PHP Patches Address ‘Very, Very Bad Vulnerability’