
Cloudflare WAF adds phpAfterShell protection and new rules for PHP-FPM and SOAP flaws
On November 19, 2026, depthfirst disclosed phpAfterShell (CVE-2026-126714), a PHP session handler flaw. Cloudflare updated its WAF rule to block the attack for all plans and added three rules for PHP-FPM and SOAP vulnerabilities.
On November 19, 2026, the research firm depthfirst disclosed phpAfterShell (CVE-2026-126714), a critical vulnerability in PHP's default file-based session handler that can lead to remote code execution. Cloudflare responded by updating its web application firewall rule to block known attack patterns for every customer, including those on the free plan.
WAF rule updates
The PHP remote code execution rule was first deployed in October 2026 for the php2shell vulnerabilities. It already matched part of the phpAfterShell attack pattern before public disclosure. On November 19 Cloudflare updated the detection logic and added CVE-2026-126714 to the rule description. The rule is part of both the Cloudflare Free Managed Ruleset and the Cloudflare Managed Ruleset, is enabled by default, and its default action is Block.
New rules for PHP-FPM and SOAP
In the same release Cloudflare added three rules to the Cloudflare Managed Ruleset for paid plans. One addresses a request smuggling flaw in PHP-FPM (CVE-2026-129289). Two cover flaws in the PHP SOAP extension (CVE-2026-15353 and CVE-2026-129506). These rules are enabled by default with the Log action because the patterns they detect can also appear in legitimate traffic. Customers can review matches in Security Events and change the action to Block after confirming no false positives.
Limitations and recommended actions
The firewall cannot block every exploitation path. It cannot see the deserialization step that occurs inside PHP, session data that originates from databases or APIs, or flaws triggered by server state such as error logs and worker lifecycle. Traffic that bypasses Cloudflare, including internal service communication, is also invisible to the WAF. Cloudflare recommends upgrading PHP to versions 8.2.36, 8.3.37, 8.4.28, 8.5.13 or 8.6.0, restarting all workers, disabling session upload progress, turning off FastCGI connection reuse, and applying the interim configuration mitigations while the upgrade is in progress.
Earlier coverage: PHP security updates fix 18 flaws, including critical RCE bugs
Sources: Cloudflare
SiTech — AI-powered web development
We build fast, modern websites and bring AI into real business workflows. Have a project or a question? We'd love to help.