The story’s score and claims

Comments on No. 2 of 118 · depthfirst · edition of Saturday 21 November 2026

PhpAfterShell: From Interrupted Session Writes to Remote Code Execution

Summary

depthfirst disclosed phpAfterShell (CVE-2026-126714, CVSS 4.0 score 9.2), a PHP flaw that bypasses the earlier php2shell fix. During multipart upload-progress updates, PHP rewrites the file-backed session in place with non-atomic pwrite() and ftruncate(). If the worker dies mid-update, the file can hold a valid but spliced session that later session_start() deserializes. Chained with a memory-corruption bug in a native PHP class, depthfirst reports remote code execution. Fixes shipped in 8.2.36, 8.3.37, 8.4.28, 8.5.13 and 8.6.0. Cloudflare says its WAF blocks known attack patterns.

Comments

Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules