BIT-libphp-2026-115560: 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 phpbinary or phpserialize session serializer. If the same session is later read with the php serializer, because session.serializehandler 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
bitnami/libphpto a version that resolves this vulnerability.Fixed in 8.2.36 - Upgrade
Upgrade
bitnami/libphpto a version that resolves this vulnerability.Fixed in 8.3.37 - Upgrade
Upgrade
bitnami/libphpto a version that resolves this vulnerability.Fixed in 8.4.28 - Upgrade
Upgrade
bitnami/libphpto a version that resolves this vulnerability.Fixed in 8.5.13 - Upgrade
Upgrade
bitnami/phpto a version that resolves this vulnerability.Fixed in 8.2.36 - Upgrade
Upgrade
bitnami/phpto a version that resolves this vulnerability.Fixed in 8.3.37 - Upgrade
Upgrade
bitnami/phpto a version that resolves this vulnerability.Fixed in 8.4.28 - Upgrade
Upgrade
bitnami/phpto a version that resolves this vulnerability.Fixed in 8.5.13 - Upgrade
Upgrade
bitnami/php-minto a version that resolves this vulnerability.Fixed in 8.2.36 - Upgrade
Upgrade
bitnami/php-minto a version that resolves this vulnerability.Fixed in 8.3.37 - Upgrade
Upgrade
bitnami/php-minto a version that resolves this vulnerability.Fixed in 8.4.28 - Upgrade
Upgrade
bitnami/php-minto a version that resolves this vulnerability.Fixed in 8.5.13 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 8.2.36 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 8.3.37 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 8.4.28 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 8.5.13
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Exposure requires session upload progress to be enabled and attacker-controlled upload-progress data to be written using the php_binary or php_serialize session serializer, then read using the php serializer. This can occur when session.serialize_handler changes at runtime or when applications sharing a session store use different serializers.
What does an attacker need to exploit this?
An attacker needs to be able to submit a multipart upload. Remote code execution additionally depends on the application that reads the session containing a suitable gadget chain; otherwise the issue may cause session corruption or denial of service.
What versions contain the fix?
Upgrade to PHP 8.2.36, 8.3.37, 8.4.28, or 8.5.13 or later within the applicable release branch. Earlier versions in the affected branches are vulnerable.
What can be done if patching cannot happen immediately?
Disable session upload progress where possible, and prevent session serializer mismatches. In particular, do not allow applications sharing a session store to write sessions with php_binary or php_serialize and read them with php.
How can I assess whether an environment is exposed?
Check the deployed PHP version and review whether session upload progress is enabled. Also identify runtime changes to session.serialize_handler and applications sharing session storage that use different session serializers.