PHP Patches Critical Session Flaw CVE-2026-126714
PHP released fixes for a 9.2-severity session file handling vulnerability that can enable remote code execution, alongside six other critical issues.
Updated on Nov. 23, 2026 in Software

PHP released patches on November 19 for a critical-severity vulnerability tracked as CVE-2026-126714, which carries a CVSS score of 9.2. The flaw involves session file handling that can allow an attacker to trigger object deserialization and remote code execution.
Why it matters
Because the flaw affects how PHP handles session data, applications that rely on PHP sessions could be exposed to remote code execution if left unpatched. The disclosure by Depthfirst of the related phpAfterShell flaw highlights the risk of similar vulnerabilities in the PHP ecosystem.
CVE-2026-126714 carries a CVSS score of 9.2 and affects PHP session file handling, which overwrites session files without first emptying them. Reports of in-the-wild exploitation of the related phpAfterShell flaw have not been identified.
The players
PHP
PHP is an open-source scripting language widely used for server-side web development and powering a large share of websites.
Depthfirst
Depthfirst is a security research organization that disclosed the phpAfterShell flaw related to the PHP2Shell vulnerabilities.
The details
PHP overwrites session files from the start without emptying them first, so an interrupted write can leave fresh session data followed by remnants of the old session. The fix is included in PHP versions 8.6.0, 8.5.13, 8.4.28, 8.3.37, and 8.2.36.
Timeline
- November 19: PHP released the patch for the phpAfterShell flaw alongside six other critical issues.
Season Trajectory
The phpAfterShell disclosure extends the PHP2Shell flaw family to a new session-handling weakness, showing that the same class of deserialization risk is recurring in PHP. This pattern is pushing security teams to audit session handling across PHP deployments rather than treating each patch in isolation.
Developers and site operators running PHP should upgrade to versions 8.6.0, 8.5.13, 8.4.28, 8.3.37, or 8.2.36 to receive the session-handling fix. Teams should also review how their applications store and overwrite session files until patches are applied.
The takeaway
Any PHP deployment that uses file-based sessions should be patched to a fixed version now, since the flaw can lead to remote code execution. Checking session storage practices is a useful step even after upgrading.
Further reading
For more on related security coverage, see Software news.
Source note: This article includes information reported by SecurityWeek.



