From 06bea0b16f18968e25e10513d096486fee99ae8d Mon Sep 17 00:00:00 2001 From: Christoph Date: Fri, 20 Nov 2026 18:47:38 +0100 Subject: [PATCH] mod_php_install.sh: apply security patches for PHP 7.4.33. Apply for PHP 7.4.33, in this order: cve-2026-109618-109619, sury-31, xlts-1, xlts-2, sury-31-re2c-generated. All apply without fuzz, also on top of PHP-7.4-OpenSSL-3.0-compatibility.patch. The generated files are marked as up to date afterwards, as for 8.0.30 and 8.1.34. Tested on web-05 (Debian 13): build, install and php-fpm start OK. Co-Authored-By: Claude Opus 5.5 --- mod_php_install.sh | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/mod_php_install.sh b/mod_php_install.sh index afb4d13..8f08c12 100755 --- a/mod_php_install.sh +++ b/mod_php_install.sh @@ -6399,9 +6399,19 @@ else echo_skipped fi -# - Security patches for PHP 8.0.30 and 8.1.34 +# - Security patches for PHP 7.4.33, 8.0.30 and 8.1.34 # - (source: omega8cc/boa, aegir/patches/php-sec) # - +# - PHP 7.4.33: +# - php-7.4.33-cve-2026-109618-109619.patch +# - php-7.4.33-sury-31.patch (backports from 8.x, Debian/sury) +# - php-7.4.33-xlts-1.patch (mysqlnd) +# - php-7.4.33-xlts-2.patch +# - php-7.4.33-sury-31-re2c-generated.patch +# - (own patch: the *.re hunks of sury-31 for pdo_sql_parser and +# - url_scanner_ex applied to the generated *.c files, so the fixes +# - are built without re2c) +# - # - PHP 8.0.30: # - php-8.0.30-cve-2026-109618-109619.patch # - php-8.0.30-sury-25.patch (backports from 8.x, Debian/sury) @@ -6423,7 +6433,8 @@ fi # - # - Order matters: the CVE-2026-109618/109619 patch MUST be applied before # - the sury patch, otherwise hunk #4 of main/rfc1867.c fails. In the order -# - below all patches apply cleanly (no fuzz) - for 8.0.30 also on top of +# - below all patches apply cleanly (no fuzz) - for 7.4.33 and 8.0.30 also +# - on top of 'PHP-7.4-OpenSSL-3.0-compatibility.patch' and # - 'PHP-8.0-OpenSSL-3.0-compatibility.patch'. # - # - The patches are applied to the unpacked tree '${_srcdir}/php-${VERSION}' @@ -6433,6 +6444,14 @@ fi # - Security fixes: if one fails, abort - never build PHP without them. # - case "$VERSION" in + 7.4.33) + _sec_patches=" + php-7.4.33-cve-2026-109618-109619.patch + php-7.4.33-sury-31.patch + php-7.4.33-xlts-1.patch + php-7.4.33-xlts-2.patch + php-7.4.33-sury-31-re2c-generated.patch" + ;; 8.0.30) _sec_patches=" php-8.0.30-cve-2026-109618-109619.patch