Critical PHP2Shell RCE Flaws (CVE‑2026‑109618 / CVE‑2026‑109619)
What It Is (THE MAIN READ — tell the full story)
Two remote‑code‑execution flaws in the core PHP engine—catalogued as CVE‑2026‑109618 and CVE‑2026‑109619 and collectively dubbed “PHP2Shell”—were disclosed amid active exploitation attempts after technical details leaked ahead of an out‑of‑band security release. The vulnerabilities, both rated 9.2 on the CVSS v4.0 scale, affect any site running vulnerable PHP versions, including popular CMS platforms such as WordPress, Drupal and Joomla, because the bugs reside in the language runtime rather than in application code.
The PHP security team announced the emergency patch on 20 October 2026, scheduling the release for 21 October 2026 at 14:00 UTC. The fixes arrived later that day, covering PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12. Prior to the coordinated disclosure, watchTowr reproduced CVE‑2026‑109618 and warned that both flaws could enable unauthenticated RCE, prompting the PHP Foundation to accelerate the release. Wiz Research, which originally identified the issues together with Calif and OpenAI in August, supplied the detailed root‑cause analysis that underpins the “PHP2Shell” moniker.
Both CVEs stem from memory‑safety errors in how PHP handles request memory during initialization, error handling and cleanup. CVE‑2026‑109618 involves an out‑of‑memory condition that leaves partially initialized request memory vulnerable, exposing a use‑after‑free in the session‑upload‑progress unserializer and allowing memory disclosure. CVE‑2026‑109619 is a stale‑state flaw where global structures retain references to freed memory, featuring a use‑after‑free in fatal‑error backtraces and an OPcache type‑confusion. Because the attack surface includes the session‑upload‑progress feature—enabled by default since PHP 5.4.0—servers with otherwise secure application code can still be compromised depending on configuration and reachable execution paths.
Early exploitation reports surfaced quickly. Patchstack logged multiple incidents from hosting partners by 07:34 UTC on 21 October, and Cloudflare CTO Dane Knecht confirmed seeing initial attacks, after which Cloudflare rolled out WAF rules to block known vectors. Public proof‑of‑concept code appeared on GitHub, notably two scripts (poc0_109618.py and poc1_109619.py) published by researcher J4ck3LSyN. The Insikt Group’s TTP Instance notes that J4ck3LSyN later invalidated the cached‑pointer use‑after‑free theory underlying those PoCs, though the researcher did reproduce a separate memory‑safety issue without demonstrating RCE. Recorded Future customers can now access Attack Surface Intelligence signatures for both CVEs, and the Insikt Group advises immediate patching.
Scale and exposure – Two independent internet scans illustrate the breadth of PHP installations, though they use different methodologies. Modat identified 4,384,302 PHP services across 1,886,612 distinct hosts during the ten‑day window ending 20 October, counting only services that returned a readable version string. About 79 % of those services run a branch that is no longer supported, with PHP 7.4—end‑of‑life since 2022—accounting for 878,761 instances, the largest single segment. VirusTotal’s snapshot from 21 October measured roughly 5.1 million IP addresses hosting PHP, of which only about 1.1 million disclosed a version; the remaining four‑fifths concealed it. Among the disclosed versions, approximately 758 000 belong to end‑of‑life branches ranging from 5.4 to 8.1, while only 272 000 run a supported release, and PHP 7.4 alone appears on about 187 000 hosts. Neither scan verified which hosts were vulnerable, but both underscore that the majority of exposed PHP runs on unsupported branches that will not receive official fixes. Moreover, version‑string scans miss much of the surface: VirusTotal still recorded around 85 000 IPs on the September 24 releases—the newest code before the emergency patch—showing that simply being up‑to‑date did not guarantee protection.
Why this matters – The VirusTotal count of 5.1 million PHP‑enabled IPs signals a potentially massive attack surface. The flaws enable unauthenticated remote code execution directly in the PHP interpreter, meaning even perfectly hardened web applications can be compromised without any application‑level vulnerability. The memory‑disclosure bug can spill sensitive data such as passwords, API keys, authentication tokens, and certificates from other requests, as demonstrated by Wiz. The window for patching collapsed after details leaked hours before the official release, and security researchers observed exploitation attempts before fixed versions were available. VirusTotal also noted that about 394 000 of the PHP hosts also expose SSH, roughly 233 000 expose MySQL, and around 68 000 expose RDP, indicating that a breach could cascade beyond the web server. Because the attack occurs beneath the application layer, typical application logs may capture little useful context.
Timeline of events – Wiz Research first uncovered the vulnerability on 19 August 2026 using AI‑assisted tools, confirming unauthenticated RCE against Drupal on 20 August and against WordPress on 21 August. The team privately reported the findings to the PHP security team on 24 August, initiating coordinated disclosure. The PHP team acknowledged the reports on 21 September and began working on fixes. On 20 October, PHP announced an emergency out‑of‑band release slated for the following day, while Insikt Group issued an intelligence note about the upcoming updates and Recorded Future created Attack Surface Intelligence signatures for CVE‑2026‑109618 and CVE‑2026‑109619. At 02:29 UTC on 21 October, an archive containing leaked vulnerability details was first uploaded to VirusTotal. Five hours later, at 07:34 UTC, Patchstack reported receiving multiple exploitation alerts from hosting partners, predating the scheduled patch time. PHP then released the security updates at 13:52 UTC, earlier than the announced 14:00 UTC window. Insikt Group followed with a PHP2Shell tactics, techniques, and procedures (TTP) instance at 17:52 UTC to aid detection. The early exploitation reports created a brief period where vulnerability information was public but no official patch existed, prompting analysts to extend their look‑back windows for potential compromise.
Recorded Future analysis – The Insikt Group examined the PHP2Shell flaws, publicly available proof‑of‑concept (PoC) exploits, reported exploitation activity, and defensive guidance, producing a TTP Instance for defenders. Several GitHub repositories claim to host PoCs targeting CVE‑2026‑109618 and CVE‑2026‑109619; these PoCs exploit PHP memory‑safety errors to achieve remote code execution, though their success rates differ and some rely on techniques later invalidated. Security vendors have observed emerging exploitation attempts, yet concrete indicators of compromise remain scarce. The TTP Instance highlights warning signs such as anomalous web requests, unexpected PHP error messages, and unusual server behavior. Insikt advises organizations to prioritize patching vulnerable systems, assess exposure, and monitor for these indicators, while also investigating whether any assets may have been compromised before the patches were publicly released.
Upgrade any PHP installations that are vulnerable to the newly disclosed flaws to the patched releases as soon as possible, giving priority to internet‑facing applications and critical infrastructure. Organizations still running end‑of‑life PHP versions are urged to move to supported releases or obtain vendor‑maintained security patches, and the remediation effort must also cover PHP components embedded in third‑party software, container images and managed services.
A comprehensive inventory of PHP deployments should be taken across all environments, with exposure assessed on the basis of internet accessibility, configuration settings and business importance. Recorded Future advises its customers to employ its Attack Surface Intelligence tool to locate potentially vulnerable internet‑exposed assets and to confirm that remediation actions have been successful.
When immediate patching cannot be achieved, the guidance calls for restricting external access to the affected systems, applying web‑application‑firewall rules, request filtering and hardening of PHP configuration. Origin servers must be shielded from direct access that could bypass perimeter defenses; however, these compensating controls are described as “reductions in exposure, not substitutes for patching.”
Defenders should scrutinize web‑server, application and endpoint logs for signs of abnormal HTTP requests, PHP process crashes or unexpected command execution, with particular focus on activity dating from October 20 2026 onward. Any indication of compromise should trigger incident‑response procedures, including credential rotation. Recorded Future makes the Insikt Group PHP2Shell TTP Instance, a Validated Intelligence Event and Vulnerability Intelligence Cards for CVE‑2026‑109618 and CVE‑2026‑109619 available to its customers via the Intelligence Operations Platform, and it will continue to update the intelligence as new information emerges.
Why It Matters for Compliance & Audit Readiness
Unauthenticated RCE bypasses application‑level controls, eroding continuous monitoring and making it difficult to produce a defensible audit trail; rapid patching restores control assurance.
Recommended Actions
- Upgrade all PHP runtimes to the patched releases (8.2.35, 8.3.36, 8.4.27, 8.5.12) or migrate unsupported branches to a supported version.
- Inventory internet‑exposed PHP instances, isolate or block external access for unpatched systems, and apply WAF rules that block known exploit vectors.
- Enable detailed logging of PHP process errors and anomalous HTTP requests; review logs dating back to 20 Oct 2026 for indicators of compromise.
Source: https://www.recordedfuture.com/blog/php2shell-vulnerability-exploitation