In PHP versions 8.2.* before 8.2.32, 8.3.* before 8.3.32, 8.4.* before 8.4.23, 8.5.* before 8.5.8, the AES-WRAP-PAD algorithm implementation in OpenSSL extension contains a buffer allocation flaw. The output buffer for the AES key-wrap-with-padding operation is sized from the plaintext length without accounting for RFC 5649 expansion. This may cause OpenSSL to write beyond allocated memory, corrupting heap metadata and triggering application abort.
A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().
| Name | Vendor | Start Version | End Version |
|---|---|---|---|
| Php | Php | 8.2.0 (including) | 8.2.32 (excluding) |
| Php | Php | 8.3.0 (including) | 8.3.32 (excluding) |
| Php | Php | 8.4.0 (including) | 8.4.23 (excluding) |
| Php | Php | 8.5.0 (including) | 8.5.8 (excluding) |
| Red Hat Enterprise Linux 10 | RedHat | php-0:8.3.32-1.el10_2 | * |
| Red Hat Enterprise Linux 10 | RedHat | php8.4-0:8.4.23-1.el10_2 | * |
| Red Hat Enterprise Linux 8 | RedHat | php:8.2-8100020260710044340.f7998665 | * |
| Red Hat Enterprise Linux 8 | RedHat | php:7.4-8100020260710051855.f7998665 | * |
| Red Hat Enterprise Linux 9 | RedHat | php:8.2-9080020260709074538.9 | * |
| Red Hat Enterprise Linux 9 | RedHat | php:8.3-9080020260709051146.9 | * |
| Red Hat Hardened Images | RedHat | php-main-8.5.8-2.hum1 | * |
| Php8.1 | Ubuntu | jammy | * |
| Php8.3 | Ubuntu | noble | * |
| Php8.4 | Ubuntu | questing | * |
| Php8.5 | Ubuntu | devel | * |
| Php8.5 | Ubuntu | resolute | * |
| Php8.5 | Ubuntu | upstream | * |