# CVE-2025-14178: Heap buffer overflow in array\_merge()

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-12-27 · Modified: 2026-01-24
- Aliases: SUSE-SU-2026:0245-1, RHSA-2026:4077, RHSA-2026:4086, RHSA-2026:4212, RHSA-2026:4266, RHSA-2026:4507, RHSA-2026:4514, RHSA-2026:4517, UBUNTU-CVE-2025-14178, DEBIAN-CVE-2025-14178, DLA-4447-1, ALPINE-CVE-2025-14178
- Record: https://cvemate.com/vulnerability/CVE-2025-14178 · JSON: https://cvemate.com/vulnerability/CVE-2025-14178/json

## 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.
```

## Signals

- CVSS: 8.2 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
- EPSS: 0.487%, percentile 43.603%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 136)

- alpine php81 (Alpine Linux): \< 8.1.34-r0
- alpine php82 (Alpine Linux): \< 8.2.30-r0
- alpine php83 (Alpine Linux): \< 8.3.29-r0
- alpine php84 (Alpine Linux): \< 8.4.16-r0
- alpine php85 (Alpine Linux): \< 8.5.1-r0
- debian php7.4 (Debian): \< 7.4.33-1+deb11u10
- debian php8.2 (Debian): \< 8.2.30-1~deb12u1
- debian php8.4 (Debian): \< 8.4.16-1~deb13u1 \| \< 8.4.16-1
- ubuntu php7.2 (Ubuntu): \< 7.2.24-0ubuntu0.18.04.17+esm12
- ubuntu php7.4 (Ubuntu): \< 7.4.3-4ubuntu2.29+esm3
- ubuntu php8.1 (Ubuntu): \< 8.1.2-1ubuntu2.23
- ubuntu php8.3 (Ubuntu): \< 8.3.6-0ubuntu0.24.04.6
- ubuntu php8.4 (Ubuntu): \< 8.4.11-1ubuntu1.1
- php group php: ≥ 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
- php php: ≥ 8.1.0, \< 8.1.34 \| ≥ 8.2.0, \< 8.2.30 \| ≥ 8.3.0, \< 8.3.29 \| ≥ 8.4.0, \< 8.4.16 \| ≥ 8.5.0, \< 8.5.1
- opensuse apache2-mod\_php7&distro=openSUSE Leap 15.6 (openSUSE): \< 7.4.33-150400.4.55.1
- opensuse php7-embed&distro=openSUSE Leap 15.6 (openSUSE): \< 7.4.33-150400.4.55.1
- opensuse php7-fastcgi&distro=openSUSE Leap 15.6 (openSUSE): \< 7.4.33-150400.4.55.1
- opensuse php7-fpm&distro=openSUSE Leap 15.6 (openSUSE): \< 7.4.33-150400.4.55.1
- opensuse php7-test&distro=openSUSE Leap 15.6 (openSUSE): \< 7.4.33-150400.4.55.1

## References (first 20 of 29)

- <https://github.com/php/php-src/security/advisories/GHSA-h96m-rvf9-jgm2>
- <https://lists.debian.org/debian-lts-announce/2026/01/msg00019.html>
- <https://www.suse.com/support/update/announcement/2026/suse-su-20260245-1/>
- <https://bugzilla.suse.com/1255711>
- <https://www.suse.com/security/cve/CVE-2025-14178>
- <https://access.redhat.com/errata/RHSA-2026:4077>
- <https://access.redhat.com/security/updates/classification/#moderate>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2425625>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_4077.json>
- <https://access.redhat.com/security/cve/CVE-2025-14178>
- <https://www.cve.org/CVERecord?id=CVE-2025-14178>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-14178>
- <https://access.redhat.com/errata/RHSA-2026:4086>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_4086.json>
- <https://access.redhat.com/errata/RHSA-2026:4212>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_4212.json>
- <https://access.redhat.com/errata/RHSA-2026:4266>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_4266.json>
- <https://access.redhat.com/errata/RHSA-2026:4507>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_4507.json>

---

Data as of 2026-12-05T04:22:17.814Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
