Cloudflare extends WAF rules for PHP vulnerabilities
Published:
Cloudflare has extended its web application firewall to cover known phpAfterShell attack patterns. Additional rules for PHP-FPM and SOAP initially log matches rather than block them.
Cloudflare describes an updated WAF rule for known attack patterns targeting phpAfterShell (CVE-2026-126714), a vulnerability in PHP's file-based session handler. The provider says the rule is included in managed rulesets for free and paid plans and defaults to blocking. Three additional rules for a PHP-FPM flaw and two SOAP flaws are available on paid plans and initially log matches to avoid prematurely blocking legitimate traffic. Teams can review events before changing the action. Cloudflare stresses that the WAF is an additional layer: it cannot see every attack path and is not a substitute for patching PHP. The provider recommends deploying fixed PHP versions and restarting all affected workers.
Why it matters
Security teams can review the new rule actions and plan PHP updates; the WAF does not cover every attack path.
Source retrieved: 2026-12-03