Описание
PHAR OpenSSL signature bypass via algorithm downgrade.
The Phar extension selects the signature verification method from the signature type stored in the archive, and only the OpenSSL types consult the separate .pubkey file holding the trusted public key. An attacker who can modify an OpenSSL-signed Phar archive, but not its public key file, can switch the signature type to a keyless hash such as SHA-256 with a recomputed digest, so the altered archive passes verification even with phar.require_hash enabled. An application that loads the archive may then execute attacker-controlled PHP code. Native, tar-based and zip-based phars are affected.
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. This vulnerability allows a remote attacker to bypass digital signature verification and potentially achieve arbitrary code execution via a cryptographic algorithm downgrade in the PHAR (PHP Archive) component. By supplying a specially crafted archive file, an attacker can circumvent OpenSSL signature validation, causing the application to trust and execute unverified code.
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| 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.0 Extended Update Support | php | Fixed | RHSA-2026:102934 | 24.11.2026 |
| Red Hat Enterprise Linux 10.2 Extended Update Support | php8.4 | Fixed | RHSA-2026:101251 | 21.11.2026 |
| Red Hat Enterprise Linux 10.2 Extended Update Support | php | Fixed | RHSA-2026:102302 | 24.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 8.4 Advanced Mission Critical Update Support | php | Fixed | RHSA-2026:103276 | 24.11.2026 |
Показывать по
Дополнительная информация
Статус:
EPSS
7.1 High
CVSS3
Связанные уязвимости
PHAR OpenSSL signature bypass via algorithm downgrade. The Phar extension selects the signature verification method from the signature type stored in the archive, and only the OpenSSL types consult the separate .pubkey file holding the trusted public key. An attacker who can modify an OpenSSL-signed Phar archive, but not its public key file, can switch the signature type to a keyless hash such as SHA-256 with a recomputed digest, so the altered archive passes verification even with phar.require_hash enabled. An application that loads the archive may then execute attacker-controlled PHP code. Native, tar-based and zip-based phars are affected. 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.
PHAR OpenSSL signature bypass via algorithm downgrade. The Phar extension selects the signature verification method from the signature type stored in the archive, and only the OpenSSL types consult the separate .pubkey file holding the trusted public key. An attacker who can modify an OpenSSL-signed Phar archive, but not its public key file, can switch the signature type to a keyless hash such as SHA-256 with a recomputed digest, so the altered archive passes verification even with phar.require_hash enabled. An application that loads the archive may then execute attacker-controlled PHP code. Native, tar-based and zip-based phars are affected. 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.
PHAR OpenSSL signature bypass via algorithm downgrade. The Phar exten ...
EPSS
7.1 High
CVSS3