CVE-2025-14178

MEDIUM
Published Dec 27, 2025 Modified Jan 24, 2026 CWE-190 CWE-787

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 v3.1 Score

6.5
MEDIUM
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H

Weakness Type (CWE)

CWE-190 Integer Overflow
CWE-787 Out-of-bounds Write

Affected Products

Vendor Product
php php
php php
php php
php php
php php

References

Frequently Asked Questions

What is CVE-2025-14178? +
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. It has a CVSS v3.1 base score of 6.5 (MEDIUM).
How severe is CVE-2025-14178? +
CVE-2025-14178 has a CVSS v3.1 score of 6.5 out of 10, rated MEDIUM. This is a medium-severity vulnerability that should be remediated as part of regular maintenance.
What products are affected by CVE-2025-14178? +
CVE-2025-14178 affects products from php, specifically: php. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2025-14178? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2025-14178 — free, no signup required.

Start Free Scan