CVE-2025-14178: Heap buffer overflow in array_merge()
Vulnerability summary
CVE-2025-14178 is a high (CVSS 8.2) Integer Overflow or Wraparound vulnerability in php group php. EPSS estimates a 0.49% chance of exploitation in the next 30 days, higher than 43.6% of scored vulnerabilities.
Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 20 · Related 6Timeline
- 27-12-2025PublishedVulnerability first disclosed.
- 24-01-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 6 sources · 1 version- CVE.orgCNA6.5MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:HDiffers
- OSV · Red hatEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:HDiffers
- OSV · UbuntuEcosystem advisory · calculated8.2HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
- OSV · DebianEcosystem advisory · calculated8.2HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
- OSV · AlpineEcosystem advisory · calculated8.2HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
EPSS trend
Probability
0.49%
Chance of exploitation in the next 30 days
Percentile
44%
Versus all other CVEs
30-day change
Increase +0.03 pp
From 0.46% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-190Integer Overflow or WraparoundThe product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
- CWE-787Out-of-bounds WriteThe product writes data past the end, or before the beginning, of the intended buffer.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Redhat75 products
- apcu-panel< 0:5.1.18-1.module+el8.3.0+6678+b09f589e
- libzip< 0:1.6.1-1.module+el8.3.0+6678+b09f589e
- libzip-debuginfo< 0:1.6.1-1.module+el8.3.0+6678+b09f589e
- libzip-debugsource< 0:1.6.1-1.module+el8.3.0+6678+b09f589e
- libzip-devel< 0:1.6.1-1.module+el8.3.0+6678+b09f589e
Suse40 products
- apache2-mod_php7&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS< 7.4.33-150400.4.55.1
- apache2-mod_php7&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS< 7.4.33-150400.4.55.1
- apache2-mod_php7&distro=SUSE Linux Enterprise Module for Legacy 15 SP7< 7.4.33-150400.4.55.1
- apache2-mod_php7&distro=SUSE Linux Enterprise Module for Package Hub 15 SP7< 7.4.33-150400.4.55.1
- apache2-mod_php7&distro=SUSE Linux Enterprise Server 15 SP4-LTSS< 7.4.33-150400.4.55.1
Opensuse6 products
- apache2-mod_php7&distro=openSUSE Leap 15.6< 7.4.33-150400.4.55.1
- php7-embed&distro=openSUSE Leap 15.6< 7.4.33-150400.4.55.1
- php7-fastcgi&distro=openSUSE Leap 15.6< 7.4.33-150400.4.55.1
- php7-fpm&distro=openSUSE Leap 15.6< 7.4.33-150400.4.55.1
- php7-test&distro=openSUSE Leap 15.6< 7.4.33-150400.4.55.1
Alpine5 products
- php81< 8.1.34-r0
- php82< 8.2.30-r0
- php83< 8.3.29-r0
- php84< 8.4.16-r0
- php85< 8.5.1-r0
Ubuntu5 products
- php7.2< 7.2.24-0ubuntu0.18.04.17+esm12
- php7.4< 7.4.3-4ubuntu2.29+esm3
- php8.1< 8.1.2-1ubuntu2.23
- php8.3< 8.3.6-0ubuntu0.24.04.6
- php8.4< 8.4.11-1ubuntu1.1
Debian3 products
- php7.4< 7.4.33-1+deb11u10
- php8.2< 8.2.30-1~deb12u1
- php8.4< 8.4.16-1~deb13u1 | < 8.4.16-1
Php1 product
- 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
Php group1 product
- 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
8 vendors · 136 products