{"id":"CVE-2025-14178","aliases":["CVE-2025-14178","BIT-LIBPHP-2025-14178","BIT-PHP-2025-14178","BIT-PHP-MIN-2025-14178","GHSA-h96m-rvf9-jgm2"],"related":[],"kind":"vulnerability","state":"published","title":"Heap buffer overflow in array_merge()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En las versiones de PHP: 8.1.* anteriores a 8.1.34, 8.2.* anteriores a 8.2.30, 8.3.* anteriores a 8.3.29, 8.4.* anteriores a 8.4.16, 8.5.* anteriores a 8.5.1, se produce un desbordamiento de búfer de pila en array_merge() cuando el recuento total de elementos de los arrays empaquetados excede los límites de 32 bits o HT_MAX_SIZE, debido a un desbordamiento de entero en el precálculo de los recuentos de elementos utilizando zend_hash_num_elements(). Esto puede provocar corrupción de memoria o fallos y afectar la integridad y disponibilidad del servidor objetivo.","source":"nvd"}],"published":"2025-12-27T19:27:41.691Z","modified":"2026-10-13T09:10:00.323Z","severity":{"scorer":"php","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"php","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H","score":8.2,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-190","CWE-787"],"affected":[{"ranges":[{"type":"semver","introduced":"8.1.*","fixed":"8.1.34","status":"affected"},{"type":"semver","introduced":"8.2.*","fixed":"8.2.30","status":"affected"},{"type":"semver","introduced":"8.3.*","fixed":"8.3.29","status":"affected"},{"type":"semver","introduced":"8.4.*","fixed":"8.4.16","status":"affected"},{"type":"semver","introduced":"8.5.*","fixed":"8.5.1","status":"affected"}],"vendor":"PHP Group","product":"PHP","package":"php","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"8.1.0","fixed":"8.1.34"},{"status":"affected","introduced":"8.2.0","fixed":"8.2.30"},{"status":"affected","introduced":"8.3.0","fixed":"8.3.29"},{"status":"affected","introduced":"8.4.0","fixed":"8.4.16"},{"status":"affected","introduced":"8.5.0","fixed":"8.5.1"}],"vendor":"php","product":"php","cpe":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"8.1.34"},{"type":"semver","introduced":"8.2.0","status":"affected","fixed":"8.2.30"},{"type":"semver","introduced":"8.3.0","status":"affected","fixed":"8.3.29"},{"type":"semver","introduced":"8.4.0","status":"affected","fixed":"8.4.16"},{"type":"semver","introduced":"8.5.0","status":"affected","fixed":"8.5.1"}],"ecosystem":"Bitnami","package":"libphp","purl":"pkg:bitnami/libphp","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"8.1.34"},{"type":"semver","introduced":"8.2.0","status":"affected","fixed":"8.2.30"},{"type":"semver","introduced":"8.3.0","status":"affected","fixed":"8.3.29"},{"type":"semver","introduced":"8.4.0","status":"affected","fixed":"8.4.16"},{"type":"semver","introduced":"8.5.0","status":"affected","fixed":"8.5.1"}],"ecosystem":"Bitnami","package":"php","purl":"pkg:bitnami/php","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"8.1.34"},{"type":"semver","introduced":"8.2.0","status":"affected","fixed":"8.2.30"},{"type":"semver","introduced":"8.3.0","status":"affected","fixed":"8.3.29"},{"type":"semver","introduced":"8.4.0","status":"affected","fixed":"8.4.16"},{"type":"semver","introduced":"8.5.0","status":"affected","fixed":"8.5.1"}],"ecosystem":"Bitnami","package":"php-min","purl":"pkg:bitnami/php-min","source":"bitnami"}],"references":[{"url":"https://github.com/php/php-src/security/advisories/GHSA-h96m-rvf9-jgm2","tags":["advisory","vendor-advisory"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.debian.org/debian-lts-announce/2026/01/msg00019.html","tags":["web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-14178","tags":["web"],"sources":["bitnami"]}],"credits":["Niels Dossche"],"assigner":"php","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-12-29T16:00:50.197Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-14178","url":"https://www.cve.org/CVERecord?id=CVE-2025-14178","licence":"CVE Terms of Use","modified":"2026-01-24T11:04:01.892Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-14178","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-14178","licence":"Public domain","modified":"2026-10-13T09:10:00.323Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-LIBPHP-2025-14178","url":"https://osv.dev/vulnerability/BIT-LIBPHP-2025-14178","licence":"Apache-2.0","modified":"2026-09-08T08:48:08.217Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PHP-2025-14178","url":"https://osv.dev/vulnerability/BIT-PHP-2025-14178","licence":"Apache-2.0","modified":"2026-09-08T08:46:28.456Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PHP-MIN-2025-14178","url":"https://osv.dev/vulnerability/BIT-PHP-MIN-2025-14178","licence":"Apache-2.0","modified":"2026-09-08T08:48:18.121Z"}],"updatedAt":"2026-11-25T22:59:09.962Z","epss":{"score":0.00487,"percentile":0.43589,"date":"2026-12-01T12:00:22.000Z"}}