Summary
PHP Group has fixed a vulnerability (CVE-2026-115560) in which a session serializer mismatch can allow object injection and, under certain conditions, remote code execution. The source rates it critical, with a CVSS 4.0 score of 9.2.
What happened
When session upload progress is enabled, attacker-controlled data can be stored in a session key if the php_binary or php_serialize session serializer is used. If that 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 reach the unserializer. A remote attacker able to submit a multipart upload can inject objects. According to the description, this can lead to code execution if the reading application contains a suitable gadget chain, or to session corruption or denial of service. The associated weaknesses are CWE-20 and CWE-502.
Why it matters
The source rates the issue as critical (CVSS 4.0: 9.2, vector CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N, assigned by the PHP CNA). The attack is remote and requires no privileges, although the vector indicates high complexity and specific prerequisites, such as the session configuration described. The source does not state that the vulnerability is being actively exploited, and it is not listed in CISA's KEV catalog.
Affected products and versions
PHP (PHP Group): versions before 8.2.36; 8.3.x before 8.3.37 (from 8.3.0); 8.4.x before 8.4.28 (from 8.4.0); 8.5.x before 8.5.13 (from 8.5.0).
| Product | Versions | Fixed in |
|---|---|---|
| PHP Group PHP | 8.5.x before 8.5.13 | 8.5.13 |
| PHP Group PHP | 8.4.x before 8.4.28 | 8.4.28 |
| PHP Group PHP | 8.3.x before 8.3.37 | 8.3.37 |
| PHP Group PHP | 8.2.x before 8.2.36 | 8.2.36 |
| PHP Group PHP | < 8.2.36 | — |
| PHP Group PHP | >= 8.3.0, < 8.3.37 | — |
| PHP Group PHP | >= 8.4.0, < 8.4.28 | — |
| PHP Group PHP | >= 8.5.0, < 8.5.13 | — |
Action recommended by the source
The vendor's release notes list the fixed versions: 8.2.36, 8.3.37, 8.4.28 and 8.5.13. Official references are the PHP changelogs (https://www.php.net/ChangeLog-8.php) and advisory GHSA-658j-r8rw-q6mx in the php-src repository. The source does not state any other mitigations.
Fixed in: 8.2.36, 8.3.37, 8.4.28, 8.5.13
Sources and references
- https://www.php.net/ChangeLog-8.php#8.5.13 — PHP
- https://www.php.net/ChangeLog-8.php#8.4.28 — PHP
- https://www.php.net/ChangeLog-8.php#8.3.37 — PHP
- https://www.php.net/ChangeLog-8.php#8.2.36 — PHP
- https://github.com/php/php-src/security/advisories/GHSA-658j-r8rw-q6mx — CVE Program
- https://access.redhat.com/security/cve/cve-2026-115560 — NVD
- https://github.com/murrez/php2shell/blob/a8e24f4efab57f67384909d9408e42a74b973bfb/poc.py#L776-L791 — NVD
- https://ubuntu.com/security/CVE-2026-115560 — NVD
Weaknesses (CWE): CWE-20, CWE-502
Relevant change history
Advisory correction
The preliminary version was replaced by the full write-up.
Published
Preliminary advisory published.