[CLSA-2026:1786518406] Fix CVE(s): CVE-2026-17543, CVE-2026-7260, CVE-2026-9672
Type:
security
Severity:
Critical
Release date:
2026-08-12 07:07:00 UTC
Description:
* SECURITY UPDATE: three defects in the GIF LZW decoder of the bundled libgd - debian/patches/php-5.6-CVE-2026-9672.patch: backport upstream commit fcd691b377d0 (libgd patch by Pierre Joye) in ext/gd/libgd/gd_gif_in.c. The prefix/suffix table reset in LWZReadByte_() cleared table[1][0] repeatedly instead of table[1][i], so table[1] was only initialised up to clear_code and the entries above it kept indeterminate stack contents; the LZW end_code branch fell through and kept decoding with a stale code when the trailing data blocks drained cleanly, which is what lets those bytes reach output pixels; and ReadImage() left its LZW_STATIC_DATA scratch struct uninitialised. All three are reachable from attacker-controlled GIF data via imagecreatefromgif(). - Note: byte-identical to upstream, only the context line numbers differ. - CVE-2026-9672 * SECURITY UPDATE: SQL injection in ext/pgsql via E'...' backslash breakout - debian/patches/php-5.6-CVE-2026-17543.patch: backport upstream commit ab048bd83b57 (GHSA-7qpv-r5mr-78m4) in ext/pgsql/pgsql.c. php_pgsql_add_quotes() wrapped a PQescapeStringConn()-escaped value in an E'...' literal, where a backslash is an escape character, but PQescapeStringConn() only doubles backslashes when the connection has standard_conforming_strings off. A value such as "zzz\' OR 1=1 --" therefore escaped the doubled quote and broke out of the literal, letting pg_convert(), pg_insert(), pg_update(), pg_delete() and pg_select() inject arbitrary SQL. Emit a plain '...' literal instead, which is what PQescapeStringConn() is documented to be used with. - Note: 5.6 builds the literal with smart_str rather than upstream's zend_string_concat3(), so the fix drops the smart_str_appendc(&str, 'E') call. The pg_convert()/pg_insert()/pg_update() expectations are updated for the dropped E prefix, including the 5.6-era non-"_9" duplicates upstream no longer ships, and a 5.6-compatible replacement for the upstream regression test is added. - CVE-2026-17543 * SECURITY UPDATE: phar stack exhaustion on a circular symlink chain - debian/patches/php-5.6-CVE-2026-7260.patch: backport upstream commit 2e0fa0a44441 (GHSA-vc5h-9ppw-p5f3) in ext/phar/util.c. phar_get_link_source() resolved a symlink by tail-calling itself with no cycle detection, so a tar-based archive whose symlinks form a loop exhausted the stack and crashed the process on open or read. A new static phar_follow_one_link() now performs a single hop and phar_get_link_source() walks the chain iteratively with Floyd tortoise-and-hare cycle detection, returning NULL on a cycle. - Note: kept on the 5.6 zend_hash_find()/TSRMLS API instead of upstream's zend_hash_str_find_ptr(). Upstream follow-up 56b8d1040d83 is not included because phar_get_link_location() can still return entry->link itself here, so the "if (link != entry->link)" efree guard is required. - Note: also restores the path separator in phar_get_link_location() ("*p = '/'"), without which the Floyd walk's second visit to an entry resolves a truncated prefix, both manifest lookups miss, and the slow cursor is dereferenced as NULL - crashing on *valid* nested archives. Upstream carries the same defect but its fixtures use flat entry names and never reach that branch. - Note: the .phpt from 2e0fa0a is not backported - it ships three binary tar fixtures, which a 3.0 (quilt) source package cannot carry. Instead this adds ext/phar/tests/tar/gh21986.phpt from b2de3cf170, the earlier public fix for the same defect, which builds the circular-symlink tar programmatically in pure PHP; only its --EXTENSIONS-- header is changed to the 5.6-equivalent --SKIPIF--. It fails (SIGSEGV) on an unpatched 5.6.40 build and passes on a patched one. Also verified with a standalone ASan/UBSan harness over the patched functions (13 cases: cycles resolve to NULL, acyclic and nested relative chains still resolve, zero allocation balance). - CVE-2026-7260
Updated packages:
  • alt-php56_5.6.40-138_amd64.deb
    sha:64cfe0c2173b368819bfedb07fdc8815e92e7f28
  • alt-php56-bcmath_5.6.40-138_amd64.deb
    sha:227fee705049fe3b182a4ad23882ad4458bc2a99
  • alt-php56-cli_5.6.40-138_amd64.deb
    sha:fa8a39f49e29c708c39efa6200ce1f4253b3bb75
  • alt-php56-common_5.6.40-138_amd64.deb
    sha:a6f10e6dd2e9773a727bcf60b22cf7c18adb0b4e
  • alt-php56-dba_5.6.40-138_amd64.deb
    sha:f569f1acf70bfc3858109bb94e2e52d3bec09b0e
  • alt-php56-dbx_5.6.40-138_amd64.deb
    sha:ae10321b35a1b5dbb920e697382f831be1eb8186
  • alt-php56-dev_5.6.40-138_amd64.deb
    sha:e64a6f729aa084bc13b792ac4c06dd6e1c0418c0
  • alt-php56-enchant_5.6.40-138_amd64.deb
    sha:4f83af2b715f78566a0eae5eab26d4915540b797
  • alt-php56-firebird_5.6.40-138_amd64.deb
    sha:174b4d7cc54b3bd91a2190f6c58f9f38056d7c1c
  • alt-php56-gd_5.6.40-138_amd64.deb
    sha:3007716b29b5e965a565a659a4f2efc7d1984c37
  • alt-php56-imap_5.6.40-138_amd64.deb
    sha:db438c03f1bfda8bf29e7f2706b1a6c4920e5d49
  • alt-php56-intl_5.6.40-138_amd64.deb
    sha:27bffa6ad0c2579a82652df64c53b3a37f370945
  • alt-php56-ldap_5.6.40-138_amd64.deb
    sha:eaab54fd93628ea01fa531bb13c113c7652e34a6
  • alt-php56-mbstring_5.6.40-138_amd64.deb
    sha:d2a5062c5e56e5e16e6327fcc4be767950ef3601
  • alt-php56-mcrypt_5.6.40-138_amd64.deb
    sha:aefdac2e4a9e5f43050b2d571b9a084e5cb83c8d
  • alt-php56-mysqlnd_5.6.40-138_amd64.deb
    sha:ee0c7b337ede617133bcdadd3d715c183d21460c
  • alt-php56-odbc_5.6.40-138_amd64.deb
    sha:4a0a1bf76010d4535a09ada701db067916e4b598
  • alt-php56-opcache_5.6.40-138_amd64.deb
    sha:1d12b3d4f47493be2b641020533cf1df61b2721e
  • alt-php56-pdo_5.6.40-138_amd64.deb
    sha:a35585809db5c8b49e9011d52341d7ae0224afe3
  • alt-php56-pgsql_5.6.40-138_amd64.deb
    sha:f16eade0d109116b9a77322597ea7669276de494
  • alt-php56-php-fpm_5.6.40-138_amd64.deb
    sha:cd6e2199952957416839871b84e301d6f43e89b5
  • alt-php56-process_5.6.40-138_amd64.deb
    sha:a9646eea5952e5eec2504cd0e20b4011531f8c0c
  • alt-php56-pspell_5.6.40-138_amd64.deb
    sha:8ae26fde32114c87dd8bfffca1d299339b414da5
  • alt-php56-recode_5.6.40-138_amd64.deb
    sha:91cdfb90995818edcb481104a8bd82318659a88b
  • alt-php56-snmp_5.6.40-138_amd64.deb
    sha:975a9c879ae3d132fe58e491001fb2c19070feee
  • alt-php56-soap_5.6.40-138_amd64.deb
    sha:92844820c621569873bd5e9b2507496705e5b001
  • alt-php56-sybase_5.6.40-138_amd64.deb
    sha:f7141c6f15e6c178ddcf78eea85b92be559a8556
  • alt-php56-tidy_5.6.40-138_amd64.deb
    sha:50b238a7aafd1eb1129b04fefd0de82b080d7c14
  • alt-php56-xml_5.6.40-138_amd64.deb
    sha:cc26bbbb38288cc4af32389b187c85842a7fc633
  • alt-php56-xmlrpc_5.6.40-138_amd64.deb
    sha:eebc7bc9f7aec394703f2b275a6031a46280bf92
Notes:
This page is generated automatically and has not been checked for errors. For clarification or corrections please contact the CloudLinux Packaging Team.