Skip to content
NewA calmer, faster ZeroHour

phpAfterShell bypasses October PHP2Shell fix for unauthenticated RCE

Original title: New phpAfterShell Attack Bypasses PHP2Shell Fix to Enable Remote Code Execution

Cyber Security Newsby Guru Baran ()3 min read
Part of a story covered by 2 sourcesPHP patches phpAfterShell session flaw CVE-2026-126714Merged summary & timeline
AI summary · x-ai/grok-4.7Summaries by Vani AI

CVE-2026-126714 scores 9.2; fixes are PHP 8.2.36, 8.3.37, 8.4.28, and 8.5.13, with no in-the-wild evidence.

Depthfirst disclosed phpAfterShell on November 19, a flaw in PHP’s default file-based session handler. An interrupted upload-progress write can leave a mixed session file that session_start() later accepts, including object deserialization, outside the October PHP2Shell patch. Researchers combined that behavior with a memory-corruption bug in a built-in class to run code as the PHP worker. Redis or database session storage is not affected by this specific issue.

Unconfirmed: Depthfirst demonstrated the attack; the article says there is no evidence of in-the-wild use.

Key facts
  • The flaw is tracked as CVE-2026-126714 with a CVSS v4.0 score of 9.2.
  • Fixed upstream releases are PHP 8.2.36, 8.3.37, 8.4.28, and 8.5.13.
  • Setting session.upload_progress.enabled to 0 blocks the route but does not repair the handler.
  • PHP 8.0 and 8.1 are out of support and should move to a supported release.
  • CISA’s KEV listing covers earlier PHP2Shell flaws, not phpAfterShell.
Security assessment · AI, from the articlePublic proof of concept

Impact: unauthenticated remote code execution as the PHP worker

ProductAffectedFixed in
PHP Group PHP—8.2.36, 8.3.37, 8.4.28, and 8.5.13
What to do
  1. 1.Upgrade to PHP 8.2.36, 8.3.37, 8.4.28, or 8.5.13.
  2. 2.If upgrade must wait, set session.upload_progress.enabled to 0 and restart PHP workers.
  3. 3.Verify the PHP version serving web requests and rebuild container images.
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.2—

From the original article

3 min read at cybersecuritynews.com

A new PHP attack dubbed phpAfterShell can lead to unauthenticated remote code execution on vulnerable servers, even if they have the October patches for PHP2Shell. Researchers at depthfirst disclosed the flaw on November 19 and demonstrated how it could be combined with a separate bug in PHP to run code remotely. The vulnerability, tracked as […]

Cyber Security News

By Guru Baran · cybersecuritynews.com

Read the full article at Cyber Security News

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.