PHP Group PHP
Heap buffer overflow in array_merge()
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 8.1.*, < 8.1.34
- >= 8.2.*, < 8.2.30
- >= 8.3.*, < 8.3.29
- >= 8.4.*, < 8.4.16
- >= 8.5.*, < 8.5.1
Fixed in 8.1.34, 8.2.30, 8.3.29, 8.4.16, 8.5.1
Mitigation
Upgrade PHP to 8.1.34 or 8.2.30 or 8.3.29 or 8.4.16 or 8.5.1 or later.
References
- Vendor advisory github.com/php/php-src/security/advisories/GHS…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.1 informational
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| gl1tch0x1/PHP_8.1.x_Exploit | 29 Apr 2026 +122 d | 1 | Informational · detection
Flags · score 35
Below the suspicion threshold (50); does not change the assessment. |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.