phpAfterShell Vulnerability Revives PHP2Shell’s Attack Path
PHP last week patched a critical-severity vulnerability residing in the same dangerous state as the PHP2Shell flaws, cybersecurity firm Depthfirst says.
Dubbed phpAfterShell, the security flaw is tracked as CVE-2026-126714 (CVSS score of 9.2), and was resolved on November 19 alongside six other critical issues.
According to Depthfirst, the bug could allow an attacker who can control data written to a session file and interrupt the session write operation to trigger an object deserialization and achieve remote code execution (RCE).
It exists because PHP overwrites the session file from the start without emptying it first. If the operation is interrupted mid-write, or before the subsequent truncation operation removes old trailing data, the file is left with mixed content: fresh session data followed by remnants of the old session.
“We discovered reliable methods to interrupt the file operation during session upload-progress updates, allowing us to splice the prefix of...
Copyright of this story solely belongs to www.securityweek.com. To see the full text click HERE