Critical PHP2Shell Remote Code Execution Vulnerabilities (CVE‑2026‑109618, CVE‑2026‑109619) Patched in PHP 8.5.12 and Later
What It Is — The PHP core team disclosed two critical remote‑code‑execution (RCE) flaws, dubbed PHP2Shell. CVE‑2026‑109618 is an out‑of‑memory (OOM) handling error that can leave partially‑initialized request data in memory; when cleanup runs, the corrupted data is treated as valid, allowing an attacker to inject code. CVE‑2026‑109619 is a stale‑global‑state bug where memory freed after a request can be reused by a later request before proper re‑initialisation, again enabling unauthenticated code execution. Both flaws can be triggered with a single crafted HTTP request, before any application‑level code runs.
The vulnerabilities affect every PHP installation that processes web requests – PHP‑FPM, Apache mod_php, php‑cgi, FrankenPHP, LiteSpeed, and any other SAPI. Set‑ups using mod_php are especially exposed because the vulnerable code path is exercised on every request. The flaws have existed for years; only the recent use of advanced Frontier AI models allowed researchers to construct a reliable exploit chain.
The PHP project released emergency patches in PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Linux distributions and LTS vendors received back‑ported fixes ahead of the public announcement; administrators should verify they are running the patched packages from their distro or upgrade to the supported PHP releases. The project no longer supports PHP 8.1 and earlier, but minimal back‑ports for PHP 7.4, 8.0 and 8.1 are available for those who must compile from source.
Exploit Activity — Amazon Threat Intelligence reported a successful exploitation attempt on its MadPot honeypot on 17 Oct 2026, four days before the CVEs were publicly disclosed. The attack originated from an IP tied to a commercial anonymisation service, suggesting a threat actor had early access to the exploit details. Searchlight Cyber later released an open‑source scanner (php2shell‑scanner) to help operators detect vulnerable hosts.
Vendor Landscape — Palo Alto Networks confirmed that all PAN‑OS and Panorama versions are affected, though patches have not yet shipped. Fortinet and Cisco have issued advisories and are reviewing their product portfolios; no confirmed vulnerable product has been disclosed yet. Cloudflare has already rolled out WAF rules that block the known exploit vectors for customers, including those on the free tier.
Industry Reaction — The UK’s National Cyber Security Centre (NCSC) urged organisations to take any unpatchable systems offline immediately, warning of a “long tail” of forgotten or embedded installations that may never receive updates. Security researcher Kevin Beaumont called the issue “one of the biggest vulns in years,” while forensics expert Hal Pomeranz highlighted the risk to legacy PHP deployments that remain in production.
Mitigation Guidance —
- Patch Immediately – Upgrade to PHP 8.5.12, 8.4.27, 8.3.36, 8.2.35, or apply vendor‑specific back‑ports. Verify the version with
php -v. - Validate Packages – Use distribution‑provided packages where possible; avoid third‑party repos such as rpms.remirepo.net until they publish the fix.
- Deploy WAF Rules – Enable Cloudflare (or equivalent) WAF signatures that block the PHP2Shell request patterns.
- Inventory & Prioritise – Identify all web servers running PHP, especially those using mod_php, and prioritize patching.
- Monitor for Exploitation – Look for anomalous outbound connections, unexpected process spawns, or memory‑related alerts in host‑based IDS.
Why It Matters for Trust & Control Assurance – The PHP2Shell flaws test an organisation’s vulnerability‑management and patch‑deployment controls; demonstrating timely remediation provides evidence that the control objective of maintaining up‑to‑date software is being met.
Recommended Actions – Align your patch‑management process with the control objective of “timely remediation of critical vulnerabilities,” capture evidence of version verification, and map the activity to your chosen framework (e.g., NIST CSF 2.0 Identify‑Protect). Source: https://www.helpnetsecurity.com/2026/10/21/php2shell-php-vulnerabilities-patched-cve-2026-109618-cve-2026-109619/