[security][HIGH] php 8.4.11: 2 CVE require triage #1
Labels
No labels
cve
llm-analysis
needs-triage
security
severity-high
source-nvd
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
rpms/php#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
CVE triage request / Запрос на разбор CVE
Package / Пакет
php8.4.118.4.11-1webleaf-network-teamHIGH8.22LLM recommendation / Рекомендация LLM
RU
Обнаружены два критических уязвимости (CVE-2025-14178, CVE-2025-14180) в PHP 8.4.11. Обе уязвимости затрагивают версии PHP 8.4.x до 8.4.16 и включают переполнение буфера в функции array_merge() и обращение к нулевому указателю в драйвере PDO PostgreSQL. Текущая версия НАЙС.ОС (8.4.11) уязвима.
Немедленно обновить пакет php до версии 8.4.16 или выше для устранения уязвимостей. Проверить наличие драйвера PDO PostgreSQL и отключить эмуляцию подготовки (ATTR_EMULATE_PREPARES) как временную меру, если обновление невозможно в краткосрочной перспективе.
Рекомендуемое действие:
update_packageПодсказка по целевой версии:
8.4.16Проверки: 1. Проверить версию пакета php через rpm -q php (должна быть >= 8.4.16). 2. Проверить наличие уязвимых функций в тестовом скрипте с массивами большого размера. 3. Проверить работу PDO PostgreSQL с последовательностью \x99 при включенной эмуляции подготовки.
Риски: Возможность выполнения произвольного кода или краха сервера (DoS) при обработке специально сформированных массивов или запросов к базе данных PostgreSQL. Высокий риск эксплуатации в веб-сервисах.
EN
Two critical vulnerabilities (CVE-2025-14178, CVE-2025-14180) detected in PHP 8.4.11. Both affect PHP versions 8.4.x prior to 8.4.16, involving a heap buffer overflow in array_merge() and a null pointer dereference in the PDO PostgreSQL driver. The current NAYS.OS version (8.4.11) is vulnerable.
Immediately update the php package to version 8.4.16 or higher to mitigate the vulnerabilities. Verify the presence of the PDO PostgreSQL driver and disable emulation of prepared statements (ATTR_EMULATE_PREPARES) as a temporary measure if an immediate update is not feasible.
Recommended action:
update_packageTarget version hint:
8.4.16Tests: 1. Verify php package version via rpm -q php (must be >= 8.4.16). 2. Test array_merge() with large packed arrays to ensure no crash. 3. Test PDO PostgreSQL with sequence \x99 and ATTR_EMULATE_PREPARES enabled to ensure no segmentation fault.
Risks: Potential for arbitrary code execution or server crash (DoS) when processing specially crafted arrays or PostgreSQL database queries. High risk of exploitation in web services.
CVE candidates from NVD/CPE
Descriptions
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.
CVE-2025-14180
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 when using the PDO PostgreSQL driver with PDO::ATTR_EMULATE_PREPARES enabled, an invalid character sequence (such as \x99) in a prepared statement parameter may cause the quoting function PQescapeStringConn to return NULL, leading to a null pointer dereference in pdo_parse_params() function. This may lead to crashes (segmentation fault) and affect the availability of the target server.
Maintainer checklist
affected,fixed,not_affected,false_positive,deferred, ornot_in_cloud_image.niceos_cve_triageentry.NICE-SAadvisory if a security update is shipped.Machine metadata
Fixed in
php-8.4.20-1on branchniceos-5.2.Triage result:
8.4.11-1to8.4.20-1. PHP 8.4.x before8.4.16is affected by thearray_merge()heap buffer overflow;8.4.20is above the fixed version.8.4.11-1to8.4.20-1. PHP 8.4.x before8.4.16is affected by the PDO PostgreSQL quoting NULL dereference;8.4.20is above the fixed version.Details:
8.4.xline.8.5.x; cross-minor PHP updates require application compatibility review.--with-pdo-pgsql, so CVE-2025-14180 was considered applicable before the update.Verification:
rpmbuild -ba SPECS/php.speccompleted successfully.php -vreports8.4.20.php -mcompleted successfully and confirms expected extensions.php-fpm -tcompleted successfully.package-indexreportsEVR: 8.4.20-1.php 8.4.11 -> 8.4.20.Closing as fixed.