phpAfterShell session bug enables PHP RCE (CVE-2026-126714)
Original title: New phpAfterShell Attack Lets Hackers Achieve Remote Code Execution on PHP Servers
PHP shipped same-day fixes; Depthfirst says the chain needs no application gadget and withheld the decoder.
Depthfirst researcher Yuhang Wu disclosed phpAfterShell on November 19, 2026, tracked as CVE-2026-126714 with a CVSS v4.0 score of 9.2. An interrupted rewrite of PHP’s file-based session can splice a serialized object into the session file, which is activated when the application later calls session_start(). PHP maintainers shipped fixes the same day. Depthfirst says a later memory-corruption stage yields code execution in the Apache worker and withheld the decoder.
Unconfirmed: Fixed versions are attributed to one tracker, and in-the-wild use of phpAfterShell itself is not stated.
- The bug is in session.save_handler=files and follows the PHP2Shell upload-progress path.
- Variant B’s simulated 24-attempt hit rate rose from 52.8% to 88.4%, Depthfirst reports.
- One tracker lists fixes as 8.5.13, 8.4.28, 8.3.37, and 8.2.36.
- Until upgraded, disable session.upload_progress.enabled where it is not needed.
Impact: remote code execution inside the Apache worker
| Product | Affected | Fixed in |
|---|---|---|
| PHP | 8.2.35 and later 8.2; 8.3.36 and later 8.3; 8.4.27 and 8.5.12; later 8.4/8.5/8.6 and master; earlier 8.2-8.5 also affected | 8.5.13, 8.4.28, 8.3.37, and 8.2.36 |
- 1.Upgrade to the latest PHP releases or equivalent distribution packages.
- 2.Disable session.upload_progress.enabled until the upgrade is complete.
- 3.Check whether distribution backports change behavior without changing PHP_VERSION.
- CVEs
- CVE-2026-126714
- Vendors
- PHP
- Organizations
- Depthfirst
Vulnerabilities mentioned
All| CVE | Vulnerability | CVSS | EPSS | Signals | Published |
|---|---|---|---|---|---|
| CVE-2026-126714 | Partial session-file overwrite RCE in PHP | 9.2 | 13% | PoC |
From the original article
3 min read at gbhackers.com
A new attack technique called phpAfterShell turns an interrupted PHP session write into remote code execution (RCE) on vulnerable servers. Depthfirst researcher Yuhang Wu disclosed the flaw on November 19, 2026. It is tracked as CVE-2026-126714 and carries a critical CVSS v4.
By Divya · gbhackers.com
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.