CVE-2025-14178 Heap buffer overflow in array_merge()
HighCVSS 8.2
EPSS 0.46%
PoC
- Published
- Updated
- Exploit status
- Proof-of-concept only
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- PHPUbuntuDebianRed Hat
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.
Upgrade path
40 packages: 25 fixed, 15 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| PHP(Azure Linux 3.0) | All versions | No fix listed | No fix yet |
| redhat/php:7.4-8040020260303010445.d7c09045(Red Hat rhel_aus 8.4) | All versions | No fix listed | No fix yet |
| redhat/php:7.4-8040020260303010445.d7c09045(Red Hat rhel_eus_long_life 8.4) | All versions | No fix listed | No fix yet |
| redhat/php:7.4-8060020260303005945.5caa48ff(Red Hat rhel_aus 8.6) | All versions | No fix listed | No fix yet |
| redhat/php:7.4-8060020260303005945.5caa48ff(Red Hat rhel_e4s 8.6) | All versions | No fix listed | No fix yet |
| redhat/php:7.4-8060020260303005945.5caa48ff(Red Hat rhel_tus 8.6) | All versions | No fix listed | No fix yet |
| redhat/php:7.4-8080020260303005237.0b4eb31d(Red Hat rhel_e4s 8.8) | All versions | No fix listed | No fix yet |
| redhat/php:7.4-8080020260303005237.0b4eb31d(Red Hat rhel_tus 8.8) | All versions | No fix listed | No fix yet |
| redhat/php:7.4-8100020260119075152.f7998665(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/php:8.2-8100020260106091451.f7998665(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/php:8.2-9040020260116191026.9(Red Hat rhel_eus 9.4) | All versions | No fix listed | No fix yet |
| redhat/php:8.2-9060020260116185805.9(Red Hat rhel_eus 9.6) | All versions | No fix listed | No fix yet |
| redhat/php:8.2-9070020260107073439.9(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| redhat/php:8.3-9060020260116180534.9(Red Hat rhel_eus 9.6) | All versions | No fix listed | No fix yet |
| redhat/php:8.3-9070020260108073701.9(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| alpine/php81(Alpine v3.19) | < 8.1.34-r0 | 8.1.34-r0 | Fixed |
| alpine/php82(Alpine v3.22) | < 8.2.30-r0 | 8.2.30-r0 | Fixed |
| alpine/php83(Alpine v3.22) | < 8.3.29-r0 | 8.3.29-r0 | Fixed |
| alpine/php83(Alpine v3.23) | < 8.3.29-r0 | 8.3.29-r0 | Fixed |
| alpine/php83(Alpine v3.24) | < 8.3.29-r0 | 8.3.29-r0 | Fixed |
| alpine/php84(Alpine v3.22) | < 8.4.16-r0 | 8.4.16-r0 | Fixed |
| alpine/php84(Alpine v3.23) | < 8.4.16-r0 | 8.4.16-r0 | Fixed |
| alpine/php84(Alpine v3.24) | < 8.4.16-r0 | 8.4.16-r0 | Fixed |
| alpine/php85(Alpine v3.23) | < 8.5.1-r0 | 8.5.1-r0 | Fixed |
| alpine/php85(Alpine v3.24) | < 8.5.1-r0 | 8.5.1-r0 | Fixed |
| debian/php8.2(Debian 12) | < 8.2.30-1~deb12u1; = 8.2.5-2; = 8.2.7-1; = 8.2.7-1.1 +22 more | 8.2.30-1~deb12u1 | Fixed |
| debian/php8.4(Debian 13) | < 8.4.16-1~deb13u1; = 8.4.11-1 | 8.4.16-1~deb13u1 | Fixed |
| debian/php8.4(Debian 14) | < 8.4.16-1; = 8.4.11-1; = 8.4.16-1~deb13u1 | 8.4.16-1 | Fixed |
| PHP | < 8.1.34; < 8.2.30; < 8.3.29; < 8.4.16 +6 more | 8.1.34, 8.2.30, 8.3.29, 8.4.16, 8.5.1 | Fixed |
| PHP(CBL-Mariner 2.0) | < 8.1.34-1 | 8.1.34-1 | Fixed |
… and 10 more packages.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| PHP(Azure Linux:3.0) | All versions | No fix listed |
| PHP(CBL-Mariner:2.0) | < 8.1.34-1 | 8.1.34-1 |
| debian/php8.2(Debian:12) | < 8.2.30-1~deb12u1 | 8.2.30-1~deb12u1 |
| debian/php8.2(Debian:12) | = 8.2.10-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.10-2 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.12-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.16-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.16-2 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.17-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.18-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.18-1~deb12u1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.20-1~deb12u1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.20-2 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.20-3 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.21-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.23-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.24-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.24-1~deb12u1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.26-1~deb12u1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.26-4 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.27-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.28-1~deb12u1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.29-1~deb12u1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.5-2 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.7-1 | No fix listed |
Show 52 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/php8.2(Debian:12) | = 8.2.7-1.1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.7-1.2 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.7-1~deb12u1 | No fix listed |
| debian/php8.4(Debian:13) | < 8.4.16-1~deb13u1 | 8.4.16-1~deb13u1 |
| debian/php8.4(Debian:13) | = 8.4.11-1 | No fix listed |
| debian/php8.4(Debian:14) | < 8.4.16-1 | 8.4.16-1 |
| debian/php8.4(Debian:14) | = 8.4.11-1 | No fix listed |
| debian/php8.4(Debian:14) | = 8.4.16-1~deb13u1 | No fix listed |
| PHP | < 8.1.34 | 8.1.34 |
| PHP | < 8.2.30 | 8.2.30 |
| PHP | < 8.3.29 | 8.3.29 |
| PHP | < 8.4.16 | 8.4.16 |
| PHP | < 8.5.1 | 8.5.1 |
| ubuntu/php8.1(Ubuntu:22.04) | < 8.1.2-1ubuntu2.23 | 8.1.2-1ubuntu2.23 |
| redhat/php(Red Hat:enterprise_linux:10.1) | < 8.3.29-1.el10_1 | 8.3.29-1.el10_1 |
| redhat/php(Red Hat:enterprise_linux_eus:10.0) | < 8.3.19-1.el10_0.1 | 8.3.19-1.el10_0.1 |
| redhat/php:8.2-8100020260106091451.f7998665(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/php:7.4-8100020260119075152.f7998665(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/php:7.4-8040020260303010445.d7c09045(Red Hat:rhel_aus:8.4) | All versions | No fix listed |
| redhat/php:7.4-8040020260303010445.d7c09045(Red Hat:rhel_eus_long_life:8.4) | All versions | No fix listed |
| redhat/php:7.4-8060020260303005945.5caa48ff(Red Hat:rhel_aus:8.6) | All versions | No fix listed |
| redhat/php:7.4-8060020260303005945.5caa48ff(Red Hat:rhel_tus:8.6) | All versions | No fix listed |
| redhat/php:7.4-8060020260303005945.5caa48ff(Red Hat:rhel_e4s:8.6) | All versions | No fix listed |
| redhat/php:7.4-8080020260303005237.0b4eb31d(Red Hat:rhel_tus:8.8) | All versions | No fix listed |
| redhat/php:7.4-8080020260303005237.0b4eb31d(Red Hat:rhel_e4s:8.8) | All versions | No fix listed |
| redhat/php:8.2-9070020260107073439.9(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/php:8.3-9070020260108073701.9(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/php(Red Hat:enterprise_linux:9) | < 8.0.30-5.el9_7 | 8.0.30-5.el9_7 |
| redhat/php(Red Hat:rhel_e4s:9.0) | < 8.0.13-2.el9_0.1 | 8.0.13-2.el9_0.1 |
| redhat/php(Red Hat:rhel_e4s:9.2) | < 8.0.30-1.el9_2.1 | 8.0.30-1.el9_2.1 |
| redhat/php:8.2-9040020260116191026.9(Red Hat:rhel_eus:9.4) | All versions | No fix listed |
| redhat/php(Red Hat:rhel_eus:9.4) | < 8.0.30-1.el9_4.1 | 8.0.30-1.el9_4.1 |
| redhat/php:8.2-9060020260116185805.9(Red Hat:rhel_eus:9.6) | All versions | No fix listed |
| redhat/php:8.3-9060020260116180534.9(Red Hat:rhel_eus:9.6) | All versions | No fix listed |
| redhat/php(Red Hat:rhel_eus:9.6) | < 8.0.30-3.el9_6.1 | 8.0.30-3.el9_6.1 |
| redhat/php-main(Red Hat:hummingbird:1) | < 8.5.5-1.1.hum1 | 8.5.5-1.1.hum1 |
| alpine/php81(Alpine:v3.19) | < 8.1.34-r0 | 8.1.34-r0 |
| alpine/php82(Alpine:v3.22) | < 8.2.30-r0 | 8.2.30-r0 |
| alpine/php83(Alpine:v3.22) | < 8.3.29-r0 | 8.3.29-r0 |
| alpine/php83(Alpine:v3.23) | < 8.3.29-r0 | 8.3.29-r0 |
| alpine/php83(Alpine:v3.24) | < 8.3.29-r0 | 8.3.29-r0 |
| alpine/php84(Alpine:v3.22) | < 8.4.16-r0 | 8.4.16-r0 |
| alpine/php84(Alpine:v3.23) | < 8.4.16-r0 | 8.4.16-r0 |
| alpine/php84(Alpine:v3.24) | < 8.4.16-r0 | 8.4.16-r0 |
| alpine/php85(Alpine:v3.23) | < 8.5.1-r0 | 8.5.1-r0 |
| alpine/php85(Alpine:v3.24) | < 8.5.1-r0 | 8.5.1-r0 |
| ubuntu/php8.3(Ubuntu:24.04) | < 8.3.6-0ubuntu0.24.04.6 | 8.3.6-0ubuntu0.24.04.6 |
| PHP | >= 8.1.0, < 8.1.34 | 8.1.34 |
| PHP | >= 8.2.0, < 8.2.30 | 8.2.30 |
| PHP | >= 8.3.0, < 8.3.29 | 8.3.29 |
| PHP | >= 8.4.0, < 8.4.16 | 8.4.16 |
| PHP | >= 8.5.0, < 8.5.1 | 8.5.1 |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Debian Security Tracker CVE-2025-14178 vendor-advisory
- github.com vendor-advisory
- lists.debian.org
- Ubuntu CVE tracker vendor-advisory
- USN-7953-1 vendor-advisory
- www.cve.org
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:1628 patch vendor-advisory
- RHSA-2026:1185 patch vendor-advisory
- RHSA-2026:1412 patch vendor-advisory
- RHSA-2026:2470 patch vendor-advisory
- RHSA-2026:4507 patch vendor-advisory
- RHSA-2026:4517 patch vendor-advisory
- RHSA-2026:4514 patch vendor-advisory
- RHSA-2026:1409 patch vendor-advisory
- RHSA-2026:1429 patch vendor-advisory
- RHSA-2026:2799 patch vendor-advisory
- RHSA-2026:4212 patch vendor-advisory
- RHSA-2026:4266 patch vendor-advisory
- RHSA-2026:1169 patch vendor-advisory
- RHSA-2026:4077 patch vendor-advisory
- RHSA-2026:1187 patch vendor-advisory
- RHSA-2026:1190 patch vendor-advisory
- RHSA-2026:4086 patch vendor-advisory
- RHSA-2026:7614 patch vendor-advisory
- Red Hat Bugzilla 2425625 issue-tracking
- nvd.nist.gov
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking