{"answers":{"affected":"3 open source packages ship an affected version, including libphp, php and php-min. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-14178 exists.","fix":"Upgrade libphp to a fixed version for your release line: 8.1.34, 8.2.30, 8.3.29 or 8.4.16.","what":"CVE-2025-14178 is a medium-severity vulnerability in Php Php, published on 27 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-14178 and fix it if it is affected.\n\nWhat it is: CVE-2025-14178 is a medium-severity vulnerability in Php Php, published on 27 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-14178 exists.\n\nAffected packages and fixed versions:\n- libphp (Bitnami): affected all versions; fixed in 8.1.34, 8.2.30, 8.3.29, 8.4.16, 8.5.1\n- php (Bitnami): affected all versions; fixed in 8.1.34, 8.2.30, 8.3.29, 8.4.16, 8.5.1\n- php-min (Bitnami): affected all versions; fixed in 8.1.34, 8.2.30, 8.3.29, 8.4.16, 8.5.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-14178/ (Markdown: https://insights.sbomify.com/CVE-2025-14178/index.md)","id":"CVE-2025-14178","markdown":"https://insights.sbomify.com/CVE-2025-14178/index.md","name":"CVE-2025-14178","record":{"aliases":["AZL-73198","AZL-73237","BELL-CVE-2025-14178","BIT-libphp-2025-14178","BIT-php-2025-14178","BIT-php-min-2025-14178","CLSA-2025-1766599216","CLSA-2025-1766599555","CLSA-2025-1767120767","CLSA-2026-1768299147","CLSA-2026-1768300005","CLSA-2026-1768580474","CLSA-2026-1769164237","CLSA-2026-1769164564","CLSA-2026-1769445556","DEBIAN-CVE-2025-14178","DLA-4447-1","ECHO-cb9e-7afb-1de8","GHSA-h96m-rvf9-jgm2","MINI-hgcc-8xq5-fv7p","MINI-hwj3-pm52-2g5p","MINI-jqc3-4vqx-5ff2","MINI-mx9r-j394-fpm4","MINI-xhxg-mr47-5v7m","RHSA-2026:4077","RHSA-2026:4086","RHSA-2026:4212","RHSA-2026:4266","RHSA-2026:4507","RHSA-2026:4514","RHSA-2026:4517","SUSE-SU-2026:0245-1","UBUNTU-CVE-2025-14178"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service","code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"PHP scripting language","requires_auth":"none","summary":"An integer overflow in PHP's array_merge function can cause heap buffer overflows, leading to crashes or potential code execution on affected servers.","user_interaction":"not_required","vuln_class":"integer_overflow"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"php","cpe":[{"product":"php","vendor":"php"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H","version":"3.1"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"},{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"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.","ecosystems":["Bitnami","Red Hat:rhel_aus:8.4::appstream","Red Hat:rhel_aus:8.6::appstream","Red Hat:rhel_e4s:8.6::appstream","Red Hat:rhel_e4s:8.8::appstream","Red Hat:rhel_e4s:9.0::appstream","Red Hat:rhel_e4s:9.2::appstream","Red Hat:rhel_eus:9.4::appstream","Red Hat:rhel_eus:9.6::appstream","Red Hat:rhel_eus_long_life:8.4::appstream","Red Hat:rhel_tus:8.6::appstream","Red Hat:rhel_tus:8.8::appstream","SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","SUSE:Linux Enterprise Module for Legacy 15 SP7","SUSE:Linux Enterprise Module for Package Hub 15 SP7","SUSE:Linux Enterprise Server 15 SP4-LTSS","SUSE:Linux Enterprise Server 15 SP5-LTSS","SUSE:Linux Enterprise Server 15 SP6-LTSS","SUSE:Linux Enterprise Server for SAP Applications 15 SP4","SUSE:Linux Enterprise Server for SAP Applications 15 SP5","SUSE:Linux Enterprise Server for SAP Applications 15 SP6","openSUSE:Leap 15.6"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Heap buffer overflow in array_merge()","id":"CVE-2025-14178","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"php:php","products":["php:php"],"type":"integer_overflow","year":"2025"},"n_packages":774,"n_references":1,"next":{"headline":"SQL injection in pdo_firebird via NUL bytes in quoted strings","id":"CVE-2025-14179"},"packages":[{"ecosystem":"Bitnami","fixed":["8.1.34","8.2.30","8.3.29","8.4.16","8.5.1"],"introduced":["0","8.2.0","8.3.0","8.4.0","8.5.0"],"last_affected":[],"package":"libphp","purl":"pkg:bitnami/libphp","source":"BIT-libphp-2025-14178"},{"ecosystem":"Bitnami","fixed":["8.1.34","8.2.30","8.3.29","8.4.16","8.5.1"],"introduced":["0","8.2.0","8.3.0","8.4.0","8.5.0"],"last_affected":[],"package":"php","purl":"pkg:bitnami/php","source":"BIT-php-2025-14178"},{"ecosystem":"Bitnami","fixed":["8.1.34","8.2.30","8.3.29","8.4.16","8.5.1"],"introduced":["0","8.2.0","8.3.0","8.4.0","8.5.0"],"last_affected":[],"package":"php-min","purl":"pkg:bitnami/php-min","source":"BIT-php-min-2025-14178"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:5.1.18-1.module+el8.3.0+6678+b09f589e"],"introduced":["0"],"last_affected":[],"package":"apcu-panel","purl":"pkg:rpm/redhat/apcu-panel","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:1.6.1-1.module+el8.3.0+6678+b09f589e"],"introduced":["0"],"last_affected":[],"package":"libzip","purl":"pkg:rpm/redhat/libzip","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:1.6.1-1.module+el8.3.0+6678+b09f589e"],"introduced":["0"],"last_affected":[],"package":"libzip-debuginfo","purl":"pkg:rpm/redhat/libzip-debuginfo","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:1.6.1-1.module+el8.3.0+6678+b09f589e"],"introduced":["0"],"last_affected":[],"package":"libzip-debugsource","purl":"pkg:rpm/redhat/libzip-debugsource","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:1.6.1-1.module+el8.3.0+6678+b09f589e"],"introduced":["0"],"last_affected":[],"package":"libzip-devel","purl":"pkg:rpm/redhat/libzip-devel","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:1.6.1-1.module+el8.3.0+6678+b09f589e"],"introduced":["0"],"last_affected":[],"package":"libzip-tools","purl":"pkg:rpm/redhat/libzip-tools","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:1.6.1-1.module+el8.3.0+6678+b09f589e"],"introduced":["0"],"last_affected":[],"package":"libzip-tools-debuginfo","purl":"pkg:rpm/redhat/libzip-tools-debuginfo","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+24050+df93a449.2"],"introduced":["0"],"last_affected":[],"package":"php","purl":"pkg:rpm/redhat/php","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+24050+df93a449.2"],"introduced":["0"],"last_affected":[],"package":"php-bcmath","purl":"pkg:rpm/redhat/php-bcmath","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+24050+df93a449.2"],"introduced":["0"],"last_affected":[],"package":"php-bcmath-debuginfo","purl":"pkg:rpm/redhat/php-bcmath-debuginfo","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+24050+df93a449.2"],"introduced":["0"],"last_affected":[],"package":"php-cli","purl":"pkg:rpm/redhat/php-cli","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+24050+df93a449.2"],"introduced":["0"],"last_affected":[],"package":"php-cli-debuginfo","purl":"pkg:rpm/redhat/php-cli-debuginfo","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+24050+df93a449.2"],"introduced":["0"],"last_affected":[],"package":"php-common","purl":"pkg:rpm/redhat/php-common","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+24050+df93a449.2"],"introduced":["0"],"last_affected":[],"package":"php-common-debuginfo","purl":"pkg:rpm/redhat/php-common-debuginfo","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+24050+df93a449.2"],"introduced":["0"],"last_affected":[],"package":"php-dba","purl":"pkg:rpm/redhat/php-dba","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+24050+df93a449.2"],"introduced":["0"],"last_affected":[],"package":"php-dba-debuginfo","purl":"pkg:rpm/redhat/php-dba-debuginfo","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+24050+df93a449.2"],"introduced":["0"],"last_affected":[],"package":"php-dbg","purl":"pkg:rpm/redhat/php-dbg","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+24050+df93a449.2"],"introduced":["0"],"last_affected":[],"package":"php-dbg-debuginfo","purl":"pkg:rpm/redhat/php-dbg-debuginfo","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+24050+df93a449.2"],"introduced":["0"],"last_affected":[],"package":"php-debuginfo","purl":"pkg:rpm/redhat/php-debuginfo","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+24050+df93a449.2"],"introduced":["0"],"last_affected":[],"package":"php-debugsource","purl":"pkg:rpm/redhat/php-debugsource","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+24050+df93a449.2"],"introduced":["0"],"last_affected":[],"package":"php-devel","purl":"pkg:rpm/redhat/php-devel","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+24050+df93a449.2"],"introduced":["0"],"last_affected":[],"package":"php-embedded","purl":"pkg:rpm/redhat/php-embedded","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+24050+df93a449.2"],"introduced":["0"],"last_affected":[],"package":"php-embedded-debuginfo","purl":"pkg:rpm/redhat/php-embedded-debuginfo","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+24050+df93a449.2"],"introduced":["0"],"last_affected":[],"package":"php-enchant","purl":"pkg:rpm/redhat/php-enchant","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+24050+df93a449.2"],"introduced":["0"],"last_affected":[],"package":"php-enchant-debuginfo","purl":"pkg:rpm/redhat/php-enchant-debuginfo","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+24050+df93a449.2"],"introduced":["0"],"last_affected":[],"package":"php-ffi","purl":"pkg:rpm/redhat/php-ffi","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+24050+df93a449.2"],"introduced":["0"],"last_affected":[],"package":"php-ffi-debuginfo","purl":"pkg:rpm/redhat/php-ffi-debuginfo","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+24050+df93a449.2"],"introduced":["0"],"last_affected":[],"package":"php-fpm","purl":"pkg:rpm/redhat/php-fpm","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+24050+df93a449.2"],"introduced":["0"],"last_affected":[],"package":"php-fpm-debuginfo","purl":"pkg:rpm/redhat/php-fpm-debuginfo","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+24050+df93a449.2"],"introduced":["0"],"last_affected":[],"package":"php-gd","purl":"pkg:rpm/redhat/php-gd","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+24050+df93a449.2"],"introduced":["0"],"last_affected":[],"package":"php-gd-debuginfo","purl":"pkg:rpm/redhat/php-gd-debuginfo","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+24050+df93a449.2"],"introduced":["0"],"last_affected":[],"package":"php-gmp","purl":"pkg:rpm/redhat/php-gmp","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+24050+df93a449.2"],"introduced":["0"],"last_affected":[],"package":"php-gmp-debuginfo","purl":"pkg:rpm/redhat/php-gmp-debuginfo","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+24050+df93a449.2"],"introduced":["0"],"last_affected":[],"package":"php-intl","purl":"pkg:rpm/redhat/php-intl","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+24050+df93a449.2"],"introduced":["0"],"last_affected":[],"package":"php-intl-debuginfo","purl":"pkg:rpm/redhat/php-intl-debuginfo","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+24050+df93a449.2"],"introduced":["0"],"last_affected":[],"package":"php-json","purl":"pkg:rpm/redhat/php-json","source":"RHSA-2026:4507"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+24050+df93a449.2"],"introduced":["0"],"last_affected":[],"package":"php-json-debuginfo","purl":"pkg:rpm/redhat/php-json-debuginfo","source":"RHSA-2026:4507"}],"prev":{"headline":"Information Leak of Memory in getimagesize","id":"CVE-2025-14177"},"products":["PHP"],"published":"2025-12-27","related":[{"cvss_score":10,"headline":"Integer overflow in n/a","id":"CVE-2012-2688","kev_date_added":null,"published":"2012-07-20"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2012-2376","kev_date_added":null,"published":"2012-05-21"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2011-3268","kev_date_added":null,"published":"2011-08-25"},{"cvss_score":10,"headline":"Other in n/a","id":"CVE-2009-4143","kev_date_added":null,"published":"2009-12-21"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2008-5557","kev_date_added":null,"published":"2008-12-23"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2008-2050","kev_date_added":null,"published":"2008-05-05"},{"cvss_score":10,"headline":"Command injection in n/a","id":"CVE-2008-2051","kev_date_added":null,"published":"2008-05-05"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-01-24","vendors":["PHP Group"]},"summary":"An integer overflow in PHP's array_merge function can cause heap buffer overflows, leading to crashes or potential code execution on affected servers.","url":"https://insights.sbomify.com/CVE-2025-14178/"}