Cloudflare extends WAF rule for phpAfterShell
Published:
Cloudflare has extended its WAF detection for the phpAfterShell PHP vulnerability. Security teams should also update affected PHP runtimes.
Cloudflare describes an update to its web application firewall for phpAfterShell (CVE-2026-126714), a vulnerability in PHP's default file-based session handler that can enable remote code execution. The company says it updated the detection logic of an existing rule on November 19. The rule blocks known attack patterns and is available even on the free plan; on paid plans it applies wherever the Cloudflare Managed Ruleset is deployed. Additional rules for other PHP-FPM and SOAP vulnerabilities are initially set to log on Pro, Business, and Enterprise plans. Teams can review matches and change the action when appropriate. Cloudflare points to updated PHP versions. The WAF rule is not a substitute for applying the PHP fixes.
Why it matters
Security teams can check rule coverage and the initially logging rules in their WAF configuration while updating affected PHP runtimes.
Source retrieved: 2026-12-04