Cloudflare expands WAF rules for PHP vulnerabilities
Published:
Cloudflare has expanded WAF detection for phpAfterShell and introduced additional rules for PHP-FPM and SOAP.
On November 19, Cloudflare extended an existing WAF rule to cover attack patterns for the PHP vulnerability phpAfterShell (CVE-2026-126714). According to the company, the flaw in the file-based session handler can lead to remote code execution. The rule blocks by default and is included in both the free managed ruleset and the paid Cloudflare Managed Ruleset. On paid plans, it applies where the managed ruleset is deployed. Three additional rules for PHP-FPM and SOAP are available on Pro, Business and Enterprise plans, initially in log mode. Cloudflare advises reviewing matches and changing the action to block where appropriate. The PHP project has released fixes, so WAF rules should not replace updating affected PHP installations.
Why it matters
Security teams can review matches for the additional rules and adjust their actions deliberately. On paid plans, the existing blocking rule applies only where the managed ruleset is deployed.
Source retrieved: 2026-12-03