Cloudflare Deploys WAF Protections for php2shell (CVE‑2026‑109618 / CVE‑2026‑109619) Vulnerability
What It Is
On October 21 2026, security researchers from Calif.io, Wiz, OpenAI and Quarkslab announced two critical PHP flaws—codenamed php2shell—and assigned them CVE‑2026‑109618 and CVE‑2026‑109619. The vulnerabilities affect any web server running PHP 5.4 or later, which represents roughly 70 % of all websites, and can enable denial‑of‑service, remote‑code execution or data exposure when an application processes specially crafted HTTP requests. The flaws stem from unsafe memory handling: one occurs when PHP runs out of memory before internal data structures are fully initialized, and the other when a fatal error leaves dangling references that a later request may follow.
Cloudflare joined a coordinated mitigation effort with the PHP Foundation, OpenAI, Wiz and other partners, and began deploying web‑application‑firewall (WAF) protections in early October 2026. The company rolled out the rules about nine hours before the public disclosure, activating default protection for all customers—free and paid—at 03:02 UTC on October 21. Cloudflare’s security team observed attackers mutating payloads to evade the rules and tracked the volume of matches against the rule logic.
Because the exploit cannot be reliably distinguished from legitimate traffic using request data alone, Cloudflare introduced a new “full‑transaction detection” capability that evaluates both the request and the origin’s response within the same HTTP transaction. Response‑based rules now block a malicious origin response before it reaches the requester, making the php2shell protections the first managed detections released with this technology.
The PHP project later issued an informational advisory on October 23 for a related issue, CVE‑2026‑115560, in the session‑upload‑progress feature. The advisory applies to fully patched PHP releases—including version 8.5.12—and will be addressed in the next regular PHP release. Cloudflare’s WAF automatically shields sites that use PHP’s default session.upload_progress.name field; sites that have renamed this field fall outside the rule’s coverage.
The protections are bundled into Cloudflare’s Managed Free Ruleset (ID 77454fe2d30c4220b5701f6fdfb893ba) for free users and the Managed Ruleset (ID efb7b8c949ac4650a09736fc376e9aee) for Professional, Business and Enterprise plans, with rule identifiers such as 4e315666e8e344cdb64119a3b5ccf32f and c1d409ad838f47f59446f21cc438d5dd covering the two CVEs. Cloudflare advises administrators to apply the PHP patches promptly, keep the WAF enabled, and consider limiting upload sizes, while its analysts continue to monitor for new attack techniques.
Cloudflare’s security team logged a series of exploit attempts targeting the PHP 2shell vulnerability identified as CVE‑2026‑109618 and CVE‑2026‑109619. The incidents were catalogued with unique identifiers, including 771c654ae1154d4daa72f4e1545d163c, 217005865f0145f392300bac212afcc9, 38efdb17ea594501bb55a1d71867b12e, 4148ae686fdb4d01be673fab9d9c073d, and 1389aa259617437392ce149c48143645.
To improve detection, Cloudflare introduced “full transaction detection,” a new Web Application Firewall (WAF) feature that inspects both the incoming HTTP request and the origin server’s response. By correlating signals from the response, the system can generate higher‑confidence rules and block malicious payloads before they reach the requester, reducing false positives compared with request‑only analysis.
The company automatically rolled out the Cloudflare Managed Response Firewall Default to all customers, including those on the Free tier. Users can confirm that the response rules are active on the Security > Security Rules page, and they can review blocked events in Security > Security Analytics > Events, filtering by the rule IDs shown in the logs. The interface indicates whether an action originated from a managed rule or a custom rule, and customers may adjust the scope of the Managed Ruleset to protect specific application components.
Cloudflare advises all PHP users to apply the vendor‑issued patches for the affected versions while keeping the WAF enabled as an additional safeguard. “We recommend following the advisory and updating your PHP repos as soon as possible,” the firm said, adding that its analysts will continue to refine protections as new exploitation techniques appear.
Why It Matters for Compliance & Audit Readiness
Enabling these WAF protections provides continuous, evidential control coverage for remote‑code‑execution risk, helping maintain a defensible audit trail for PCI‑DSS, NIST CSF, and other frameworks.
Recommended Actions
- Verify that Cloudflare’s Managed Ruleset (including the php2shell rule IDs) is active and set to Block mode.
- Patch all PHP runtimes to the latest releases that address CVE‑2026‑109618/109619 (PHP 8.5.12 or later).
- Harden upload handling (limit size, enforce
session.upload_progress.namedefaults) and document the WAF configuration as part of your control‑assurance evidence.
Source: https://blog.cloudflare.com/php-vulnerabilities-waf-protection/