Cloudflare says its web application firewall blocks known attack patterns for phpAfterShell (CVE-2026-126714), a flaw in PHP's default file-based session handler disclosed by depthfirst on November 19, 2026, that can lead to remote code execution and scores 9.2 under CVSS 4.0. PHP fixed it the same day in versions 8.2.36, 8.3.37, 8.4.28, 8.5.13 and 8.6.0, along with 16 other vulnerabilities, six rated critical. Protection comes from a default-on PHP RCE rule, first deployed in October for php2shell, available on the Free plan too.
A flaw dubbed phpAfterShell in PHP's default file-based session storage lets an attacker make sessions return objects of their choosing by interrupting a session write at the right moment. Combined with a second weakness, such as a suitable gadget chain in an application, those objects could let the attacker execute code on the server. The vulnerability is tracked as CVE-2026-126714, and PHP releases issued on the day of disclosure fix it.