PHP Patches Critical phpAfterShell Session Flaw That Can Enable Remote Code Execution
Vulnerability Disclosure · 26 sources · Updated 16h ago · First seen Nov 19, 2026

PHP released fixes for phpAfterShell, tracked as CVE-2026-126714 and rated CVSS v4.0 9.2, in its default file-based session handler. Depthfirst researchers found that interrupted session-file writes can mix new data with residual content, causing PHP to deserialize attacker-chosen objects on a subsequent request. Remote code execution requires an additional weakness, such as a suitable application deserialization gadget chain; researchers demonstrated unauthenticated execution by combining the defect with a separate memory-corruption flaw. Neither PHP maintainers nor Depthfirst reported exploitation in the wild.
Organizations should upgrade to PHP 8.2.36, 8.3.37, 8.4.28, 8.5.13, or 8.6.0. The October 21 PHP2Shell updates did not fix this underlying defect. As a temporary mitigation, disabling session upload progress and restarting PHP workers blocks the demonstrated entry route, but does not eliminate the vulnerable session-handler behavior. Applications using non-file session storage, such as Redis or a database, are not affected by this specific flaw.


