Skip to content
DayZeroHub
Critical CVSS 9.2CVE-2026-115560

PHP: session serializer mismatch can lead to remote code execution (CVE-2026-115560)

PHP Group PHP

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).

ProductVersionsFixed in
PHP Group PHP8.5.x before 8.5.138.5.13
PHP Group PHP8.4.x before 8.4.288.4.28
PHP Group PHP8.3.x before 8.3.378.3.37
PHP Group PHP8.2.x before 8.2.368.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

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-20, CWE-502

Relevant change history

  1. Advisory correction

    The preliminary version was replaced by the full write-up.

  2. Published

    Preliminary advisory published.

Summary written with AI assistance from the source data. See the sources and references for complete information. View sources