Critical vulnerability discovered in PHP's default session handler: phpAfterShell
11/23/2026
A critical vulnerability has been discovered in PHP's default session handler, which can lead to remote code execution; an official fix has been released.
[Key points]
•The vulnerability is named phpAfterShell, with a CVSS 4.0 score of 9.2, rated critical.
•Official fixed versions were released the same day, covering the 8.2 through 8.6 branches.
•The same batch also fixes 16 vulnerabilities, 6 of which are also critical.
[Impact]
•Whether you are affected depends on the exploitation conditions of each vulnerability.
•Cloudflare WAF rules have been updated, and even the free plan can block known attack patterns.
[Recommendations]
1.Upgrade PHP as soon as possible and restart all workers; WAF cannot replace patches.
2.Check the patched version for your distribution; Linux often backports fixes without changing the version number.
3.Paid plans can first observe the new rules in Security Events, then switch them to Block.