CVE-2026-126714: phpAfterShell
- Vendor
- PHP Group
phpAfterShell is a critical vulnerability in PHP's default file-based session save handler. Existing session files are overwritten in place without first clearing their contents, with truncation performed separately. Interrupting this operation can leave a prefix of newly serialized session data followed by a suffix of the previous session. An attacker who influences session contents can arrange for bytes previously contained within ordinary strings to be interpreted as serialized objects when the corrupted session is subsequently loaded. Object injection can lead to remote code execution when a suitable deserialization gadget chain is available; session corruption can occur independently. Affected supported branches are PHP 8.2 before 8.2.36, 8.3 before 8.3.37, 8.4 before 8.4.28, and 8.5 before 8.5.13. Older unsupported branches are also affected unless covered by vendor-backported fixes.
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 compromise confidentiality, integrity, and availability through arbitrary code execution with PHP worker privileges. Consequences depend on service-account permissions and can include access to application data, modification or deletion of files, and disruption of services. Even without a usable code-execution chain, interrupted writes can corrupt application session state and affect application integrity and availability. Authentication requirements depend on the exposed application or product: upload-progress processing can provide an unauthenticated entry point, whereas affected F5 BIG-IP management functionality requires authentication.
Mitigation
If you can’t patch tonight, do this now.
Administratively disable session.upload_progress.enabled when upload tracking is unnecessary, and minimize attacker-controlled data stored in sessions. Disabling upload progress removes one input route but does not protect applications that independently store untrusted session values. Switching to a session backend that replaces records atomically avoids this specific file-write defect. Session-file locking alone does not make writes atomic. Run PHP workers with least privilege and restrict access to exposed management interfaces. These controls do not replace patching deployments that retain the vulnerable files handler.
Remediation
Patch, then assume compromise.
Upgrade to PHP 8.2.36, 8.3.37, 8.4.28, 8.5.13, or a later fixed release in the applicable branch; PHP 8.6.0 also includes the fix. Alternatively, install a distribution-supported package containing the backported correction. 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-FPM or the relevant web-server processes after updating, and verify the runtime actually serving web traffic rather than relying solely on the command-line version. Migrate unsupported upstream branches to supported releases unless a maintained vendor backport is available. For appliances embedding PHP, apply vendor-supported firmware or hotfixes rather than independently replacing PHP.
Exploits
3 exploits validated by Mallory's analysis. Hidden: 5 rejected by Mallory's analysis as not a working exploit.
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 24, 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 3 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, 8.5.13, or a later fixed release in the applicable branch; PHP 8.6.0 also includes the fix. Alternatively, install a distribution-supported package containing the backported correction.
- 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 13.3% (96th percentile) as of Nov 24, 2026.
Recent activity
362 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.