How Cloudflare WAF Helps Protect Against phpAfterShell and Other Critical PHP Flaws
Cloudflare, Friday, November 20th, 2026
Cloudflare WAF blocks known attack patterns for phpAfterShell, a critical PHP session handler flaw, and adds three PHP rules.
On November 19, 2026, depthfirst disclosed phpAfterShell (CVE-2026-126714), a CVSS 9.2 flaw in PHP's default file-based session handler that can lead to remote code execution when a session write is interrupted and mixed data is later deserialized.
PHP fixed it the same day in versions 8.2.36, 8.3.37, 8.4.28, 8.5.13 and 8.6.0, which also fix 16 other vulnerabilities, six of them critical.
Cloudflare updated an existing PHP remote code execution WAF rule, enabled by default with Block on Free and paid plans, to cover the attack, and added three log-only rules for a PHP-FPM request smuggling flaw and two SOAP extension flaws.
Cloudflare reports no known exploitation and says upgrading PHP and restarting workers is the only complete fix.