Skip to main content
EPSS 0.5%top 61%

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

0
High
Published: 01/08/2026 (01/08/2026, 11:48:32 UTC)
Source: GCVE Database
Product: php

Description

A heap buffer overflow vulnerability exists in the PHP array_merge() function in versions prior to 8.1.34, 8.2.30, 8.3.29, 8.4.16, and 8.5.1. The flaw arises when the total element count of packed arrays exceeds 32-bit limits or HT_MAX_SIZE due to an integer overflow in element count precomputation. This can cause memory corruption or crashes, impacting server integrity and availability. Red Hat has released security updates addressing this issue in their PHP packages for Red Hat Enterprise Linux 9.6 Extended Update Support.

Affected software

Affected versions
<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

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/08/2026, 15:17:05 UTC

Technical Analysis

CVE-2025-14178 is a heap-based buffer overflow vulnerability in PHP's array_merge() function. It occurs when the total element count of packed arrays exceeds 32-bit integer limits or HT_MAX_SIZE, triggering an integer overflow during the precomputation of element counts via zend_hash_num_elements(). This vulnerability can lead to memory corruption or application crashes, affecting the integrity and availability of the affected system. The issue affects 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, and 8.5.* before 8.5.1. Red Hat Product Security has issued an official security advisory (RHSA-2026:1187) with patches for Red Hat Enterprise Linux 9.6 Extended Update Support. No known exploits in the wild have been reported at this time.

Potential Impact

Successful exploitation of this vulnerability may result in memory corruption or crashes of the PHP process, potentially leading to denial of service and impacting the integrity and availability of the target server. There is no indication of remote code execution or data disclosure from the provided information. The severity is rated as high by the source, reflecting the potential for service disruption.

Mitigation Recommendations

An official security update addressing this vulnerability is available from Red Hat as part of the php:8.2 module update for Red Hat Enterprise Linux 9.6 Extended Update Support. Users should apply the vendor-provided patches promptly to remediate the issue. For detailed update instructions, refer to the Red Hat advisory RHSA-2026:1187 and the linked article https://access.redhat.com/articles/11258. No additional mitigations are specified or required beyond applying the official fix.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Csaf Category
csaf_security_advisory
Csaf Version
2.0
Publisher
Red Hat Product Security
Advisory Id
RHSA-2026:1187
Cve Count
2
Additional Cves
["CVE-2025-14180"]

Threat ID: 6a248d78e29bf47b50d657a5

Added to database: 06/06/2026, 21:13:28 UTC

Last enriched: 09/08/2026, 15:17:05 UTC

Last updated: 09/10/2026, 19:36:49 UTC

Views: 108

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses