PHP Group PHP
Partially overwritten session files can lead to remote code execution
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- < 8.2.36
- >= 8.3.0, < 8.3.37
- >= 8.4.0, < 8.4.28
- >= 8.5.0, < 8.5.13
Fixed in 8.2.36, 8.3.37, 8.4.28, 8.5.13
Mitigation
Upgrade PHP to 8.2.36 or 8.3.37 or 8.4.28 or 8.5.13 or later.
References
- Vendor advisory github.com/php/php-src/security/advisories/GHS…
Timeline
Days relative to CVE publicationFirst public PoC 23 h after publication; not in CISA KEV. First PoC: ashrafzaryouh/CVE-2026-126714 (created 20 Nov 2026, found by us: 20 Nov 2026).
PoC repositories
Found on GitHub.2 PoCs · 1 informational
PoCs 2
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| ashrafzaryouh/CVE-2026-126714 | 20 Nov 2026 +23 h | 20 Nov 2026 | 0 | PoC
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| evenomn/cve-2026-126714-phpAfterShell | 20 Nov 2026 +23 h | 20 Nov 2026 | 0 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
Informational 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| tani2shell/phpaftershell-lab | 20 Nov 2026 +21 h | 20 Nov 2026 | 0 | Informational · detection
Flags · score 40
Below the suspicion threshold (50); does not change the assessment. |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 2 PoC reposGET /
- Key headers
Cookie: PHPSESSID={var}- Ports
- 8080
- Seen in
- 1 repo: evenomn/cve-2026-126714-phpAfterShell
- Evidence
- evenomn/cve-2026-126714-phpAfterShell/poc/attack.sh:37
GET /dump.php
- Query
sid=- Ports
- 8080
- Seen in
- 1 repo: evenomn/cve-2026-126714-phpAfterShell
- Evidence
- evenomn/cve-2026-126714-phpAfterShell/poc/attack.sh:34 evenomn/cve-2026-126714-phpAfterShell/poc/attack.sh:35
POST /
- Key headers
Cookie: PHPSESSID={var}- Body markers
@/tmp/carrier.bin=@/tmp/replacement.bininapplication/x-www-form-urlencoded- Ports
- 8080
- Seen in
- 1 repo: evenomn/cve-2026-126714-phpAfterShell
- Evidence
- evenomn/cve-2026-126714-phpAfterShell/poc/attack.sh:18 evenomn/cve-2026-126714-phpAfterShell/poc/attack.sh:29
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/(?:[?#].*)?$
(?i)^/dump\.php\?(?:.*&)?sid=
(?i)^/(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2026-126714 PHP Group PHP exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.header; content:"Cookie: PHPSESSID="; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-126714; classtype:web-application-attack; sid:9552595; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2026-126714 PHP Group PHP exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/dump.php"; http.uri; content:"sid="; reference:url,poc.griffinguard.io/cve/CVE-2026-126714; classtype:web-application-attack; sid:9638755; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2026-126714 PHP Group PHP exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.header; content:"Cookie: PHPSESSID="; nocase; http.request_body; content:"@/tmp/carrier.bin="; http.request_body; content:"@/tmp/replacement.bin"; reference:url,poc.griffinguard.io/cve/CVE-2026-126714; classtype:web-application-attack; sid:9415581; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: PHP Group PHP exploit attempt (CVE-2026-126714)
id: gg-pocmon-cve-2026-126714-9552595
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-126714. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-126714
logsource:
category: webserver
detection:
selection:
cs-method: GET
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.126714
title: PHP Group PHP exploit attempt (CVE-2026-126714)
id: gg-pocmon-cve-2026-126714-9638755
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-126714. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-126714
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/dump.php'
cs-uri-query|contains|all:
- 'sid='
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.126714
title: PHP Group PHP exploit attempt (CVE-2026-126714)
id: gg-pocmon-cve-2026-126714-9415581
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-126714. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-126714
logsource:
category: webserver
detection:
selection:
cs-method: POST
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.126714