
phpAfterShell Vulnerability Allows PHP Session Manipulation Leading to Remote Code Execution
PHP's default file-based session handler is vulnerable to a flaw tracked as CVE-2026-126714 and rated 9.2 on CVSS 4.0. An attacker can truncate a session write at a precise moment to inject chosen serialized objects that later deserialize into active instances. When combined with a gadget chain or secondary memory corruption bug, this leads to arbitrary code execution on the server. The issue affects PHP 8.2 through 8.6.0 before the listed fixed releases and was discovered by Depthfirst. Today's patches empty the session file before writing and disable upload progress by default, while older branches remain end-of-life. The same releases also address additional security issues and correct an incomplete fix from the October PHP2Shell updates.
The Hacker NewsNov 19, 2026Translated from English

