Release date:
2026-09-23 13:31:49 UTC
Description:
* SECURITY UPDATE: uninitialized read in gdImageCreateFromXbm
- debian/patches/php-5.6.40-bug77973.patch: apply upstream commit
ed6dee9a198c ("Fix #77973: Uninitialized read in gdImageCreateFromXbm")
in ext/gd/libgd/xbm.c. "unsigned int b;" is declared uninitialised at
xbm.c:48 and xbm.c:138 calls sscanf(h, "%x", &b) without checking the
return value, so an .xbm file whose bitmap bytes are not valid hex
leaves b holding whatever the stack happened to contain. The following
loop feeds those bits to gdImageSetPixel(), so imagecreatefromxbm()
returns an image painted out of stack memory left behind by earlier
code. The fix bails out with php_gd_error("invalid XBM") and destroys
the partial image when sscanf() does not convert exactly one value.
- This is a packaging fix, not a new backport. The patch has been in this
repository since 5.6.40-9 and php56.spec has applied it as Patch802 all
along, but the file existed only at the tree root: it was never placed
in debian/patches/ and debian/rules never applied it, so the .deb builds
- the ones that ship on ubuntu26.04 - carried the defect while the RPMs
did not. The file is now stored in debian/patches/ with a symlink at the
tree root, like every other patch here, and applied by debian/rules
between php-5.6.40-bug78069.patch and php-5.6.40-bug77988.patch, the
same relative position it holds in php56.spec as Patch802.
- Reachable from userland: imagecreatefromxbm() is registered at
ext/gd/gd.c:961, the build uses the bundled libgd (--with-gd=shared with
no path) and ships it as gd.so via debian/alt-php56-gd.install.
- CVE-2019-11038
* SECURITY UPDATE: bypassing open_basedir restrictions via sqlite3 file URIs
- debian/patches/php-5.6.40-bug77967.patch: apply upstream commit
c34895e837b5 ("Fix bug #77967 - Bypassing open_basedir restrictions via
file uris") in ext/sqlite3/sqlite3.c. php_sqlite3_authorizer() checked
the attach target against open_basedir but treated a "file:" URI as an
opaque name, so the restriction could be sidestepped by attaching
file:/path instead of /path. The fix rejects an empty "file:" and runs
php_check_open_basedir() on the part after the prefix.
- Same packaging gap as above and fixed the same way: wired here as
Patch801 in php56.spec since 5.6.40-9, absent from the .deb path until
now. ext/sqlite3 is compiled into these builds
(--with-sqlite3=/opt/alt/sqlite/usr, static), so the extension was
shipping the unfixed authorizer.
- No CVE is assigned to PHP bug #77967; it is carried here for parity with
the RPM build rather than against a ticket.
* Both upstream commits first shipped in 7.1.30/7.2.19/7.3.6. The 5.6 line
ended at 5.6.40 on 2019-01-10, months before the May 2019 fixes, so no 5.6
release ever carried either of them. Patch contents are unmodified
upstream; only their location and the debian/rules wiring change.
Updated packages:
-
alt-php56_5.6.40-142_amd64.deb
sha:70f906a1ed3551b07edf82cc2495a6fca2f88f84
-
alt-php56-bcmath_5.6.40-142_amd64.deb
sha:70aaf7789964396871738db93729d9c5f12e8aab
-
alt-php56-cli_5.6.40-142_amd64.deb
sha:892ea5907c6d73f0e8382e0e9ce9409ce76ff736
-
alt-php56-common_5.6.40-142_amd64.deb
sha:2d6c6515aeeef8779c16182103c65c33ae1c24ea
-
alt-php56-dba_5.6.40-142_amd64.deb
sha:f0e3c47fbda28dcaba444c4c5a36a72bd4c3155d
-
alt-php56-dbx_5.6.40-142_amd64.deb
sha:140a48d08c855cab2074986abfb4a6b3e76c9b31
-
alt-php56-dev_5.6.40-142_amd64.deb
sha:be6909e3891f197adac804646edda6051b1dded9
-
alt-php56-enchant_5.6.40-142_amd64.deb
sha:d019bfe304a302878d734fcb7f8ac764751fbc90
-
alt-php56-firebird_5.6.40-142_amd64.deb
sha:7417e19086f33b0d797b384b4866445d67b96627
-
alt-php56-gd_5.6.40-142_amd64.deb
sha:69c6a546803855501d9cc9fa2f8ff5ec9b745023
-
alt-php56-imap_5.6.40-142_amd64.deb
sha:84bbd017a0a4c927f97053fe0105e56c84cb7945
-
alt-php56-intl_5.6.40-142_amd64.deb
sha:fc915d7689beb541e74206ce87564c343bfd3647
-
alt-php56-ldap_5.6.40-142_amd64.deb
sha:7b14eee59b7f72e3eed2d054ea6525896993e238
-
alt-php56-mbstring_5.6.40-142_amd64.deb
sha:359deaed27266d01ab1cee7f2c05e2f990c8a479
-
alt-php56-mcrypt_5.6.40-142_amd64.deb
sha:22ac2021dcdb0735877237be59975c83a2bd5782
-
alt-php56-mysqlnd_5.6.40-142_amd64.deb
sha:7c7c225866efb13d11270c7188a019c3b97b4db4
-
alt-php56-odbc_5.6.40-142_amd64.deb
sha:f4b6156e60a3965fcfeaeff73cd3d58ab979b234
-
alt-php56-opcache_5.6.40-142_amd64.deb
sha:9dc51ca5799cb4fdb67b0ed9ae7bede50667a750
-
alt-php56-pdo_5.6.40-142_amd64.deb
sha:695418b9d537f7f28128908fab45b467ab30b50d
-
alt-php56-pgsql_5.6.40-142_amd64.deb
sha:9aabe5ab6b6ce37d92b7ee6645e0982e3528c765
-
alt-php56-php-fpm_5.6.40-142_amd64.deb
sha:48155cd4b883c902d2c80a92cf7c11c3a3e3c6d6
-
alt-php56-process_5.6.40-142_amd64.deb
sha:4705f924b5395ea19410ad72d8c50c3e303aaf72
-
alt-php56-pspell_5.6.40-142_amd64.deb
sha:a6ab58d3a571c8a18587436473077efefe965ebe
-
alt-php56-recode_5.6.40-142_amd64.deb
sha:8d9955991103fd33f914bba1ba014575230f37de
-
alt-php56-snmp_5.6.40-142_amd64.deb
sha:8c5bdbf68ff7c0734a9fe53e34a6f10dce6fd0c4
-
alt-php56-soap_5.6.40-142_amd64.deb
sha:912c4d0dd0800f099c9808c3567e04e6f341cea1
-
alt-php56-sybase_5.6.40-142_amd64.deb
sha:b0f591672333fd162b640f744aca794cd9d48581
-
alt-php56-tidy_5.6.40-142_amd64.deb
sha:8d67f2918424202c5909997c669cdd78c28cddad
-
alt-php56-xml_5.6.40-142_amd64.deb
sha:1c29d17dbd90633e98d1edd9597e0cc850c1f497
-
alt-php56-xmlrpc_5.6.40-142_amd64.deb
sha:68e4a35fed089da366611aa72e66f11d9be49a43
Notes:
This page is generated automatically and has not been checked for errors. For clarification or
corrections please contact the
CloudLinux Packaging Team.