Description
Partially overwritten session files can lead to remote code execution.
The files session save handler, which is the default, writes updated session data into the existing session file without first clearing it. If a write is interrupted, the file can contain the beginning of the new session followed by the end of the old one, and bytes of an ordinary string can later be unserialized as objects. An attacker who can influence the session data, for example through session upload progress, and interrupt a write at a suitable point may inject objects, which can lead to code execution when the application contains a suitable gadget chain. Session data can also be corrupted.
This issue 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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| PHP Group | PHP | < 8.2.36, 8.3.0 – < 8.3.37, 8.4.0 – < 8.4.28, 8.5.0 – < 8.5.13 | 8.2.36 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | php8.4 | No fix yet | — |
| Debian 13 | php8.4 | 8.4.28-1~deb13u1 | DSA-6641-1 |
| Debian 12 | php8.2 | 8.2.36-1~deb12u1 | DLA-4916-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | php8.5 | No fix yet | — |
| Ubuntu 26.04 LTS | php8.5 | No fix yet | — |
| Ubuntu 24.04 LTS | php8.3 | No fix yet | — |
| Ubuntu 22.04 LTS | php8.1 | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | php7.4 | No fix yet | — |
| Ubuntu Pro 18.04 LTS | php7.2 | 7.2.24-0ubuntu0.18.04.17+esm15 | — |
| Ubuntu Pro 16.04 LTS | php7.0 | 7.0.33-0ubuntu0.16.04.16+esm23 | — |
| Ubuntu Pro 14.04 LTS | php5 | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | php7 +5 | 7.4.33-150400.4.84.1 | SUSE-SU-2026:5399-1 |
| SLES 15 SP7 | php8 +5 | 8.3.37-150700.3.27.1 | SUSE-SU-2026:5398-1 |
| SLES 15 SP6 | php7 +3 | 7.4.33-150400.4.84.1 | SUSE-SU-2026:5399-1 |
| SLES 15 SP6 | php8 +5 | 8.2.36-150600.3.46.1 | SUSE-SU-2026:5390-1 |
| SLES 15 SP5 | php7 +3 | 7.4.33-150400.4.84.1 | SUSE-SU-2026:5399-1 |
| SLES 15 SP5 | php8 +5 | 8.0.30-150400.4.83.1 | SUSE-SU-2026:5389-1 |
| SLES 15 SP4 | php7 +3 | 7.4.33-150400.4.84.1 | SUSE-SU-2026:5399-1 |
| SLES 15 SP4 | php8 +5 | 8.0.30-150400.4.83.1 | SUSE-SU-2026:5389-1 |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP6 | php7 +3 | 7.4.33-150400.4.84.1 | SUSE-SU-2026:5399-1 |
| SLES for SAP 15 SP6 | php8 +5 | 8.2.36-150600.3.46.1 | SUSE-SU-2026:5390-1 |
| SLES for SAP 15 SP5 | php7 +3 | 7.4.33-150400.4.84.1 | SUSE-SU-2026:5399-1 |
| SLES for SAP 15 SP5 | php8 +5 | 8.0.30-150400.4.83.1 | SUSE-SU-2026:5389-1 |
| SLES for SAP 15 SP4 | php7 +3 | 7.4.33-150400.4.84.1 | SUSE-SU-2026:5399-1 |
| SLES for SAP 15 SP4 | php8 +5 | 8.0.30-150400.4.83.1 | SUSE-SU-2026:5389-1 |
| SLE HPC 15 SP5 | php8 +5 | 8.0.30-150400.4.83.1 | SUSE-SU-2026:5389-1 |
| SLE HPC 15 SP4 | php7 +3 | 7.4.33-150400.4.84.1 | SUSE-SU-2026:5399-1 |
| SLE HPC 15 SP4 | php8 +5 | 8.0.30-150400.4.83.1 | SUSE-SU-2026:5389-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | php8 | 8.5.13-1.1 | openSUSE-SU-2026:12618-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | php83 | 8.3.37-r0 | — |
| Alpine v3.24 | php84 | 8.4.28-r0 | — |
| Alpine v3.24 | php85 | 8.5.13-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | php8.2 +27 | 8.2.36-1.amzn2023.0.1 | ALAS2023-2026-3504 |
| Amazon Linux 2023 | php8.3 +28 | 8.3.37-1.amzn2023.0.1 | ALAS2023-2026-3505 |
| Amazon Linux 2023 | php8.4 +27 | 8.4.28-1.amzn2023.0.1 | ALAS2023-2026-3507 |
| Amazon Linux 2023 | php8.5 +26 | 8.5.13-1.amzn2023.0.1 | ALAS2023-2026-3506 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | php | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | php-8.2 +94 | 8.2.36-r0 | — |
| Wolfi rolling | php-8.3 +94 | 8.3.37-r0 | — |
| Wolfi rolling | php-8.4 +94 | 8.4.28-r0 | — |
| Wolfi rolling | php-8.5 +92 | 8.5.13-r0 | — |
| Wolfi rolling | php-8.6 +92 | 8.6.0-r0 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 5 repositories
-
bimajunestifa/phpAfterShell ★ 1 · Nov 20, 2026
CVE-2026-126714 (phpAfterShell)
-
VABISMO/PHPAfterShell-poc ★ 0 · Nov 20, 2026
Educational proof of concept for CVE-2026-126714 (phpAfterShell): unauthenticated RCE via interrupted session writes in PHP's file-based session handler. Docker lab (vulnerable/fixed/mitigated), HTTP…
-
tani2shell/phpaftershell-lab ★ 0 · Nov 20, 2026
PHP session write-race deserialization lab — gadget splice via non-atomic upload_progress writes, PHP 8.4.27 vs patched 8.4.28 pair (CVE-2026-126714).
-
ashrafzaryouh/CVE-2026-126714 ★ 0 · Nov 20, 2026
CVE-2026-126714
-
evenomn/cve-2026-126714-phpAfterShell ★ 0 · Nov 20, 2026
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 13
- SUSE-SU-2026:5399-1 Security update for php7 SUSE / openSUSE Security Updates · Nov 21, 2026
- SUSE-SU-2026:5398-1 Security update for php8 SUSE / openSUSE Security Updates · Nov 21, 2026
- SUSE-SU-2026:5390-1 Security update for php8 SUSE / openSUSE Security Updates · Nov 21, 2026
- SUSE-SU-2026:5389-1 Security update for php8 SUSE / openSUSE Security Updates · Nov 21, 2026
- NCSC-2026-0509 Kwetsbaarheden verholpen in PHP NCSC-NL (Netherlands) · Nov 20, 2026
- openSUSE-SU-2026:12618-1 php8-8.5.13-1.1 on GA media SUSE / openSUSE Security Updates · Nov 20, 2026
- DSA-6641-1 php8.4 - security update Debian Security (DSA / DLA) · Nov 20, 2026
- DLA-4916-1 php8.2 - security update Debian Security (DSA / DLA) · Nov 20, 2026
- WID-SEC-2026-4684 PHP: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 19, 2026
- ALAS2023-2026-3506 Critical: php8.5 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Nov 19, 2026
- ALAS2023-2026-3507 Critical: php8.4 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Nov 19, 2026
- ALAS2023-2026-3504 Critical: php8.2 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Nov 19, 2026
- ALAS2023-2026-3505 Critical: php8.3 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Nov 19, 2026