CVE-2026-126714: phpAfterShell Explained: How Hackers Could Turn a PHP Session Flaw Into Code Execution
Vulnerability · Reported by The Hacker News · · CWE-367, CWE-662
- Severity
- Critical Risk score 97/100
- CVSS
- 9.2 v4.0 · from NVD
- Exploit chance (EPSS)
- 31.6% Higher than 99% of CVEs
- Known exploited
- No Not in CISA KEV
Summary
PHP's default file-based session storage can be made to return objects an attacker chose, by cutting off a session write at the right moment. When combined with a second weakness, such as a suitable gadget chain in the app, those objects can allow the attacker to run code on the server. Today's PHP releases fix the flaw, called phpAfterShell. The flaw is tracked as CVE-2026-126714 and rated
How this vulnerability can be exploited
An attacker can exploit this vulnerability remotely over the network, without any login, and without any action from a user. Attack complexity is low, so no special conditions are needed.
Is it being exploited?
The EPSS model estimates a 31.60% chance this CVE will be exploited in the next 30 days, which is very high and higher than 99% of all published CVEs.
Patch priority and what to do
Patch immediately. Known or likely exploitation makes this a top priority regardless of the CVSS score. 1) Check whether you run the affected product and version. 2) Apply the vendor update or patch listed in the advisory. 3) Until patched, restrict network access to the service (firewall, VPN, WAF rules). 4) Review logs for signs of exploitation since the publication date.
CVSS vector
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
Tags
CVE-2026-126714
Sources & references
- Original article / advisory (The Hacker News) ↗
- NIST NVD: CVE-2026-126714 ↗
- CVE.org record ↗
- FIRST.org EPSS model ↗
How this data is collected: methodology & sources.