[CLSA-2026:1786440272] Fix CVE(s): CVE-2026-17543, CVE-2026-7260, CVE-2026-9672
Type:
security
Severity:
Critical
Release date:
2026-08-11 09:24:43 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:572575cd723a728d5e1df22afa664079f789061c
  • alt-php56-bcmath_5.6.40-138_amd64.deb
    sha:e9caf15777c1e244172af61630a511339693af38
  • alt-php56-cli_5.6.40-138_amd64.deb
    sha:e8278dee2ce0fa29c910676ae7b9ca7a328b9713
  • alt-php56-common_5.6.40-138_amd64.deb
    sha:f4b20d152d89ad30385b494d5b46f4115de87149
  • alt-php56-dba_5.6.40-138_amd64.deb
    sha:f52d752725dc4b732b1e70b29a197cf609d68260
  • alt-php56-dbx_5.6.40-138_amd64.deb
    sha:22f2e9ac21e87c6a5e707cfd839d0b27e33a01ff
  • alt-php56-dev_5.6.40-138_amd64.deb
    sha:144c92ce9713c0b17da4d1e0d4e52a573fa33d85
  • alt-php56-enchant_5.6.40-138_amd64.deb
    sha:0374c44fc8698230e3080095ed52cb769f254ce4
  • alt-php56-firebird_5.6.40-138_amd64.deb
    sha:81c31b22bd27c2ca54099dacc5b29085c275207b
  • alt-php56-gd_5.6.40-138_amd64.deb
    sha:6d5a0db57f066e3d82a9b663c241baa21d39e0af
  • alt-php56-imap_5.6.40-138_amd64.deb
    sha:d38f6c077d56dcc2ce4503e698dcc31acdf19aa6
  • alt-php56-intl_5.6.40-138_amd64.deb
    sha:cd6b2511421a9c0dedb078388d4f3b384706f6cc
  • alt-php56-ldap_5.6.40-138_amd64.deb
    sha:45aa83104510f76edfdf1bbcd4c075c3119ad7b0
  • alt-php56-mbstring_5.6.40-138_amd64.deb
    sha:69b50f2d6e17faa84503da55e12bd110ae970889
  • alt-php56-mcrypt_5.6.40-138_amd64.deb
    sha:84d5a23d9b121dc6837fcbc3615fac91c060b9e2
  • alt-php56-mysqlnd_5.6.40-138_amd64.deb
    sha:2e16c3d2873ca8985c9dfda8da23db49031d1e37
  • alt-php56-odbc_5.6.40-138_amd64.deb
    sha:c14ddf8e819ae241db02e35090df7f325db07120
  • alt-php56-opcache_5.6.40-138_amd64.deb
    sha:2101d7e847ec2cbb29c2bd3596b4c90f54ba8c58
  • alt-php56-pdo_5.6.40-138_amd64.deb
    sha:49bd514bebc4992b31f49148cb86ffbcb5a98906
  • alt-php56-pgsql_5.6.40-138_amd64.deb
    sha:39ebc8c308b60d1b542434e4dc552b1876714dd7
  • alt-php56-php-fpm_5.6.40-138_amd64.deb
    sha:5e192b117a54ef320f6b7de72b3564795e1ccc02
  • alt-php56-process_5.6.40-138_amd64.deb
    sha:510dcf3b7cc868b0e0d78a8e39ea2ff18630eaf4
  • alt-php56-pspell_5.6.40-138_amd64.deb
    sha:18d48feb1cedab1d7f5605e88c5725774213e3c7
  • alt-php56-recode_5.6.40-138_amd64.deb
    sha:47e8124cef81a0ef4247e6d1586995a64461fe69
  • alt-php56-snmp_5.6.40-138_amd64.deb
    sha:a7a08fd5ccbd0cc32de66364b0e6597deb641c58
  • alt-php56-soap_5.6.40-138_amd64.deb
    sha:64f0ea27e96b36abb96f9c2c8d6bacf1be794407
  • alt-php56-sybase_5.6.40-138_amd64.deb
    sha:54ffaf37b14c4d5c7ffb4ea2b64f8f24422754dd
  • alt-php56-tidy_5.6.40-138_amd64.deb
    sha:1e17153b20774a7f44f33ba724e4caf13c51c58c
  • alt-php56-xml_5.6.40-138_amd64.deb
    sha:3782d2c5065e7a2101ad8651e5145a60582085f8
  • alt-php56-xmlrpc_5.6.40-138_amd64.deb
    sha:8d0be89390141977817c1c82f2936be8f5e88f6e
Notes:
This page is generated automatically and has not been checked for errors. For clarification or corrections please contact the CloudLinux Packaging Team.