Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.4
CVE-2026-115560: PHP may let attackers run code via session handling
CVE-2026-115560 · published 16 days ago
Summary
Certain older versions of PHP can treat data that an attacker places in a file‑upload session as code, potentially allowing the attacker to run commands on your server. This happens when the way sessions are saved and read do not match, causing malicious data to be executed. Upgrade PHP to the latest release (8.2.36 or later, 8.3.37 or later, 8.4.28 or later, 8.5.13 or later) to prevent the issue.
What to do
- Update debian php8.4 to version 8.4.28-1~deb13u1.
- Update debian php8.2 to version 8.2.36-1~deb12u1.
- Update php83 to version 8.3.37-r0.
- Update php84 to version 8.4.28-r0.
- Update php85 to version 8.5.13-r0.
- Update bellsoft php83 to version 8.3.37-r0.
- Update debian php8.4 to version 8.4.28-2.
- Update canonical php8.3 to version 8.3.6-0ubuntu0.24.04.14.
- Update canonical php8.5 to version 8.5.9-0ubuntu2.2.
- Update canonical php8.5 to version 8.5.4-0ubuntu1.6.
- Update libphp to version 8.5.13.
- Update php to version 8.5.13.
- Update php-min to version 8.5.13.
- Update php group php to version 8.2.36 or later.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| – | php group | php | < 8.2.36 |
| Debian:12 | debian | php8.2 |
< 8.2.36-1~deb12u1 Fix: upgrade to 8.2.36-1~deb12u1
|
| Debian:13 | debian | php8.4 |
< 8.4.28-1~deb13u1 Fix: upgrade to 8.4.28-1~deb13u1
|
| Debian:14 | debian | php8.4 |
< 8.4.28-2 Fix: upgrade to 8.4.28-2
|
| Alpine:v3.24 | – | php83 |
< 8.3.37-r0 Fix: upgrade to 8.3.37-r0
|
| Alpine:v3.24 | – | php84 |
< 8.4.28-r0 Fix: upgrade to 8.4.28-r0
|
| Alpine:v3.24 | – | php85 |
< 8.5.13-r0 Fix: upgrade to 8.5.13-r0
|
| Alpaquita:stream | bellsoft | php83 |
>= 8.3.4-r2, < 8.3.37-r0 Fix: upgrade to 8.3.37-r0
|
| Alpaquita:25 | bellsoft | php83 |
>= 8.3.21-r0, < 8.3.37-r0 Fix: upgrade to 8.3.37-r0
|
| Ubuntu:24.04:LTS | canonical | php8.3 |
< 8.3.6-0ubuntu0.24.04.14 Fix: upgrade to 8.3.6-0ubuntu0.24.04.14
|
| Ubuntu:26.10 | canonical | php8.5 |
< 8.5.9-0ubuntu2.2 Fix: upgrade to 8.5.9-0ubuntu2.2
|
| Ubuntu:26.04:LTS | canonical | php8.5 |
< 8.5.4-0ubuntu1.6 Fix: upgrade to 8.5.4-0ubuntu1.6
|
| Bitnami | – | libphp |
>= 8.5.0, < 8.5.13 Fix: upgrade to 8.5.13
|
| Bitnami | – | php |
>= 8.5.0, < 8.5.13 Fix: upgrade to 8.5.13
|
| Bitnami | – | php-min |
>= 8.5.0, < 8.5.13 Fix: upgrade to 8.5.13
|
Original advisory text
Session serializer mismatch can lead to remote code execution
Session serializer mismatch can lead to remote code execution.
Session upload progress, when enabled, can store attacker-controlled data in a session key using the php_binary or php_serialize session serializer. If the same session is later read with the php serializer, because session.serialize_handler is changed at runtime or differs between applications sharing a session store, bytes inside the key can be passed to the unserializer. A remote attacker able to submit a multipart upload can inject objects, which may lead to code execution when the reading application contains a suitable gadget chain, or to session corruption or denial of service.
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.
Session upload progress, when enabled, can store attacker-controlled data in a session key using the php_binary or php_serialize session serializer. If the same session is later read with the php serializer, because session.serialize_handler is changed at runtime or differs between applications sharing a session store, bytes inside the key can be passed to the unserializer. A remote attacker able to submit a multipart upload can inject objects, which may lead to code execution when the reading application contains a suitable gadget chain, or to session corruption or denial of service.
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.
References
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/115xxx/CVE-2026-1155... Vendor Advisory
- https://github.com/php/php-src/security/advisories/GHSA-658j-r8rw-q6mx Vendor Advisory
- https://security-tracker.debian.org/tracker/CVE-2026-115560 Vendor Advisory
- https://security.alpinelinux.org/vuln/CVE-2026-115560 Vendor Advisory
- https://docs.bell-sw.com/security/cves/CVE-2026-115560 Vendor Advisory
- https://www.cve.org/CVERecord?id=CVE-2026-115560 Third Party Advisory
- https://access.redhat.com/security/cve/cve-2026-115560 URL
- https://github.com/murrez/php2shell/blob/a8e24f4efab57f67384909d9408e42a74b973bf... URL
- https://ubuntu.com/security/CVE-2026-115560 URL
- https://nvd.nist.gov/vuln/detail/CVE-2026-115560 Vendor Advisory
Internet-facing
14 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker full control
Severity
9.4
Critical
Type
CWE-20Improper Input Validation
CWE-502Deserialization of Untrusted Data
Timeline
Published19 Nov 2026
Updated4 Dec 2026
First seen19 Nov 2026
Sources
CVE-2026-115560 · NVD
CVE-2026-115560 · MITRE
DEBIAN-CVE-2026-115560 · OSV
ALPINE-CVE-2026-115560 · OSV
BELL-CVE-2026-115560 · OSV
UBUNTU-CVE-2026-115560 · OSV
CVE-2026-115560 · OSV
GHSA-658j-r8rw-q6mx · GHSA
BIT-php-min-2026-115560 · OSV
Track software like this
Free during beta