phpAfterShell Explained: How Hackers Could Turn a PHP Session Flaw Into Code Execution

A flaw dubbed phpAfterShell in PHP's default file-based session storage lets an attacker make sessions return objects of their choosing by interrupting a session write at the right moment. Combined with a second weakness, such as a suitable gadget chain in an application, those objects could let the attacker execute code on the server. The vulnerability is tracked as CVE-2026-126714, and PHP releases issued on the day of disclosure fix it.

AI-written summary, checked against the cited sources. How summaries work

Image: The Hacker News

Read at The Hacker News

CVE-2026-126714

Severity
9.2 Critical · CVSS 4.0 · Php
Exploited
Not in CISA’s catalog
Published
PHP Group PHP

Affected: before 8.2.36; 8.3.0 to before 8.3.37; 8.4.0 to before 8.4.28; 8.5.0 to before 8.5.13

Fixed: 8.2.36; 8.3.37; 8.4.28; 8.5.13

github.com · CVE record · NVD