CVE-2025-14178
Heap-based buffer overflow in array_merge()
| Publication Date | 2025-12-27 |
|---|---|
| Severity | Moderate |
| Type | Denial of Service |
| Affected PHP Versions |
|
| Fixed Product Versions |
|
CVE Details
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.
Recommendations
If you can guarantee that no integers you process in your application exceed HT_MAX_SIZE in count, you can ignore this vulnerability. Otherwise, we highly recommend upgrading to a known patched version immediately.