Published on November 19, 2026 at 04:59 PM
phpAfterShell Explained: How Hackers Could Turn a PHP Session Flaw Into Code Execution
A critical vulnerability known as phpAfterShell (CVE-2026-126714, CVSS 9.2) affects PHP's default file-based session handling mechanism. By aborting a session write at a specific moment—such as during file upload progress tracking—an attacker can force PHP to store custom serialized objects, enabling remote code execution when paired with an application gadget chain. The issue impacts PHP releases prior to versions 8.2.36, 8.3.37, 8.4.28, and 8.5.13, which remediate the bug by emptying session files prior to writing and disabling session upload progress by default.
Source: The Hacker News
