Skip to content
NewA calmer, faster ZeroHour

phpAfterShell session bug enables PHP RCE (CVE-2026-126714)

Original title: New phpAfterShell Attack Lets Hackers Achieve Remote Code Execution on PHP Servers

GBHackersby Divya ()3 min read2
Part of a story covered by 4 sourcesPHP patches phpAfterShell session flaw CVE-2026-126714Merged summary & timeline
AI summary · x-ai/grok-4.7Summaries by Vani AI

PHP shipped same-day fixes; Depthfirst says the chain needs no application gadget and withheld the decoder.

Depthfirst researcher Yuhang Wu disclosed phpAfterShell on November 19, 2026, tracked as CVE-2026-126714 with a CVSS v4.0 score of 9.2. An interrupted rewrite of PHP’s file-based session can splice a serialized object into the session file, which is activated when the application later calls session_start(). PHP maintainers shipped fixes the same day. Depthfirst says a later memory-corruption stage yields code execution in the Apache worker and withheld the decoder.

Unconfirmed: Fixed versions are attributed to one tracker, and in-the-wild use of phpAfterShell itself is not stated.

Key facts
  • The bug is in session.save_handler=files and follows the PHP2Shell upload-progress path.
  • Variant B’s simulated 24-attempt hit rate rose from 52.8% to 88.4%, Depthfirst reports.
  • One tracker lists fixes as 8.5.13, 8.4.28, 8.3.37, and 8.2.36.
  • Until upgraded, disable session.upload_progress.enabled where it is not needed.
Security assessment · AI, from the article

Impact: remote code execution inside the Apache worker

ProductAffectedFixed in
PHP8.2.35 and later 8.2; 8.3.36 and later 8.3; 8.4.27 and 8.5.12; later 8.4/8.5/8.6 and master; earlier 8.2-8.5 also affected8.5.13, 8.4.28, 8.3.37, and 8.2.36
What to do
  1. 1.Upgrade to the latest PHP releases or equivalent distribution packages.
  2. 2.Disable session.upload_progress.enabled until the upgrade is complete.
  3. 3.Check whether distribution backports change behavior without changing PHP_VERSION.
Analyze CVE-2026-126714 with Vani AIImpact, affected versions, exploitation, mitigations and detection

Vulnerabilities mentioned

All
CVEVulnerabilityCVSSEPSSSignalsPublished
CVE-2026-126714
Partial session-file overwrite RCE in PHP
9.213%PoC

From the original article

3 min read at gbhackers.com

A new attack technique called phpAfterShell turns an interrupted PHP session write into remote code execution (RCE) on vulnerable servers. Depthfirst researcher Yuhang Wu disclosed the flaw on November 19, 2026. It is tracked as CVE-2026-126714 and carries a critical CVSS v4.

GBHackers

By Divya · gbhackers.com

Read the full article at GBHackers

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.