# phpAfterShell Vulnerability Revives PHP2Shell's Attack Path

DevFeed: [phpAfterShell Vulnerability Revives PHP2Shell's Attack Path](<https://devfeed.tech/articles/phpaftershell-vulnerability-revives-php2shell-s-attack-path-149026.md>)

Original publisher: [Read original article](<https://www.securityweek.com/phpaftershell-vulnerability-revives-php2shells-attack-path/>)

Author: Ionut Arghire

Published: 2026-11-23T13:58:07Z

Content type: news

Language: en

Sources: [SecurityWeek](<https://devfeed.tech/sources/securityweek.md>)

Topics: [Security](<https://devfeed.tech/topics/security.md>), [Exploit](<https://devfeed.tech/topics/exploit.md>), [Data serialization](<https://devfeed.tech/topics/data-serialization.md>)

Tags: [code-execution](<https://devfeed.tech/tags/code-execution.md>), [cve-2026-126714](<https://devfeed.tech/tags/cve-2026-126714.md>), [deserialization](<https://devfeed.tech/tags/deserialization.md>), [in-the-wild-exploitation](<https://devfeed.tech/tags/in-the-wild-exploitation.md>), [php](<https://devfeed.tech/tags/php.md>), [php2shell](<https://devfeed.tech/tags/php2shell.md>), [phpaftershell](<https://devfeed.tech/tags/phpaftershell.md>), [rce](<https://devfeed.tech/tags/rce.md>), [session](<https://devfeed.tech/tags/session.md>), [vulnerabilities](<https://devfeed.tech/tags/vulnerabilities.md>), [vulnerability](<https://devfeed.tech/tags/vulnerability.md>)

## AI overview

PHP patched phpAfterShell (CVE-2026-126714, CVSS 9.2), a session-file overwrite flaw that can leave fresh session data followed by remnants of the prior file if a write is interrupted before truncation. Depthfirst says an attacker able to influence session data and interrupt the write can splice valid session content so a later session_start() treats attacker-controlled values as server-side state and triggers object deserialization, potentially reaching RCE. Upload-progress tracking is a route to influence session data; PHP also notes large user-controlled session strings and, in threaded builds, a memory-limit failure in another thread as possible contexts. Exploitation requires default file-based session storage, a way to interrupt a write, a later request opening the corrupted session, and a deserialization-to-code-execution path. Fixes are in PHP 8.6.0, 8.5.13, 8.4.28, 8.3.37, and 8.2.36. The article reports no known in-the-wild exploitation.

## Source excerpt

If a session overwrite operation is interrupted, an attacker who controls the fresh data could trigger data deserialization and RCE. The post phpAfterShell Vulnerability Revives PHP2Shell's Attack Path appeared first on SecurityWeek.