PHP patches phpAfterShell RCE in session file writes (CVE-2026-126714)
Original title: phpAfterShell Vulnerability Revives PHP2Shell’s Attack Path
Depthfirst says interrupting a session write can splice old data and trigger object deserialization; no in-the-wild reports.
PHP patched CVE-2026-126714, dubbed phpAfterShell, on November 19 with a CVSS score of 9.2. Depthfirst says an attacker who can control data written to a session file and interrupt the write can leave mixed old and new session content, later treated as legitimate state and deserialized into remote code execution. PHP notes upload-progress tracking and large user-controlled session strings as routes, plus hard memory-limit failures in threaded builds. Fixes are in PHP 8.6.0, 8.5.13, 8.4.28, 8.3.37, and 8.2.36. Depthfirst says there appear to be no reports of in-the-wild exploitation.
Unconfirmed: Depthfirst says there appear to be no reports of in-the-wild exploitation.
- CVE-2026-126714 has a CVSS score of 9.2 and was patched on November 19.
- Default session storage, a mid-write stop, and a later session_start() are required.
- Upload progress tracking is described as the easiest exploitation route.
- PHP says the same file-update issue can arise with large user-controlled session strings.
Impact: Remote code execution via session object deserialization
| Product | Affected | Fixed in |
|---|---|---|
| PHP | versions before 8.6.0, 8.5.13, 8.4.28, 8.3.37, and 8.2.36 | 8.6.0, 8.5.13, 8.4.28, 8.3.37, 8.2.36 |
- 1.Update PHP to 8.6.0, 8.5.13, 8.4.28, 8.3.37, or 8.2.36.
- 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
2 min read at securityweek.com
If a session overwrite operation is interrupted, an attacker who controls the fresh data could trigger data deserialization and RCE. The post phpAfterShell Vulnerability Revives PHP2Shell’s Attack Path appeared first on SecurityWeek.
By Ionut Arghire · securityweek.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.