Short answer: PHP users should update to patched versions. Avoid storing untrusted data in sessions, disable session upload progress if not needed.
TL;DR
- PHP 8.6.0, 8.5.13, 8.4.28, 8.3.37, 8.2.36 patched the issue.
- Interrupted session writes can lead to remote code execution.
- Storing untrusted data in sessions can make exploitation easier.
- Disable session upload progress if not required.
- Use an atomic session storage backend for better security.
What is CVE-2026-126714?
PHPAfterShell is a critical vulnerability where session files can be partially overwritten, leading to remote code execution if an attacker can influence session data and interrupt the write process. To mitigate, update PHP and manage session data carefully.
- RCE (remote code execution)
- An attacker can run their own commands on someone else's computer or server over the internet.
- Vulnerability
- A mistake or weakness in software that an attacker can misuse.
- PHP
- A programming language used to build many websites, including WordPress sites.
Key facts
| Reported by | SecurityWeek |
|---|---|
| Date reported | 23 Nov 2026 |
| CVE | CVE-2026-126714 |
| CVSS | 9.2 CRITICAL CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| Weakness | CWE-367 (see NVD), CWE-662 (see NVD) |
| CISA KEV | Not listed (no confirmed exploitation in KEV) |
| Vendor advisory | github.com |
| Affected product | PHP2Shell |
| Fixed versions | 8.2.36, 8.3. (CVE-2026-126714, per NVD) |
| Published in NVD | 2026-11-19 (CVE-2026-126714) |
How it works

A bug in PHP allows attackers to mix old and new session data. If the session write is interrupted, attackers can inject their own code. Applications with certain setups can then execute this code.
- Attacker reaches the PHP2Shell over the internet / network
- No login or account is needed
- Sends crafted input that triggers the flaw
- Impact: data can be read, data or code can be changed, service crashes or stops
Skillmate analyst mapping (our judgement, not from the vendor):
- T1190 Exploit Public-Facing Application
Timeline
| Date | Event | Source |
|---|---|---|
| 2026-11-19 | CVE-2026-126714 published in NVD | NVD |
| 2026-11-23 | Reported by SecurityWeek | SecurityWeek |
| 2026-12-03 | This Skillmate explainer published | Skillmate |
How to fix it
- Update PHP2Shell now. NVD lists the fixed versions as 8.2.36, 8.3..
- Read the vendor advisory for CVE-2026-126714 and upgrade to the fixed release it lists.
- If you cannot patch today, limit who can reach the affected service and watch its logs.
What is confirmed and what is not
| Confirmed | Not confirmed yet |
|---|---|
| CVE-2026-126714 is a real NVD record scored 9.2 CRITICAL | CISA KEV does not list CVE-2026-126714 as exploited in the wild |
| NVD lists fixed versions for CVE-2026-126714: 8.2.36, 8.3. | |
| Reported by SecurityWeek | |
| Reported by github.com |
Why it matters
This flaw could lead to remote code execution, compromising systems and data. Companies and users need to update PHP to protect against attacks.
Learn the skills behind this story
Want to understand attacks like this and defend against them? Join Skillmate cybersecurity training or practise hands-on in Skillmate Labs.
FAQ
What is session upload progress?
Session upload progress is a feature that allows clients to influence stored session data through multipart uploads.
What does CVSS 9.2 mean?
CVSS 9.2 indicates a critical severity level, suggesting a high risk of exploitation leading to remote code execution.
Can this affect any PHP version?
This vulnerability affects PHP versions before 8.2.36, 8.3. before 8.3.37, 8.4. before 8.4.28, and 8.5. before 8.5.13.
Related Skillmate posts
Sources
- phpAfterShell Vulnerability Revives PHP2Shell’s Attack Path (SecurityWeek)
- Primary source / advisory (github.com)
- NVD CVE record (NVD)
How we wrote this: facts come from the sources above, NVD and CISA KEV. An on-prem AI model drafted the plain-English parts and every sentence was checked against the sources; unsupported sentences were removed. MITRE mapping is our own judgement.
Watch today's video brief: https://youtu.be/FBRgBgrcu-I
