[CLSA-2026:1790985928] Fix CVE(s): CVE-2025-14181, CVE-2026-6103, CVE-2026-91765, CVE-2026-92842
Type:
security
Severity:
Important
Release date:
2026-10-03 00:05:41 UTC
Description:
* SECURITY UPDATE: out-of-bounds read in the convert stream filters when line-break-chars contains a NUL byte - debian/patches/php-5.2-CVE-2026-92842.patch: backport upstream commit b4e3397ec8f4f647e6e019dbf79870fc2f14ba78 so php_conv_base64_encode_ctor(), php_conv_qprint_encode_ctor() and php_conv_qprint_decode_ctor() in ext/standard/filters.c duplicate lbchars with pestrndup(lbchars, lbchars_len, persistent) instead of the strlen-based pestrdup(). pestrdup() truncated at the first NUL while inst->lbchars_len kept the untruncated length, so the converters read past the end of the allocation. The option is reachable from userspace through stream_filter_append() and php://filter. Also adds upstream's ext/standard/tests/filters/ghsa-88hq-2827-7pg6.phpt, adapted for 5.2 (array() instead of the short-array literal). - CVE-2026-92842 * SECURITY UPDATE: integer overflow in the ext/soap chunked-transfer body accumulator - debian/patches/php-5.2-CVE-2025-14181.patch: backport upstream commit b11bd1d9390bb203684e3d4aa5e1104ea842de6f to ext/soap/php_http.c. The "if (http_buf_size + buf_size + 1 < 0)" test in get_http_body() is dead code - signed overflow is undefined - so a malicious endpoint could answer with Transfer-Encoding: chunked and chunk sizes totalling more than INT_MAX, wrap the accumulator negative and overflow the heap buffer. http_buf_size becomes size_t, buf_size and len_size become unsigned int, and each growth step is bounded with "buf_size >= (size_t) INT_MAX - http_buf_size" before the addition is performed. INT_MAX rather than upstream's ZSTR_MAX_LEN because this branch has no zend_string: the body is a char* grown with erealloc() and its length leaves the function through an int *out_size. The Content-Length path gains "header_length >= INT_MAX" and the Connection: close path gains the matching bound on its 4096-byte steps. The Location: redirect allocation upstream hardens in the same commit becomes safe_emalloc(1, p - t, strlen(new_url->path) + 2), 5.2's equivalent of zend_string_safe_alloc(). The upstream .phpt is not carried: it drives a live http endpoint through a server.inc helper this tree does not have and needs 4 GB of RAM. - CVE-2025-14181 * SECURITY UPDATE: phar tar entry injection via unrepresentable entry sizes and data-carrying entry types - debian/patches/php-5.2-CVE-2026-6103.patch: backport upstream commit 0994e2e887cd993866b5e4d7dba2fade5caeefec to ext/phar/tar.c and ext/phar/phar_internal.h from the bundled PECL phar-2.0.0 tarball, which prep_build unpacks into ext/phar before any patch runs. A new phar_tar_size() rejects sizes that cannot be represented - octal that overflows, GNU base-256, non-octal digits, trailing garbage - instead of letting phar_tar_number() wrap them, GNU long link ('K') records are refused rather than registered as entries, and a new phar_tar_type_has_data() makes every entry type that carries data have its data blocks skipped. Without these the stream was left pointing at attacker-chosen bytes inside another entry's data, which phar then parsed as a tar header, so the archive presented entries that no conforming tar reader sees. phar_tar_size() checks the multiply-add at each digit rather than accumulating in uint64_t, which is not guaranteed to exist on this branch. Also adds upstream's three ext/phar/tests/tar/GHSA-j3wh-g957-2m85-*.phpt, adapted for 5.2 (array(), dirname(__FILE__), --SKIPIF-- instead of --EXTENSIONS--). - CVE-2026-6103 * SECURITY UPDATE: unbounded recursion in ext/soap XML parsing and decoding - debian/patches/php-5.2-CVE-2026-91765.patch: backport upstream commit 3655b79c7bfa90db004d75a3b282ed0f538f4836 to ext/soap/php_xml.c, php_encoding.c, php_soap.h and soap.c. ext/soap parses the request and the response with XML_PARSE_HUGE, which disables libxml2's own limit, and then recursed once per nesting level in cleanup_xml_node(), in get_node_with_attribute_recursive_ex() and through the to_zval() decode chain, so a few thousand levels exhausted the C stack. Both php_xml.c walks become iterative, documents deeper than SOAP_MAX_XML_DEPTH (2048) are rejected on libxml2 below 2.13, and an unsigned int decode_depth added to the soap module globals caps the decode chain at SOAP_MAX_DECODE_DEPTH - which also bounds href chains and cycles, since those walk the same recursion over a flat document. The counter is zeroed by encode_reset_ns()/encode_finish(), which bracket decoding on both the server and the client path. Also adds two of upstream's three ext/soap/tests/GHSA-rgrp-mwpx-f6rm*.phpt, the href-chain and href-cycle ones, adapted for 5.2. The third, the XML-depth one, is not carried: soap_xmlParseFile() on this branch never sets XML_PARSE_HUGE - only soap_xmlParseMemory() does - so libxml2 rejects its WSDL fixtures at its own xmlParserMaxDepth of 256, well before the 2048 cap the fix adds, and no fixture can both parse here and reach the check. - CVE-2026-91765
Updated packages:
  • alt-php52_5.2.17-239_amd64.deb
    sha:dc5c0df0dca39a648b47599cfc601fe487b880c6
  • alt-php52-bcmath_5.2.17-239_amd64.deb
    sha:e861ccd788973ddea70d8dffc38d6cf0d831f2cf
  • alt-php52-cli_5.2.17-239_amd64.deb
    sha:ffa344eb365909b55765548a601cd51e51992dd1
  • alt-php52-common_5.2.17-239_amd64.deb
    sha:37c4d29d220884b7935871ea87f46849e153e071
  • alt-php52-dba_5.2.17-239_amd64.deb
    sha:669889821b657b79bc5a306151f472d55b077a91
  • alt-php52-dbx_5.2.17-239_amd64.deb
    sha:f3c44dd07ae69ec3fd926b925045f8b81be013b6
  • alt-php52-dev_5.2.17-239_amd64.deb
    sha:e43980f2a623dcc01ccabcfc0b91439fb5a6daaf
  • alt-php52-enchant_5.2.17-239_amd64.deb
    sha:02cebb9bcc778a1496802465367dd5c11ff48189
  • alt-php52-firebird_5.2.17-239_amd64.deb
    sha:ae7f80ead18d7f544ffe7ea72ed0d76f644e7d84
  • alt-php52-gd_5.2.17-239_amd64.deb
    sha:265ce063b3156495674fc12af2a57a5c71d2a05a
  • alt-php52-imap_5.2.17-239_amd64.deb
    sha:9740de8d338cd1ce25810b3fb7779ae0c9334164
  • alt-php52-intl_5.2.17-239_amd64.deb
    sha:af53e134aa5738e16420bec649ae5c3081801cb2
  • alt-php52-ldap_5.2.17-239_amd64.deb
    sha:e32550a14549390565576684261070e12e2def86
  • alt-php52-mbstring_5.2.17-239_amd64.deb
    sha:0b2c17d06448e0124da0f04fc54f145bba844292
  • alt-php52-mcrypt_5.2.17-239_amd64.deb
    sha:3ad10dffce4bf3868654e7d5ee77761291df7cb5
  • alt-php52-mysqlnd_5.2.17-239_amd64.deb
    sha:374ad0634a2ac57e40080dc4e9ee4a7902b852a7
  • alt-php52-odbc_5.2.17-239_amd64.deb
    sha:d4a9422612f6903891e894a16ebb16e0ab197938
  • alt-php52-pdo_5.2.17-239_amd64.deb
    sha:b8ecb0c52e7444e5e08c947aa3360b367de8a54c
  • alt-php52-pgsql_5.2.17-239_amd64.deb
    sha:ffaf47ec7d4a3f00fd400d4b2cd11941e38df7a4
  • alt-php52-process_5.2.17-239_amd64.deb
    sha:e1fa8b47a4b9fcbf5ded3ed37597b94ae324bc8e
  • alt-php52-pspell_5.2.17-239_amd64.deb
    sha:7d8b933cbf14d47bfbc9dfd6756bc0398dfe2e45
  • alt-php52-recode_5.2.17-239_amd64.deb
    sha:13caa7d42338855e0ec6877d161dff1be78674de
  • alt-php52-snmp_5.2.17-239_amd64.deb
    sha:0072ae7906c63d9c4cb52138de4698baa5f2ef85
  • alt-php52-soap_5.2.17-239_amd64.deb
    sha:62cea46b0458b83b639afdb3b53b920fc4056e73
  • alt-php52-sqlite_5.2.17-239_amd64.deb
    sha:3f60de10bb5e0b0f4d3dc9a5ecf8d8932c0230ea
  • alt-php52-sybase_5.2.17-239_amd64.deb
    sha:e54c2a5073d8f4393092435b52b87dc2ca8b27bd
  • alt-php52-tidy_5.2.17-239_amd64.deb
    sha:9904b1eaa03ce68ba92bbc091657abd40209809c
  • alt-php52-xml_5.2.17-239_amd64.deb
    sha:542aa67b9b9d753b26f1aa210132884744ed9898
  • alt-php52-xmlrpc_5.2.17-239_amd64.deb
    sha:9ee9355fcfdb123f5109d61da81aaacb97a56a22
Notes:
This page is generated automatically and has not been checked for errors. For clarification or corrections please contact the CloudLinux Packaging Team.