Skip to main content
Mallory
← Back to News
open-source-dependency-vulnerabilityidentity-authentication-vulnerabilityinternet-facing-service-vulnerabilitywidely-deployed-product-advisory

PHP Patches Critical phpAfterShell Session Flaw That Can Enable Remote Code Execution

Vulnerability Disclosure · 26 sources · Updated 16h ago · First seen Nov 19, 2026

PHP Patches Critical phpAfterShell Session Flaw That Can Enable Remote Code Execution

PHP released fixes for phpAfterShell, tracked as CVE-2026-126714 and rated CVSS v4.0 9.2, in its default file-based session handler. Depthfirst researchers found that interrupted session-file writes can mix new data with residual content, causing PHP to deserialize attacker-chosen objects on a subsequent request. Remote code execution requires an additional weakness, such as a suitable application deserialization gadget chain; researchers demonstrated unauthenticated execution by combining the defect with a separate memory-corruption flaw. Neither PHP maintainers nor Depthfirst reported exploitation in the wild.

Organizations should upgrade to PHP 8.2.36, 8.3.37, 8.4.28, 8.5.13, or 8.6.0. The October 21 PHP2Shell updates did not fix this underlying defect. As a temporary mitigation, disabling session upload progress and restarting PHP workers blocks the demonstrated entry route, but does not eliminate the vulnerable session-handler behavior. Applications using non-file session storage, such as Redis or a database, are not affected by this specific flaw.

Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

10 events · Oct 17, 2026 – Nov 19, 2026
  1. Reported Nov 19, 20265d ago

    Ubuntu lists phpAfterShell fixes for legacy PHP 7.0 and 7.2 packages

    Ubuntu lists CVE-2026-126714 as fixed in PHP 7.0 package 7.0.33-0ubuntu0.16.04.16+esm23 for Ubuntu 16.04 and PHP 7.2 package 7.2.24-0ubuntu0.18.04.17+esm15 for Ubuntu 18.04. Both require Ubuntu Pro, with the 16.04 fix additionally requiring Legacy Support; several other package and release combinations remain under evaluation.

    CVE-2026-126714 | Ubuntu
  2. Nov 19, 20265d ago

    Cloudflare updates WAF protection for phpAfterShell

    Cloudflare updated its PHP remote-code-execution WAF rule on November 19 to cover known phpAfterShell attack patterns, with blocking enabled by default for free and paid managed rulesets. It also added paid-plan PHP-FPM and SOAP rules that default to logging, while cautioning that WAF protection cannot cover every exploitation path or replace patching.

    How Cloudflare WAF helps protect against phpAfterShell and other critical PHP flaws | Cloudflare Blog
  3. Nov 19, 20265d ago

    Amazon Linux releases phpAfterShell fixes across supported PHP packages

    Amazon Linux released fixes for CVE-2026-126714 for the PHP 8.2 Extra on Amazon Linux 2, PHP 8.2–8.5 on Amazon Linux 2023, and PHP 8.5 on Amazon Linux 2027 Preview. AWS lists no fix planned for the Amazon Linux 2 core PHP package or Amazon Linux 2023 PHP 8.1.

    CVE-2026-126714
  4. Nov 19, 20265d ago

    PHP fixes additional critical flaws, including PHP-FPM request smuggling

    The PHP Group released updates addressing 17 vulnerabilities, including seven rated Critical with CVSS scores of 9.2. Beyond phpAfterShell, the fixes cover PHP-FPM request smuggling (CVE-2026-129289) when backend connections are reused, session-serializer mismatch, and multiple use-after-free flaws whose exploitability depends on deployment conditions.

    phpAfterShell and Critical PHP RCE Vulnerabilities: Everything You Need To Know | Wiz Blog
  5. Oct 26, 202629d ago

    CISA adds both PHP2Shell vulnerabilities to its KEV catalog

    CISA added PHP2Shell vulnerabilities CVE-2026-109618 and CVE-2026-109619 to its Known Exploited Vulnerabilities catalog. These earlier flaws prompted the October emergency patches that left the session-file write defect underlying phpAfterShell unresolved.

    phpAfterShell (CVE-2026-126714) Slips Past PHP2Shell Patch
  6. Oct 17, 20261mo ago

    PHP2Shell exploitation attempts begin before patches are available

    Exploitation attempts targeting PHP2Shell vulnerabilities CVE-2026-109618 and CVE-2026-109619 began on October 17, 2026, ahead of PHP's October 21 emergency patches. Attackers subsequently used the vulnerabilities against network gateways.

    phpAfterShell (CVE-2026-126714) Slips Past PHP2Shell Patch - Malware News - Malware Analysis, News and Indicators
  7. Reported Aug 30, 20263mo ago

    Depthfirst discloses phpAfterShell and demonstrates a code-execution chain

    Depthfirst disclosed phpAfterShell, rated CVSS 4.0 9.2, explaining how interrupted file-session writes can cause later requests to deserialize attacker-chosen objects and publishing an object-injection proof of concept. Researchers also reported demonstrating unauthenticated remote code execution using a separate PHP memory-corruption flaw whose details they withheld; no exploitation in the wild was reported.

    phpAfterShell
  8. Reported Aug 30, 20263mo ago

    PHP publishes phpAfterShell fixes and a security advisory

    PHP published fixes for CVE-2026-126714 in versions 8.5.13, 8.4.28, 8.3.37, and 8.2.36. The corrected file-session handler empties session files before writing and aborts if that operation fails, preventing interrupted updates from leaving exploitable residual data.

    phpAfterShell
  9. Reported Aug 30, 20263mo ago

    Depthfirst privately reports phpAfterShell to PHP maintainers

    Depthfirst privately reported the vulnerability to the PHP project in late October 2026 and worked with maintainers on patches for all four supported branches. The company attributes the discovery to its AI models working with security researchers.

    phpAfterShell
  10. Reported Aug 30, 20263mo ago

    PHP releases PHP2Shell patches that leave session-write flaw unresolved

    PHP released versions 8.5.12, 8.4.27, 8.3.36, and 8.2.35 to address earlier PHP2Shell vulnerabilities and recommended disabling upload progress as a temporary mitigation. Those fixes restricted deserialization during upload-progress processing but did not address the interrupted session-file writes underlying phpAfterShell.

    phpAfterShell
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Vulnerabilities

1 linked

Affected products

1 linked
Php
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.