PHP Fixes 7 Critical Flaws, Including Bugs That Could Allow Remote Code Execution
Our summary
The PHP Foundation has shipped updates closing seven critical vulnerabilities across all supported branches, most carrying a CVSS score of 9.2 and capable of triggering remote code execution, session corruption, memory corruption, denial-of-service, or local privilege escalation under non-default configurations. Among them, CVE-2026-126714 — dubbed "phpAfterShell" by researchers at Depthfirst — abuses an interrupted write to a session file, letting an attacker splice old and new session data so that PHP deserializes attacker-controlled objects once session_start() runs, ultimately leading to code execution when chained with a memory-corruption bug. Other flaws, including CVE-2026-115560, CVE-2026-129182, CVE-2026-129289, CVE-2026-129474, CVE-2026-129481, CVE-2026-129496 and CVE-2026-129291, stem from use-after-free, TOCTOU, and request-interpretation issues that could let unauthenticated attackers crash workers or run arbitrary code, in some cases requiring specific setups like persistent FastCGI connections or FPM worker manipulation. Fixes land in PHP 8.2.36, 8.3.37, 8.4.28, 8.5.13 and 8.6.0, and anyone on 8.2.x–8.5.x branches is urged to upgrade immediately; disabling session upload progress is a stopgap if patching isn't yet possible.
The Hacker News publishes this story on its own site; we link to it rather than reprint it.
Worried this affects your company?
Discuss a security assessment of your internet-facing systems. Scope agreed before testing.