hacker-news · Crawled Nov 20, 2026

phpAfterShell Explained: How Hackers Could Turn a PHP Session Flaw Into Code Execution

Read original article ↗

AI Summary

A critical vulnerability in PHP's default file-based session handler, dubbed phpAfterShell and tracked as CVE-2026-126714, allows attackers to manipulate session files and achieve remote code execution under certain conditions. The flaw arises when a session write is interrupted mid-process, leaving behind serialized object data that can be deserialized in a subsequent request. This can lead to object injection, which, when combined with a gadget chain or a built-in vulnerable class, enables code execution. The vulnerability affects PHP versions prior to 8.2.36, 8.3.37, 8.4.28, and 8.5.13, and was addressed in the November 2026 updates.

AI-extracted · verify before operational use

No entities or IoCs were extracted from this article.