CVE-2026-126714: PHPAfterShell
- Vendor
- PHP Group
PHPAfterShell is an object-injection vulnerability in PHP's default file-based session save handler. Updated serialized session data is written over the existing session file without first clearing its contents. If writing is interrupted at a suitable point, the file can retain a prefix of the new session followed by a suffix of the previous session. When subsequently decoded, bytes originally contained within an ordinary string can be interpreted as serialized objects. An attacker who can influence session contents and interrupt a replacement write may trigger object injection and, if a suitable application gadget chain exists, remote code execution. Session data can also be corrupted. Affected upstream versions are PHP before 8.2.36, PHP 8.3 before 8.3.37, PHP 8.4 before 8.4.28, and PHP 8.5 before 8.5.13. Other session storage implementations are not affected by this specific file-write defect.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can execute arbitrary code with the PHP worker's privileges, compromising application data confidentiality and integrity and disrupting service availability. The vulnerability can also corrupt session state independently of successful code execution. On affected F5 BIG-IP systems, exposure is through authenticated TMUI/Configuration utility functionality and may permit arbitrary system commands, file creation or deletion, and service disruption; it does not inherently confer root privileges in every deployment.
Mitigation
If you can’t patch tonight, do this now.
Administratively disable session.upload_progress.enabled when upload-progress tracking is unnecessary, and minimize untrusted data stored in sessions. Disabling upload progress removes one input path but does not protect applications that independently store attacker-controlled session data. A session backend that replaces records atomically avoids this specific file-write defect. For affected BIG-IP deployments, restrict Configuration utility access to trusted users and devices over secure networks, block its port on self IPs where feasible, and restrict management-interface access. These measures reduce exposure but do not replace patching.
Remediation
Patch, then assume compromise.
Upgrade to PHP 8.2.36, 8.3.37, 8.4.28, or 8.5.13, or a later fixed release in the corresponding branch. The fix truncates the session file to zero before writing replacement data and aborts the write if truncation fails, preventing retention of an exploitable old-data suffix. Restart PHP-serving services after updating, and rebuild and redeploy affected container images or custom runtimes. For distribution-maintained packages, install the applicable vendor security update and verify the complete package release because fixes may be backported. For embedded appliances, use vendor-supported firmware fixes rather than treating upstream PHP releases as appliance updates; no fixed BIG-IP release is identified.
Exploits
4 exploits validated by Mallory's analysis. Hidden: 6 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-126714 exploited in the wild?
- As of Nov 28, 2026, Mallory has no reports of CVE-2026-126714 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-126714?
- Yes. Mallory tracks 4 public exploits or proofs of concept for CVE-2026-126714, the earliest disclosed Nov 20, 2026.
- Is there a patch for CVE-2026-126714?
- Upgrade to PHP 8.2.36, 8.3.37, 8.4.28, or 8.5.13, or a later fixed release in the corresponding branch. The fix truncates the session file to zero before writing replacement data and aborts the write if truncation fails, preventing retention of an exploitable old-data suffix.
- What products are affected by CVE-2026-126714?
- PHP Group Php.
- How severe is CVE-2026-126714?
- CVE-2026-126714 has a CVSS v4 score of 9.2 (Critical) and an EPSS score of 32.1% (99th percentile) as of Nov 28, 2026.
Recent activity
442 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.