Out-of-bounds Write Affecting php package, versions [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)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.46% (39th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Out-of-bounds Write vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-PHP-14755012
  • published31 Dec 2025
  • disclosed27 Dec 2025
  • creditNiels Dossche

Introduced: 27 Dec 2025

CVE-2025-14178  (opens in a new tab)
CWE-190  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade php to version 8.1.34, 8.2.30, 8.3.29, 8.4.16, 8.5.1 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Write in the array_merge function when processing arrays with a total element count exceeding the 32-bit integer limit or the internal HT_MAX_SIZE constant, due to an integer overflow in the precomputation of element counts using the zend_hash_num_elements function. An attacker can cause memory corruption or crash the process by supplying specially crafted arrays with an excessive number of elements. This is only exploitable if the attacker can provide arrays large enough to bypass memory limits and trigger the overflow condition.

CVSS Base Scores

version 4.0
version 3.1