A critical vulnerability in PHP, identified as CVE-2026-126714, allows unauthenticated attackers to execute remote code on web servers by bypassing previous security fixes for the php2shell flaw. Researchers at DepthFirst rated the bug, dubbed phpAfterShell, with a CVSS score of 9.2, noting that the flaw can be exploited without the need for application-specific gadgets.
The vulnerability affects PHP versions 8.2 through 8.6 development releases and stems from how the software handles file-based session storage during HTTP uploads. Interrupted session writes can trigger unsafe deserialization, leading to remote code execution. Security patches are available in PHP versions 8.2.36, 8.3.37, 8.4.28, and 8.5.13.
