Skip to main content

"phpAfterShell": PHP Session Flaw Survives the PHP2Shell Fix (CVE-2026-126714)

Scope: PHP 8.2 before 8.2.36, 8.3 before 8.3.37, 8.4 before 8.4.28, and 8.5 before 8.5.13

Severity: Amber

PHP's maintainers released fixes for CVE-2026-126714, rated 9.2 on CVSS 4.0, a flaw in the default file based session handler. If a session write is cut off at the right moment, the file can keep old data that an attacker has shaped into a planted object, which PHP then loads on the next request. With a second weakness, such as a usable gadget chain in the application, this leads to code execution. The October 21 releases that fixed PHP2Shell do not contain this fix, so servers patched then remain affected. No attacks have been reported. The fixed releases also switch upload progress off by default, so applications that rely on it may need it re-enabled. Organisations running PHP must update to 8.2.36, 8.3.37, 8.4.28, or 8.5.13 and confirm the version serving web requests has changed. Where that is delayed, setting session.upload_progress.enabled to 0 closes the main path but is not a full fix.

The Uganda National CERT and Coordination Center (CERT.UG/CC) encourages users and administrators to review the recommendations and apply the necessary updates.