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, the getimagesize() function may leak uninitialized heap memory into the APPn segments (e.g., APP1) when reading images in multi-chunk mode (such as via php://filter). This occurs due to a bug in php_read_stream_all_chunks() that overwrites the buffer without advancing the pointer, leaving tail bytes uninitialized. This may lead to information disclosure of sensitive heap data and affect the confidentiality of the target server.
The product reads data past the end, or before the beginning, of the intended buffer.
| 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.0 (including) |
| Red Hat Enterprise Linux 10 | RedHat | php-0:8.3.29-1.el10_1 | * |
| Red Hat Enterprise Linux 8 | RedHat | php:8.2-8100020260106091451.f7998665 | * |
| Red Hat Enterprise Linux 8 | RedHat | php:7.4-8100020260119075152.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 | RedHat | php-0:8.0.30-5.el9_7 | * |
| Red Hat Hardened Images | RedHat | php-main-8.5.5-1.1.hum1 | * |
| Php8.3 | Ubuntu | noble | * |
| Php8.4 | Ubuntu | devel | * |
| Php8.4 | Ubuntu | plucky | * |
| Php8.4 | Ubuntu | questing | * |