Back to CVE records
Medium 6.5Published Dec 27, 2025

CVE-2025-14178Heap buffer overflow in array_merge()

Updated under an hour ago ()

Does this affect you?

It affects PHP Group PHP and 1 other product. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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
6.5 MEDIUM (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
Weakness (CWE)
CWE-787, CWE-190
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
php
NVD analysis
Modified
Record last updated
Jan 24, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
PHP Group PHP
php_group:php (from the name)
from 8.1.* before 8.1.34; from 8.2.* before 8.2.30; from 8.3.* before 8.3.29; from 8.4.* before 8.4.16; from 8.5.* before 8.5.1
CNA record
php php
php:php
from 8.1.0 before 8.1.34; from 8.2.0 before 8.2.30; from 8.3.0 before 8.3.29; from 8.4.0 before 8.4.16; from 8.5.0 before 8.5.1
NVD

References

References

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.