CVE-2025-14178
published medium CVSS 3.1 · 6.5Heap buffer overflow in array_merge()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| PHP Group | — | phpPHP · 8.1.* to < 8.1.34 · 8.2.* to < 8.2.30 · 8.3.* to < 8.3.29 · 8.4.* to < 8.4.16 · 8.5.* to < 8.5.1 · Other versions: affected | Affected | Not stated | php |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2PHP8.1-2026-008 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2PHP8.2-2026-009 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1352 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1353 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 10 | php | Advisory build | 8.3.29-1.el10_1 | ALSA-2026:1628 |
| Oracle Linux | 10 | phpaarch64 | Advisory build | 0:8.3.29-1.el10_1 | ELSA-2026-1628 |
Show 100 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1354 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1355 | Fixed | Not stated | Amazon Linux assessment |
| Red Hat Enterprise Linux | RHEL-10 | phpaarch64 | Advisory build | 8.3.19-1.el10_0.1 | RHSA-2026:1185 |
| AlmaLinux | 8 | php | Advisory build | 7.4.33-3.module_el8.10.0+4114+3b36c618 | ALSA-2026:2470 |
| AlmaLinux | 8 | php | Advisory build | 8.2.30-1.module_el8.10.0+4108+cff35472 | ALSA-2026:1412 |
| AlmaLinux | 9 | php | Advisory build | 8.0.30-5.el9_7 | ALSA-2026:2799 |
| AlmaLinux | 9 | php | Advisory build | 8.2.30-1.module_el9.7.0+205+fe410f10 | ALSA-2026:1409 |
| AlmaLinux | 9 | php | Advisory build | 8.3.29-1.module_el9.7.0+206+f4fec7f3 | ALSA-2026:1429 |
| Oracle Linux | 10 | phpx86_64 | Advisory build | 0:8.3.29-1.el10_1 | ELSA-2026-1628 |
| Oracle Linux | 8 | phpaarch64 · php · 7.4b | Advisory build | 0:7.4.33-3.module+el8.10.0+90781+f71ba651 | ELSA-2026-2470 |
| Oracle Linux | 8 | phpaarch64 · php · 8.2b | Advisory build | 0:8.2.30-1.module+el8.10.0+90775+243071a5 | ELSA-2026-1412 |
| Oracle Linux | 8 | phpx86_64 · php · 7.4b | Advisory build | 0:7.4.33-3.module+el8.10.0+90781+f71ba651 | ELSA-2026-2470 |
| Oracle Linux | 8 | phpx86_64 · php · 8.2b | Advisory build | 0:8.2.30-1.module+el8.10.0+90775+243071a5 | ELSA-2026-1412 |
| Oracle Linux | 9 | phpaarch64 | Advisory build | 0:8.0.30-5.el9_7 | ELSA-2026-2799 |
| Oracle Linux | 9 | phpaarch64 · php · 8.2b | Advisory build | 0:8.2.30-1.module+el9.7.0+90777+7055ad44 | ELSA-2026-1409 |
| Oracle Linux | 9 | phpaarch64 · php · 8.3b | Advisory build | 0:8.3.29-1.module+el9.7.0+90776+76de6b03 | ELSA-2026-1429 |
| Oracle Linux | 9 | phpx86_64 | Advisory build | 0:8.0.30-5.el9_7 | ELSA-2026-2799 |
| Oracle Linux | 9 | phpx86_64 · php · 8.2b | Advisory build | 0:8.2.30-1.module+el9.7.0+90777+7055ad44 | ELSA-2026-1409 |
| Oracle Linux | 9 | phpx86_64 · php · 8.3b | Advisory build | 0:8.3.29-1.module+el9.7.0+90776+76de6b03 | ELSA-2026-1429 |
| Red Hat Enterprise Linux | RHEL-10 | phpaarch64 | Advisory build | 8.3.29-1.el10_1 | RHSA-2026:1628 |
| Red Hat Enterprise Linux | RHEL-10 | phpppc64le | Advisory build | 8.3.19-1.el10_0.1 | RHSA-2026:1185 |
| Red Hat Enterprise Linux | RHEL-10 | phpppc64le | Advisory build | 8.3.29-1.el10_1 | RHSA-2026:1628 |
| Red Hat Enterprise Linux | RHEL-10 | phps390x | Advisory build | 8.3.19-1.el10_0.1 | RHSA-2026:1185 |
| Red Hat Enterprise Linux | RHEL-10 | phps390x | Advisory build | 8.3.29-1.el10_1 | RHSA-2026:1628 |
| Red Hat Enterprise Linux | RHEL-10 | phpsrc | Advisory build | 8.3.19-1.el10_0.1 | RHSA-2026:1185 |
| Red Hat Enterprise Linux | RHEL-10 | phpsrc | Advisory build | 8.3.29-1.el10_1 | RHSA-2026:1628 |
| Red Hat Enterprise Linux | RHEL-10 | phpx86_64 | Advisory build | 8.3.19-1.el10_0.1 | RHSA-2026:1185 |
| Red Hat Enterprise Linux | RHEL-10 | phpx86_64 | Advisory build | 8.3.29-1.el10_1 | RHSA-2026:1628 |
| Red Hat Enterprise Linux | RHEL-8 | phpaarch64 | Advisory build | 7.4.19-4.module+el8.6.0+24049+97f8f81c.2 | RHSA-2026:4517 |
| Red Hat Enterprise Linux | RHEL-8 | phpaarch64 | Advisory build | 7.4.33-3.module+el8.10.0+23902+d3c8dd8f | RHSA-2026:2470 |
| Red Hat Enterprise Linux | RHEL-8 | phpaarch64 | Advisory build | 8.2.30-1.module+el8.10.0+23848+33d54484 | RHSA-2026:1412 |
| Red Hat Enterprise Linux | RHEL-8 | phpppc64le | Advisory build | 7.4.19-4.module+el8.6.0+24049+97f8f81c.2 | RHSA-2026:4517 |
| Red Hat Enterprise Linux | RHEL-8 | phpppc64le | Advisory build | 7.4.33-1.module+el8.8.0+24048+c1e4778e.1 | RHSA-2026:4514 |
| Red Hat Enterprise Linux | RHEL-8 | phpppc64le | Advisory build | 7.4.33-3.module+el8.10.0+23902+d3c8dd8f | RHSA-2026:2470 |
| Red Hat Enterprise Linux | RHEL-8 | phpppc64le | Advisory build | 8.2.30-1.module+el8.10.0+23848+33d54484 | RHSA-2026:1412 |
| Red Hat Enterprise Linux | RHEL-8 | phps390x | Advisory build | 7.4.19-4.module+el8.6.0+24049+97f8f81c.2 | RHSA-2026:4517 |
| Red Hat Enterprise Linux | RHEL-8 | phps390x | Advisory build | 7.4.33-3.module+el8.10.0+23902+d3c8dd8f | RHSA-2026:2470 |
| Red Hat Enterprise Linux | RHEL-8 | phps390x | Advisory build | 8.2.30-1.module+el8.10.0+23848+33d54484 | RHSA-2026:1412 |
| Red Hat Enterprise Linux | RHEL-8 | phpsrc | Advisory build | 7.4.19-4.module+el8.6.0+24049+97f8f81c.2 | RHSA-2026:4517 |
| Red Hat Enterprise Linux | RHEL-8 | phpsrc | Advisory build | 7.4.33-1.module+el8.8.0+24048+c1e4778e.1 | RHSA-2026:4514 |
| Red Hat Enterprise Linux | RHEL-8 | phpsrc | Advisory build | 7.4.33-3.module+el8.10.0+23902+d3c8dd8f | RHSA-2026:2470 |
| Red Hat Enterprise Linux | RHEL-8 | phpsrc | Advisory build | 7.4.6-5.module+el8.4.0+24050+df93a449.2 | RHSA-2026:4507 |
| Red Hat Enterprise Linux | RHEL-8 | phpsrc | Advisory build | 8.2.30-1.module+el8.10.0+23848+33d54484 | RHSA-2026:1412 |
| Red Hat Enterprise Linux | RHEL-8 | phpx86_64 | Advisory build | 7.4.19-4.module+el8.6.0+24049+97f8f81c.2 | RHSA-2026:4517 |
| Red Hat Enterprise Linux | RHEL-8 | phpx86_64 | Advisory build | 7.4.33-1.module+el8.8.0+24048+c1e4778e.1 | RHSA-2026:4514 |
| Red Hat Enterprise Linux | RHEL-8 | phpx86_64 | Advisory build | 7.4.33-3.module+el8.10.0+23902+d3c8dd8f | RHSA-2026:2470 |
| Red Hat Enterprise Linux | RHEL-8 | phpx86_64 | Advisory build | 7.4.6-5.module+el8.4.0+24050+df93a449.2 | RHSA-2026:4507 |
| Red Hat Enterprise Linux | RHEL-8 | phpx86_64 | Advisory build | 8.2.30-1.module+el8.10.0+23848+33d54484 | RHSA-2026:1412 |
| Red Hat Enterprise Linux | RHEL-9 | phpaarch64 | Advisory build | 8.0.13-2.el9_0.1 | RHSA-2026:4212 |
| Red Hat Enterprise Linux | RHEL-9 | phpaarch64 | Advisory build | 8.0.30-1.el9_2.1 | RHSA-2026:4266 |
| Red Hat Enterprise Linux | RHEL-9 | phpaarch64 | Advisory build | 8.0.30-1.el9_4.1 | RHSA-2026:4077 |
| Red Hat Enterprise Linux | RHEL-9 | phpaarch64 | Advisory build | 8.0.30-3.el9_6.1 | RHSA-2026:4086 |
| Red Hat Enterprise Linux | RHEL-9 | phpaarch64 | Advisory build | 8.0.30-5.el9_7 | RHSA-2026:2799 |
| Red Hat Enterprise Linux | RHEL-9 | phpaarch64 | Advisory build | 8.2.13-1.module+el9.4.0+23893+7c48bdfc.2 | RHSA-2026:1169 |
| Red Hat Enterprise Linux | RHEL-9 | phpaarch64 | Advisory build | 8.2.28-1.module+el9.6.0+23892+f0eec4a0.2 | RHSA-2026:1187 |
| Red Hat Enterprise Linux | RHEL-9 | phpaarch64 | Advisory build | 8.2.30-1.module+el9.7.0+23849+7b831f17 | RHSA-2026:1409 |
| Red Hat Enterprise Linux | RHEL-9 | phpaarch64 | Advisory build | 8.3.19-1.module+el9.6.0+23891+2c64b922.2 | RHSA-2026:1190 |
| Red Hat Enterprise Linux | RHEL-9 | phpaarch64 | Advisory build | 8.3.29-1.module+el9.7.0+23852+76de6b03 | RHSA-2026:1429 |
| Red Hat Enterprise Linux | RHEL-9 | phpppc64le | Advisory build | 8.0.13-2.el9_0.1 | RHSA-2026:4212 |
| Red Hat Enterprise Linux | RHEL-9 | phpppc64le | Advisory build | 8.0.30-1.el9_2.1 | RHSA-2026:4266 |
| Red Hat Enterprise Linux | RHEL-9 | phpppc64le | Advisory build | 8.0.30-1.el9_4.1 | RHSA-2026:4077 |
| Red Hat Enterprise Linux | RHEL-9 | phpppc64le | Advisory build | 8.0.30-3.el9_6.1 | RHSA-2026:4086 |
| Red Hat Enterprise Linux | RHEL-9 | phpppc64le | Advisory build | 8.0.30-5.el9_7 | RHSA-2026:2799 |
| Red Hat Enterprise Linux | RHEL-9 | phpppc64le | Advisory build | 8.2.13-1.module+el9.4.0+23893+7c48bdfc.2 | RHSA-2026:1169 |
| Red Hat Enterprise Linux | RHEL-9 | phpppc64le | Advisory build | 8.2.28-1.module+el9.6.0+23892+f0eec4a0.2 | RHSA-2026:1187 |
| Red Hat Enterprise Linux | RHEL-9 | phpppc64le | Advisory build | 8.2.30-1.module+el9.7.0+23849+7b831f17 | RHSA-2026:1409 |
| Red Hat Enterprise Linux | RHEL-9 | phpppc64le | Advisory build | 8.3.19-1.module+el9.6.0+23891+2c64b922.2 | RHSA-2026:1190 |
| Red Hat Enterprise Linux | RHEL-9 | phpppc64le | Advisory build | 8.3.29-1.module+el9.7.0+23852+76de6b03 | RHSA-2026:1429 |
| Red Hat Enterprise Linux | RHEL-9 | phps390x | Advisory build | 8.0.13-2.el9_0.1 | RHSA-2026:4212 |
| Red Hat Enterprise Linux | RHEL-9 | phps390x | Advisory build | 8.0.30-1.el9_2.1 | RHSA-2026:4266 |
| Red Hat Enterprise Linux | RHEL-9 | phps390x | Advisory build | 8.0.30-1.el9_4.1 | RHSA-2026:4077 |
| Red Hat Enterprise Linux | RHEL-9 | phps390x | Advisory build | 8.0.30-3.el9_6.1 | RHSA-2026:4086 |
| Red Hat Enterprise Linux | RHEL-9 | phps390x | Advisory build | 8.0.30-5.el9_7 | RHSA-2026:2799 |
| Red Hat Enterprise Linux | RHEL-9 | phps390x | Advisory build | 8.2.13-1.module+el9.4.0+23893+7c48bdfc.2 | RHSA-2026:1169 |
| Red Hat Enterprise Linux | RHEL-9 | phps390x | Advisory build | 8.2.28-1.module+el9.6.0+23892+f0eec4a0.2 | RHSA-2026:1187 |
| Red Hat Enterprise Linux | RHEL-9 | phps390x | Advisory build | 8.2.30-1.module+el9.7.0+23849+7b831f17 | RHSA-2026:1409 |
| Red Hat Enterprise Linux | RHEL-9 | phps390x | Advisory build | 8.3.19-1.module+el9.6.0+23891+2c64b922.2 | RHSA-2026:1190 |
| Red Hat Enterprise Linux | RHEL-9 | phps390x | Advisory build | 8.3.29-1.module+el9.7.0+23852+76de6b03 | RHSA-2026:1429 |
| Red Hat Enterprise Linux | RHEL-9 | phpsrc | Advisory build | 8.0.13-2.el9_0.1 | RHSA-2026:4212 |
| Red Hat Enterprise Linux | RHEL-9 | phpsrc | Advisory build | 8.0.30-1.el9_2.1 | RHSA-2026:4266 |
| Red Hat Enterprise Linux | RHEL-9 | phpsrc | Advisory build | 8.0.30-1.el9_4.1 | RHSA-2026:4077 |
| Red Hat Enterprise Linux | RHEL-9 | phpsrc | Advisory build | 8.0.30-3.el9_6.1 | RHSA-2026:4086 |
| Red Hat Enterprise Linux | RHEL-9 | phpsrc | Advisory build | 8.0.30-5.el9_7 | RHSA-2026:2799 |
| Red Hat Enterprise Linux | RHEL-9 | phpsrc | Advisory build | 8.2.13-1.module+el9.4.0+23893+7c48bdfc.2 | RHSA-2026:1169 |
| Red Hat Enterprise Linux | RHEL-9 | phpsrc | Advisory build | 8.2.28-1.module+el9.6.0+23892+f0eec4a0.2 | RHSA-2026:1187 |
| Red Hat Enterprise Linux | RHEL-9 | phpsrc | Advisory build | 8.2.30-1.module+el9.7.0+23849+7b831f17 | RHSA-2026:1409 |
| Red Hat Enterprise Linux | RHEL-9 | phpsrc | Advisory build | 8.3.19-1.module+el9.6.0+23891+2c64b922.2 | RHSA-2026:1190 |
| Red Hat Enterprise Linux | RHEL-9 | phpsrc | Advisory build | 8.3.29-1.module+el9.7.0+23852+76de6b03 | RHSA-2026:1429 |
| Red Hat Enterprise Linux | RHEL-9 | phpx86_64 | Advisory build | 8.0.13-2.el9_0.1 | RHSA-2026:4212 |
| Red Hat Enterprise Linux | RHEL-9 | phpx86_64 | Advisory build | 8.0.30-1.el9_2.1 | RHSA-2026:4266 |
| Red Hat Enterprise Linux | RHEL-9 | phpx86_64 | Advisory build | 8.0.30-1.el9_4.1 | RHSA-2026:4077 |
| Red Hat Enterprise Linux | RHEL-9 | phpx86_64 | Advisory build | 8.0.30-3.el9_6.1 | RHSA-2026:4086 |
| Red Hat Enterprise Linux | RHEL-9 | phpx86_64 | Advisory build | 8.0.30-5.el9_7 | RHSA-2026:2799 |
| Red Hat Enterprise Linux | RHEL-9 | phpx86_64 | Advisory build | 8.2.13-1.module+el9.4.0+23893+7c48bdfc.2 | RHSA-2026:1169 |
| Red Hat Enterprise Linux | RHEL-9 | phpx86_64 | Advisory build | 8.2.28-1.module+el9.6.0+23892+f0eec4a0.2 | RHSA-2026:1187 |
| Red Hat Enterprise Linux | RHEL-9 | phpx86_64 | Advisory build | 8.2.30-1.module+el9.7.0+23849+7b831f17 | RHSA-2026:1409 |
| Red Hat Enterprise Linux | RHEL-9 | phpx86_64 | Advisory build | 8.3.19-1.module+el9.6.0+23891+2c64b922.2 | RHSA-2026:1190 |
| Red Hat Enterprise Linux | RHEL-9 | phpx86_64 | Advisory build | 8.3.29-1.module+el9.7.0+23852+76de6b03 | RHSA-2026:1429 |
| AlmaLinux | 10 | php-bcmath | Advisory build | 8.3.29-1.el10_1 | ALSA-2026:1628 |
| AlmaLinux | 10 | php-cli | Advisory build | 8.3.29-1.el10_1 | ALSA-2026:1628 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- php · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| PHP Group | PHP | 8.1.* to < 8.1.34 (affected · semver)8.2.* to < 8.2.30 (affected · semver)8.3.* to < 8.3.29 (affected · semver)8.4.* to < 8.4.16 (affected · semver)8.5.* to < 8.5.1 (affected · semver)Default: affected | php · cna |
Weaknesses
2- CWE-787 CWE-787 Out-of-bounds Write
- CWE-190 CWE-190 Integer Overflow or Wraparound
References
2Provider assertions
3php · cna
Heap buffer overflow in array_merge()
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 64b0327ff911a9e4c30474a7912d365ffd795fd856598906a0d2f4487d42e474
- Ingested
- 23 Sep 2026, 08:37:44 UTC
- Source record
- Official CVE record