In PHP versions:8.1.* before 8.1.34, 8.2.* before 8.2.30, 8.3.* before 8.3.29, 8.4.* before 8.4.16, 8.5.* before 8.5.1, a heap buffer overflow occurs in array_merge() when the total element count of packed arrays exceeds 32-bit limits or HT_MAX_SIZE, due to an integer overflow in the precomputation of element counts using zend_hash_num_elements(). This may lead to memory corruption or crashes and affect the integrity and availability of the target server.
The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
| Name | Vendor | Start Version | End Version |
|---|---|---|---|
| Php | Php | 8.1.0 (including) | 8.1.34 (excluding) |
| Php | Php | 8.2.0 (including) | 8.2.30 (excluding) |
| Php | Php | 8.3.0 (including) | 8.3.29 (excluding) |
| Php | Php | 8.4.0 (including) | 8.4.16 (excluding) |
| Php | Php | 8.5.0 (including) | 8.5.1 (excluding) |
| Red Hat Enterprise Linux 10.0 Extended Update Support | RedHat | php-0:8.3.19-1.el10_0.1 | * |
| Red Hat Enterprise Linux 8 | RedHat | php:8.2-8100020260106091451.f7998665 | * |
| Red Hat Enterprise Linux 9 | RedHat | php:8.2-9070020260107073439.9 | * |
| Red Hat Enterprise Linux 9 | RedHat | php:8.3-9070020260108073701.9 | * |
| Red Hat Enterprise Linux 9.4 Extended Update Support | RedHat | php:8.2-9040020260116191026.9 | * |
| Red Hat Enterprise Linux 9.6 Extended Update Support | RedHat | php:8.2-9060020260116185805.9 | * |
| Red Hat Enterprise Linux 9.6 Extended Update Support | RedHat | php:8.3-9060020260116180534.9 | * |
| Php7.2 | Ubuntu | esm-infra/bionic | * |
| Php7.4 | Ubuntu | esm-infra/focal | * |
| Php8.1 | Ubuntu | jammy | * |
| Php8.3 | Ubuntu | noble | * |
| Php8.4 | Ubuntu | devel | * |
| Php8.4 | Ubuntu | plucky | * |
| Php8.4 | Ubuntu | questing | * |