PHP Patches phpAfterShell Vulnerability That Could Enable Remote Code Execution

Summary
PHP patched CVE-2026-126714, dubbed phpAfterShell. Depthfirst says interrupted session-file writes can enable object deserialization and potentially remote code execution under specific conditions; fixes are available in PHP 8.2.36 through 8.6.0.
Key points
- Depthfirst says phpAfterShell can affect PHP when an attacker can influence session data and interrupt a session-file write.
- An interrupted write can leave fresh session data combined with remnants of the old session, potentially allowing crafted data to trigger object deserialization.
- Exploitation requires conditions including a corrupted session file, a later session_start() call, and a deserialization-to-code-execution path.
- PHP patched CVE-2026-126714 in versions 8.2.36, 8.3.37, 8.4.28, 8.5.13, and 8.6.0.
- The article says there appear to be no reports of phpAfterShell exploitation in the wild.
Article Details
- Vulnerability Types
- Improper PHP session-file overwrite and truncation handling, enabling object deserialization
- Severity
- Critical (CVSS 9.2)
- Exploitation Status
- not_reported
- Exploit Availability
- unknown
- Patch Status
- available
