PHP development team resolves phpAfterShell session deserialization RCE
Listen to Briefing
0:00/1:56

What happened.The PHP development team published security updates resolving a critical vulnerability known as phpAfterShell in the core runtime's file session handler. Unauthenticated remote attackers exploit partial session writes during upload requests to inject serialized objects and execute arbitrary code.
Why it matters.File-based sessions remain the default configuration for millions of web applications and frameworks. When runtime session updates permit unauthenticated object injection, web servers face remote execution prior to login. Systems administrators should update PHP runtimes and restart fastcgi workers.
The technical specifications:
- Session corruption flaw: Tracked as CVE-2026-126714 with a 9.2 CVSS v4.0 score, the defect mishandles pwrite and ftruncate operations during upload progress tracking without truncating session files.
- Arbitrary object injection: Interrupted multipart requests blend old session data with attacker bytes, forcing subsequent session_start calls to deserialize arbitrary PHP objects.
- Framework exposure: Applications running default file sessions are exposed to unauthenticated remote code execution via application destructor gadget chains.
- Runtime patch rollout: Official fixes are available in PHP versions 8.5.13, 8.4.28, 8.3.37, and 8.2.36, with alternative mitigations requiring Redis sessions.