PHP Patches Critical phpAfterShell Session Flaw That Can Enable Remote Code Execution
Vulnerability Disclosure · 29 sources · Updated 3d ago · First seen Nov 19, 2026

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.
Why it matters
Organizations running vulnerable PHP with file-backed sessions face session-state manipulation, object injection, and potentially code execution with PHP-worker privileges, exposing application data, credentials, and service availability. This is broad potential product exposure rather than an identified targeted campaign; the supplied reporting does not establish phpAfterShell exploitation in the wild, and RCE is conditional rather than automatic. CVE record, The Hacker News, SecurityWeek
- Business severity: session manipulation can affect identity, authorization, CSRF protection, password-reset state, shopping carts, or workflows before application checks. Successful RCE can compromise files and secrets accessible to the PHP service, but does not inherently grant root or administrator privileges. Depthfirst research, Cyber Security News
- Industry-specific impact is not established. No affected organization or targeted sector is identified; framework examples and potential customer-record exposure do not establish sector-specific impact. SOC Prime
- Geography-specific impact is not established. BtCIRT reports no confirmed exploitation within Bhutan, which is not evidence of affected operations there; distribution advisories and publishers' jurisdictions do not establish country-specific targeting or impact. BtCIRT
- Exploitation distinction: reports of attacks against network gateways and CISA KEV inclusion concern October's CVE-2026-109618/CVE-2026-109619, not evidence of phpAfterShell exploitation. Publication-time statements of no known phpAfterShell attacks are not a guarantee that none have occurred. Malware.news

