Cloudflare WAF Blocks Known phpAfterShell Attacks; PHP Upgrade Still Required
Brief
phpAfterShell (CVE-2026-126714) can lead to remote code execution through PHP’s default file-based session handler. Cloudflare says its WAF blocks known attack patterns, but upgrading PHP is the complete fix.
What changed
- The phpAfterShell vulnerability has a CVSS 4.0 score of 9.2 out of 10. PHP fixed it in versions 8.2.36, 8.3.37, 8.4.28, 8.5.13 and 8.6.0; those releases also fix 16 other vulnerabilities, six rated critical.
- Cloudflare updated its PHP remote code execution rule to cover phpAfterShell. It is enabled by default with the Block action in both the Free Managed Ruleset and the paid Managed Ruleset.
- Three new paid-plan rules cover a PHP-FPM flaw and two PHP SOAP flaws. They default to Log because matching requests may include legitimate traffic.
What PHP teams should do
- Upgrade PHP and restart every worker; Cloudflare says the WAF is an additional defense, not a replacement for patching.
- On paid plans, review matches for the new PHP-FPM and SOAP rules in Security Events before changing their action from Log to Block.
- The article reports no indication so far that the vulnerabilities have been exploited in the wild.
Generated by AI from the original article. Check the source for full details.