Описание
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.
A flaw was found in PHP. An unauthenticated remote attacker can exploit this vulnerability to achieve arbitrary code execution by causing session files to be partially overwritten. Successful exploitation may allow an attacker to run unauthorized commands on the affected system.
Меры по смягчению последствий
See the security bulletin for a detailed mitigation procedure.
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| Red Hat Enterprise Linux 6 | php | Out of support scope | ||
| Red Hat Enterprise Linux 10 | php8.4 | Fixed | RHSA-2026:100821 | 20.11.2026 |
| Red Hat Enterprise Linux 10 | php | Fixed | RHSA-2026:102300 | 23.11.2026 |
| Red Hat Enterprise Linux 10.2 Extended Update Support | php8.4 | Fixed | RHSA-2026:101251 | 21.11.2026 |
| Red Hat Enterprise Linux 7 Extended Lifecycle Support | php | Fixed | RHSA-2026:101337 | 22.11.2026 |
| Red Hat Enterprise Linux 8 | php | Fixed | RHSA-2026:100991 | 21.11.2026 |
| Red Hat Enterprise Linux 8 | php | Fixed | RHSA-2026:101276 | 22.11.2026 |
| Red Hat Enterprise Linux 9 | php | Fixed | RHSA-2026:102226 | 23.11.2026 |
| Red Hat Enterprise Linux 9 | php | Fixed | RHSA-2026:102255 | 23.11.2026 |
| Red Hat Enterprise Linux 9 | php | Fixed | RHSA-2026:102261 | 23.11.2026 |
Показывать по
Дополнительная информация
Статус:
8.1 High
CVSS3
Связанные уязвимости
PHP's file-based session handler can leave a session file containing parts of two different serialized sessions if a write is interrupted. An attacker who can influence the session contents and interrupt a replacement write may be able to make PHP deserialize attacker-controlled objects when the session is next opened. A suitable object gadget chain in the application can turn this into remote code execution. This affects the files session save handler, which is PHP's default. The issue is not limited to session upload progress or PHP 8.6.
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.
Partially overwritten session files can lead to remote code execution
Partially overwritten session files can lead to remote code execution. ...
Partially overwritten session files can lead to remote code execution
8.1 High
CVSS3