Critical Remote Code Execution in PHP Core (CVE‑2026‑109618 & CVE‑2026‑109619) Threatens All PHP Deployments
What It Is — The PHP development team disclosed two critical vulnerabilities in the language core that together enable remote code execution (RCE) with a CVSS 9.4 rating.
- CVE‑2026‑109618 is an out‑of‑memory corruption flaw. A specially crafted multipart MIME request that omits the
Content‑Lengthheader can bypasspost_max_size, flood the request with an unlimited number of headers, and exhaust memory via empty file upload structures. When memory is exhausted, PHP’s internal handling can be corrupted, allowing an attacker to execute arbitrary code.
- CVE‑2026‑109619 is a use‑after‑free condition in the PHP worker’s global state reset logic. An attacker first triggers an error (e.g., “out of memory” or “request execution time exceeded”) and then sends a second request that forces a warning during request initialization (often via
.htaccessoverrides). Iffatal_error_backtracesis enabled, the worker may free memory that is still referenced, opening a path to code execution.
Both flaws affect all PHP versions released since PHP 5, including the latest 8.5.12, 8.4.27, 8.3.36, and 8.2.35 that were patched on 2026‑10‑20. Older, unsupported branches receive no fix. The vulnerabilities were discovered by Wiz Security using AI‑assisted analysis and have been publicly disclosed with proof‑of‑concept (PoC) exploits. Cloudflare and other CDN/WAF vendors have already deployed mitigations, but the only reliable remediation is the upstream patch.
Affected Products — PHP core (all versions from 5 onward). Vendor‑specific distributions (e.g., Cisco, OPNSense, pfSense, Palo Alto Networks) that embed PHP for web‑admin interfaces are also impacted until they ship the patched runtime.
Why It Matters for Trust & Control Assurance — The incident tests the patch‑management control objective: organizations must maintain an evidence‑backed process for timely identification, assessment, and remediation of critical software flaws.
Recommended Actions
- Inventory every system running PHP (including embedded instances in network appliances).
- Prioritize upgrade to a patched 8.x release; for unsupported branches, plan migration to a supported version.
- Apply interim mitigations where patching is delayed:
- Set
session.upload_progress.enabled = Off. - Enforce strict
post_max_sizeandmax_file_uploadslimits. - Deploy or verify WAF rules that block oversized multipart requests.
- Validate that
expose_phpis disabled and that file extensions do not reveal the runtime. - Document the remediation steps in your change‑management system and retain logs as audit evidence.
Source: SANS Internet Storm Center diary (2026‑10‑21)