Skip to content
PHP Session File Flaw phpAfterShell (CVE-2026-126714) Enables Unauthenticated RCE

PHP Session File Flaw phpAfterShell (CVE-2026-126714) Enables Unauthenticated RCE

First seen 22 Nov 2026, 00:17 UTC • •

Article Content

Browse articles
ThreatCluster AI
ThreatCluster •November 22, 2026 at 00:17 UTC
  • •PHP releases 8.2.36, 8.3.37, 8.4.28, 8.5.13 and 8.6.0 on 19 November 2026 fix 17 advisories, seven rated critical.
  • •phpAfterShell (CVE-2026-126714) allows unauthenticated attackers to corrupt session files and, when chained, achieve RCE in the PHP worker.
  • •Servers patched for PHP2Shell on 21 October 2026 are still vulnerable to phpAfterShell according to MyCERT.
  • •No in-the-wild exploitation of phpAfterShell is reported as of 21 November 2026, and its CVEs are not in CISA KEV.
  • •A full public exploitation chain has been described by depthfirst, and Red Hat is expediting fixes.

On 19 November 2026 the PHP project released coordinated builds for PHP 8.2 through 8.6 closing 17 security advisories, seven rated critical at CVSS v4.0 9.2. The headline flaw, phpAfterShell (CVE-2026-126714), lies in PHP's default file-based session handler, where a partially overwritten session file can be spliced so that a later session_start() deserialises attacker-chosen objects. MyCERT reports that chained with a memory-corruption bug in a PHP-native class, this becomes remote code execution in the web worker, typically www-data. The flaw sits in PHP itself rather than in any application or framework, so any stack keeping sessions in files is in scope until PHP is upgraded. MyCERT describes phpAfterShell as a descendant of PHP2Shell (CVE-2026-109618/109619, October 2026), and states that servers patched for PHP2Shell remain vulnerable. Red Hat's bulletin RHSB-2026-020 lists CVE-2026-126714 and related flaws as critical and notes that its fixes are being expedited. As of 21 November 2026, MyCERT reports no in-the-wild exploitation of phpAfterShell and the seven critical CVEs are not in CISA KEV, though a full public exploitation chain has been described by the discoverer, depthfirst. Red Hat's investigation is described as ongoing.

Start a free Starter trial for enhanced analysis

Ask AI about this cluster

Timeline

2026-10-21
PHP2Shell CVE-2026-109618/109619 published
Two critical PHP engine flaws enabling unauthenticated RCE were fixed; MyCERT notes the PHP2Shell patch left session-file write behaviour untouched.
MyCERT
2026-11-19
PHP releases fixes for 17 advisories including phpAfterShell
Five coordinated builds close 17 advisories, seven rated critical at CVSS v4.0 9.2, including CVE-2026-126714.
MyCERT
2026-11-19
Red Hat publishes RHSB-2026-020
Bulletin covers seven most severe flaws and states Red Hat is expediting fixes; investigation described as ongoing.
access.redhat.com
2026-11-19
CVE-2026-126714 published
Vulnerability assigned a CVE identifier and published in the National Vulnerability Database.
MITRE

More articles in this cluster (3)

Following this threat?

Track PHPAfterShell, CISA and CVE-2026-109618 in your own feed — you're alerted when they show up in new reporting, leak sites or exploitation.

Free account · no card needed

Common questions

Which PHP versions are affected?
Builds before 8.2.36, 8.3.37, 8.4.28 and 8.5.13 are affected, and 8.6.0 is the fixed release. Servers patched only for PHP2Shell remain vulnerable to phpAfterShell.
Is phpAfterShell being exploited?
MyCERT reports no in-the-wild exploitation as of 21 November 2026, and none of the seven critical CVEs is in CISA KEV. A full public exploitation chain has been described by depthfirst.
What should we do first?
Upgrade PHP to the fixed builds for your branch, restarting services afterward. Sites using file-based sessions are in scope regardless of application or framework.