{"id":"CVE-2025-14178","published":"2025-12-27T19:27:41Z","modified":"2026-01-24T11:04:01Z","title":"Heap buffer overflow in array_merge()","vendor":"PHP","product":"PHP","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00455,"percentile":0.40346,"provenance":"source"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"},{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"references":[{"url":"https://github.com/php/php-src/security/advisories/GHSA-h96m-rvf9-jgm2","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2026/01/msg00019.html","tags":[]}],"priority":{"score":12.6,"factors":[{"name":"EPSS percentile","points":8.07},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"php","affectedVersions":[{"vendor":"PHP Group","product":"PHP","versions":[">= 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"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-12-29T16:00:50.197017Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-205485","exploited":false,"provenance":"source"}}