SOCRadarYağmur Ernalbant
PHP fixes phpAfterShell flaw that bypassed PHP2Shell patch
Part of the CVE-2026-126714 story · since 19 Nov
- Thu 19 Nov, 15:30 UTC. Infosecurity, first report. PHP patches 18 flaws, including seven marked critical.
- Thu 19 Nov, 15:30 UTC. The Hacker News, its first report on the story. PHP fixes eight flaws that could enable remote code execution.
- Thu 19 Nov, 16:01 UTC. SecurityWeek, its first report on the story. PHP fixes seven critical RCE flaws in latest four week patch batch.
- Thu 19 Nov, 16:01 UTC. SecurityOnline, its first report on the story. PHP Nov 2026 Update Fixes 12 Flaws, Incl. RCE CVE-2026-129289.
- Thu 19 Nov, 18:00 UTC. The Hacker News. PHP flaw enables code execution through crafted session files.
- Thu 19 Nov, 22:00 UTC. Dark Reading, its first report on the story. PHP patches seven critical flaws that can enable code execution.
- Fri 20 Nov, 12:00 UTC. SOCRadar, its first report on the story. PHP fixes phpAfterShell flaw that bypassed PHP2Shell patch. This article, 7th of 7.
PHP has fixed phpAfterShell, CVE-2026-126714, a critical flaw in the default file-based session handler that circumvents the October patch for PHP2Shell. The vulnerability, rated CVSS v4.0 9.2, was addressed in the 19 November 2026 releases for PHP 8.2.36, 8.3.37, 8.4.28 and 8.5.13, with PHP 8.6.0 also issued at the same time to cover ongoing fixes. The full exploit chain remains private, with the published PoC only demonstrating writing a harmless stdClass object into a session file.
Depthfirst explains that the October patch blocked object creation inside the session upload progress callback, but did not fully secure how the session file is written to disk. Under the default files handler, a session is stored as a single serialized string on disk. The bug stems from ps_files_write() reusing the existing session file and overwriting from offset zero via pwrite(), only trimming leftover bytes afterwards with ftruncate().
If a PHP worker crashes mid-write, a mixed file can be produced: fresh data at the top and stale bytes beneath. When such a file is later read via session_start(), the stale bytes may be interpreted as serialized objects, enabling potential RCE. PHP attributes the issue to CWE-367 and CWE-662, and notes it may have existed since PHP 4.1.0.
The advisory lists affected branches as 8.2 (before 8.2.36), 8.3 (8.3.0–8.3.36), 8.4 (8.4.0–8.4.27) and 8.5 (8.5.0–8.5.12), with fixes in 8.2.36, 8.3.37, 8.4.28 and 8.5.13; 8.6.0 (released 19 November) carries the same security fixes. The release note also flags six additional critical fixes in the same update, alongside phpAfterShell, affecting session handling, PHP-FPM, timezone cache, core backtraces and other components.
Exploitation status remained unconfirmed by maintainers and researchers as of 19 November 2026, though SOCRadar warns administrators to patch promptly and verify runtime versions, as activity around PHP2Shell-style chains previously accelerated quickly after disclosures.
How the story developed
7 articles from 6 outlets since 19 Nov. Still developing; the latest report was 9 hours ago. This was the 7th report, 21 hours after the first.
- Thu 19 Nov, 15:30 UTC. Infosecurity, first report. PHP patches 18 flaws, including seven marked critical.
- Thu 19 Nov, 15:30 UTC. The Hacker News, its first report on the story. PHP fixes eight flaws that could enable remote code execution.
- Thu 19 Nov, 16:01 UTC. SecurityWeek, its first report on the story. PHP fixes seven critical RCE flaws in latest four week patch batch.
- Thu 19 Nov, 16:01 UTC. SecurityOnline, its first report on the story. PHP Nov 2026 Update Fixes 12 Flaws, Incl. RCE CVE-2026-129289.
- Thu 19 Nov, 18:00 UTC. The Hacker News. PHP flaw enables code execution through crafted session files.
- Thu 19 Nov, 22:00 UTC. Dark Reading, its first report on the story. PHP patches seven critical flaws that can enable code execution.
- Fri 20 Nov, 12:00 UTC. SOCRadar, its first report on the story. PHP fixes phpAfterShell flaw that bypassed PHP2Shell patch. This article, 7th of 7.
- CVE not in KEV
- No CVE
- Larger: an outlet’s first report
- Coverage over time
Show all 7 articles as a listHide the list
- Thu 19 NovDay 06
- PHP patches 18 flaws, including seven marked critical15:30 · Infosecurity · First report
- PHP fixes eight flaws that could enable remote code execution15:30 · The Hacker News
- PHP fixes seven critical RCE flaws in latest four week patch batch16:01 · SecurityWeek
Show 3 more from 19 Nov
- PHP Nov 2026 Update Fixes 12 Flaws, Incl. RCE CVE-2026-12928916:01 · SecurityOnline
- PHP flaw enables code execution through crafted session files18:00 · The Hacker News
- PHP patches seven critical flaws that can enable code execution22:00 · Dark Reading
- Fri 20 NovDay 11
- PHP fixes phpAfterShell flaw that bypassed PHP2Shell patch12:00 · SOCRadar · This article, 7th of 7