phpAfterShell bypasses October PHP2Shell fix for unauthenticated RCE
Original title: New phpAfterShell Attack Bypasses PHP2Shell Fix to Enable Remote Code Execution
CVE-2026-126714 scores 9.2; fixes are PHP 8.2.36, 8.3.37, 8.4.28, and 8.5.13, with no in-the-wild evidence.
Depthfirst disclosed phpAfterShell on November 19, a flaw in PHP’s default file-based session handler. An interrupted upload-progress write can leave a mixed session file that session_start() later accepts, including object deserialization, outside the October PHP2Shell patch. Researchers combined that behavior with a memory-corruption bug in a built-in class to run code as the PHP worker. Redis or database session storage is not affected by this specific issue.
Unconfirmed: Depthfirst demonstrated the attack; the article says there is no evidence of in-the-wild use.
- The flaw is tracked as CVE-2026-126714 with a CVSS v4.0 score of 9.2.
- Fixed upstream releases are PHP 8.2.36, 8.3.37, 8.4.28, and 8.5.13.
- Setting session.upload_progress.enabled to 0 blocks the route but does not repair the handler.
- PHP 8.0 and 8.1 are out of support and should move to a supported release.
- CISA’s KEV listing covers earlier PHP2Shell flaws, not phpAfterShell.
Impact: unauthenticated remote code execution as the PHP worker
| Product | Affected | Fixed in |
|---|---|---|
| PHP Group PHP | — | 8.2.36, 8.3.37, 8.4.28, and 8.5.13 |
- 1.Upgrade to PHP 8.2.36, 8.3.37, 8.4.28, or 8.5.13.
- 2.If upgrade must wait, set session.upload_progress.enabled to 0 and restart PHP workers.
- 3.Verify the PHP version serving web requests and rebuild container images.
- CVEs
- CVE-2026-126714
- Vendors
- PHP Group
- Products
- PHP
- Organizations
- depthfirst
Vulnerabilities mentioned
All| CVE | Vulnerability | CVSS | EPSS | Signals | Published |
|---|---|---|---|---|---|
| CVE-2026-126714 | Partial session-file overwrite RCE in PHP | 9.2 | — |
From the original article
3 min read at cybersecuritynews.com
A new PHP attack dubbed phpAfterShell can lead to unauthenticated remote code execution on vulnerable servers, even if they have the October patches for PHP2Shell. Researchers at depthfirst disclosed the flaw on November 19 and demonstrated how it could be combined with a separate bug in PHP to run code remotely. The vulnerability, tracked as […]
By Guru Baran · cybersecuritynews.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.