CVE-2025-14178
A public proof of concept exists; no exploitation attested.
- Published2025-12-27
- Fixed in8.5.1 · 8.4.16 · 8.3.29 · 8.2.30 · 8.1.34
- WeaknessCWE-190 · CWE-787
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2025-12-2720:15CVE publishedNVD
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 8.5 | ≥ 8.5.0, < 8.5.1 | 8.5.1 | NVD · OSV |
| 8.4 | ≥ 8.4.0, < 8.4.16 | 8.4.16 | NVD · OSV |
| 8.3 | ≥ 8.3.0, < 8.3.29 | 8.3.29 | NVD · OSV |
| 8.2 | ≥ 8.2.0, < 8.2.30 | 8.2.30 | NVD · OSV |
| 8.1 | ≥ 8.1.0, < 8.1.34 | 8.1.34 | NVD |
| 8.1 | < 8.1.34 | 8.1.34 | OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As php, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- PHP Group PHPother versions: affected
package php
Affected- ≥ 8.1.*, < 8.1.34fixed in 8.1.34semver
- ≥ 8.2.*, < 8.2.30fixed in 8.2.30semver
- ≥ 8.3.*, < 8.3.29fixed in 8.3.29semver
- ≥ 8.4.*, < 8.4.16fixed in 8.4.16semver
- ≥ 8.5.*, < 8.5.1fixed in 8.5.1semver
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2025-12-27
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- libzipRocky Linux:8all versions · fixed in 0:1.7.3-1.module+el8.10.0+1596+477f03f8
- libzipRocky Linux:8all versions · fixed in 0:1.7.3-1.module+el8.10.0+1605+02e07af7
- libzipRocky Linux:8all versions · fixed in 0:1.7.3-1.module+el8.10.0+1911+f499711e
- libzipRocky Linux:8all versions · fixed in 0:1.6.1-1.module+el8.10.0+1912+72767185
- libzipAlmaLinux:8all versions · fixed in 1.6.1-1.module_el8.10.0+3935+28808425and 2 other packages
- libzipAlmaLinux:8all versions · fixed in 1.6.1-1.module_el8.6.0+2750+78feabcband 1 other package
- libzipAlmaLinux:8all versions · fixed in 1.6.1-1.module_el8.6.0+3239+bedf0508and 2 other packages
- libzipAlmaLinux:8all versions · fixed in 1.7.3-1.module_el8.10.0+3796+30ed3ef7and 2 other packages
109 more package ranges on OSV.dev
Vendor advisories
php: heap-based buffer overflow in array_merge()
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
Red Hat Security Advisory: php:7.4 security update
Red Hat Security Advisory: php:7.4 security update
Red Hat Security Advisory: php:7.4 security update
Red Hat Security Advisory: php security update
13 more advisories
Fix
- Update PHP to 8.5.1 · 8.4.16 · 8.3.29 · 8.2.30 · 8.1.34
- Vendor fix Red Hat Product Security RHSA-2026:7614 · 57 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://images.redhat.com/
- Vendor fix Red Hat Product Security RHSA-2026:4517 · 465 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- Workaround from the vendor Red Hat Product Security RHSA-2026:7614 · 57 productsMitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
Advisories and patches
- github.comVendor Advisory
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- CISA-ADP (SSVC)PoC stated2025-12-29
- PoC-in-GitHubno public repository identifiedread 2026-11-17
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionpoc2025-12-29
- CNACVSS 3.16.5known since 2026-10-23
- NVDCVSS 3.18.2read 2026-10-23
- CNAweakness (CWE)CWE-190, CWE-787known since 2026-10-23
- NVDweakness (CWE)CWE-190read 2026-10-23
- FIRST EPSSEPSS score0.5 %2026-11-16
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- AZL-73198same flawAzure Linux · MIT
- AZL-73237same flawAzure Linux · MIT
- BIT-libphp-2025-14178same flawBitnami · Apache-2.0
- BIT-php-2025-14178same flawBitnami · Apache-2.0
- BIT-php-min-2025-14178same flawBitnami · Apache-2.0
- EUVD-2025-205485same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-h96m-rvf9-jgm2same flawGitHub Advisory Database · CC-BY-4.0
- MINI-hgcc-8xq5-fv7psame flawMinimOS · LicenseRef-unstated
- MINI-hwj3-pm52-2g5psame flawMinimOS · LicenseRef-unstated
- MINI-jqc3-4vqx-5ff2same flawMinimOS · LicenseRef-unstated
- MINI-mx9r-j394-fpm4same flawMinimOS · LicenseRef-unstated
- MINI-xhxg-mr47-5v7msame flawMinimOS · LicenseRef-unstated
- ALSA-2026:1409advisory covering several CVEsAlmaLinux · MIT
- ALSA-2026:1412advisory covering several CVEsAlmaLinux · MIT
- ALSA-2026:1429advisory covering several CVEsAlmaLinux · MIT
- ALSA-2026:1628advisory covering several CVEsAlmaLinux · MIT
- ALSA-2026:2470advisory covering several CVEsAlmaLinux · MIT
- ALSA-2026:2799advisory covering several CVEsAlmaLinux · MIT
- DLA-4447-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-6088-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-6154-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2025-0330advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2026-1020advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2026-1021advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2026-1022advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2026-1023advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2026-1024advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2026-1025advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2026-1026advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2025:15837-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2026:20113-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2026:1169advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:1185advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:1187advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:1190advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:1409advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:1412advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:1429advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:1628advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:2470advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:2799advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:4077advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:4086advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:4212advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:4266advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:4507advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:4514advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:4517advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:7614advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2026:1409advisory covering several CVEsRocky Linux · BSD-3-Clause
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
- Published
- 2025-12-27
- Last Modified
- 2026-10-13
- NVD status
- Modified
- GitHub Advisory
- GHSA-h96m-rvf9-jgm2
Frequently asked questions
What is CVE-2025-14178?
Is CVE-2025-14178 actively exploited?
What is the CVSS score for CVE-2025-14178?
Running PHP? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-h96m-rvf9-jgm2
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0