phpAfterShell: the PHP session RCE your October patch missed
PHP's November 19 releases fix phpAfterShell (CVE-2026-126714), a 9.2 session-file RCE. October's PHP2Shell patch does not cover it. Versions and steps.
If your host patched PHP in October for PHP2Shell, your site is still exposed. On November 19, PHP shipped security releases 8.2.36, 8.3.37, 8.4.28 and 8.5.13. One of the fixes is phpAfterShell, tracked as CVE-2026-126714 and rated critical at 9.2 on CVSS 4.0. It lives in PHP's default file-based session handler, the part almost every WordPress, WooCommerce and Laravel site touches on every page load. The October 21 releases do not contain this fix.
What actually happened
From PHP's GitHub security advisory and the 8.4.28 changelog:
- The bug. When PHP rewrites a session file, it does not clear the old contents first. If the write stops partway, the file holds the start of the new session and the end of the old one. Crafted data can make that mix load as an attacker-chosen object on the next
session_start(). - The impact. With a suitable gadget chain in the app, that object becomes code execution with the PHP worker's privileges. PHP says the code has been there since PHP 4.1.0.
- Fixed versions. 8.2.36, 8.3.37, 8.4.28, 8.5.13, and the new 8.6.0.
- Not only upload progress. Upload progress is one path in. PHP says apps that store large user-controlled strings in sessions are also exposed.
- More in the same release. The 8.4.28 changelog lists 15 security advisories. They include PHP-FPM request smuggling (CVE-2026-129289) and the fix for CVE-2026-115560, the session flaw PHP warned about on October 23.
The Hacker News reports that Depthfirst found and named the flaw, and that no attacks have been reported. The researchers' public proof writes only a harmless object. PHP's own release notice says its critical issues this cycle "require either non-default configuration or uncommon setups." So this is not a panic. It is a patch you should not skip.
Why it matters for your business
Most small-business sites do not pick their PHP version. The host does. That is the gap. Your host may have rushed out PHP2Shell patches in October and called it done.
Do this before the holiday traffic peaks:
- Check the PHP that serves requests, not the CLI. A
phpinfo()page or your host panel shows it. You want 8.2.36, 8.3.37, 8.4.28, 8.5.13 or newer. - Ask your host about backports. Linux distribution packages may fix the bug without changing the version number, The Hacker News reports. Get a yes or no in writing.
- Rebuild container images. A patched base image does nothing until you redeploy.
- Can't update yet? Set
session.upload_progress.enabled = 0and restart PHP workers. It closes one path, not all of them. - On PHP 8.1 or older? That is end-of-life. Plan the move now.
Key takeaways
- phpAfterShell (CVE-2026-126714) is a 9.2 critical flaw in PHP's default file session handler
- Fixed in PHP 8.2.36, 8.3.37, 8.4.28, 8.5.13 and 8.6.0, released November 19
- October's PHP2Shell patches do not include this fix
- No attacks reported; code execution also needs a gadget chain in the app
- Verify the PHP version serving web requests, and ask your host about backports
Not sure what PHP your store actually runs? We audit hosting stacks for small businesses, pin the versions, and set up patch checks that do not depend on your host remembering. See what we build or ask us to check your stack.
Sources: PHP GitHub advisory GHSA-fm2m-fjf5-v3cp, PHP 8 ChangeLog, The Hacker News.
- #php
- #phpaftershell
- #cve-2026-126714
- #wordpress
- #patching
Tommy Rush — Founder, Rush Commerce
Operator turned builder. 15+ years running operations — now shipping the systems businesses run on. More
Get The Rush Report weekly — one email, zero fluff.
Keep reading
Windows Server 2028 removes WSUS, SMBv1, VBScript and WMIC
Microsoft's Windows Server 2028 preview list removes WSUS, SMBv1, VBScript, WMIC, PPTP and legacy BIOS. Find what depends on them before you upgrade.
Read itRocket vibe-coding platform shuts down December 31
Rocket, an Indian rival to Lovable and Replit, closes December 31 and tells users to download their code and data. Here is what to export this week.
Read it