Cloudflare extends WAF protection for phpAfterShell
Published:
Cloudflare has extended a WAF rule to cover known attack patterns targeting the PHP vulnerability phpAfterShell. Additional PHP-FPM and SOAP rules initially log matches.
Cloudflare updated the detection logic of an existing WAF rule on November 19, 2026 to cover attack patterns for phpAfterShell (CVE-2026-126714). Under certain conditions, the vulnerability in PHP's file-based session handler can lead to remote code execution. The rule is included in both the free and paid managed rulesets and defaults to blocking. Three additional rules for PHP-FPM and SOAP are available on paid plans and default to logging because legitimate requests can also match their patterns. Teams can review matches before changing the action. Cloudflare stresses that the WAF cannot see every attack path and does not replace a PHP upgrade. These limitations include traffic that bypasses Cloudflare and certain server-side trigger conditions.
Why it matters
Security teams need to review the additional rules for false positives; Cloudflare says the WAF does not replace updating PHP.
Source retrieved: 2026-12-04