How Cloudflare WAF helps protect against phpAfterShell and other critical PHP flaws

phpAfterShell is a critical flaw in PHP's default session handler that can lead to code execution. Cloudflare WAF blocks it for all customers, including Free plans, and adds new rules for other PHP flaws fixed in the same release. On November 19, 2026, the security research company depthfirst disclosed phpAfterShell (CVE-2026-126714), a vulnerability in PHP's default file-based session handler that can lead to remote code execution.
2 out of 10 (Critical). 0. Cloudflare’s web application firewall (WAF) blocks known phpAfterShell attack patterns, including for customers on the Free plan.
Excerpt from Cloudflare Blog, in their own words. Bonzai did not write this story; the full version is on the publisher’s site.