access.redhat.com PHP Session File Flaw phpAfterShell (CVE-2026-126714) Enables Unauthenticated RCE
Article Content
- •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.
Ask AI about this cluster
Answers cite the sources they use
Timeline
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?
Is phpAfterShell being exploited?
What should we do first?
Continue Reading
PHP Patches Critical RCE Vulnerabilities Amid Ongoing Exploitation Risks On November 19, 2026, PHP released security updates addressing seven critical remote code execution (RCE) vulnerabilities, including CVE-2026-115560, CVE-2026-126714, CVE-2026-129289, CVE-2026-129474, CVE-2026-129182, and CVE-2026-129481, all rated 9.2 on the CVSS scale. These vulnerabilities affect PHP versions 8.2…
Cloudflare WAF adds phpAfterShell and Java4Shell detection rules Cloudflare has expanded its WAF's PHP2Shell detection to block known attacks against phpAfterShell, a critical PHP remote code execution flaw, with the updated rule covering all plans including Free. Three additional rules for PHP-FPM and SOAP flaws are available on paid plans but log matches by default rather than…