mod_php_install.sh: apply php2shell security patch for PHP 5.6.

Add 'php-5.6-enhanced-universal.patch' (CVE-2026-109618 / CVE-2026-109619 /
CVE-2026-115560). It is applied after the other php-5.6-*.patch files; on top
of 'php-5.6-session.patch' hunk #4 of ext/session/session.c applies with
fuzz 2, which is expected (verified with 5.6.40). A failure aborts the
installation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
chrisandClaude Opus 5.5 committed 2026-11-15 15:31:02 +01:00
1 parent fc3f537464
commit 3245050742
2 files changed
+1274

No files matched your search

+27
View File
@@ -6372,6 +6372,33 @@ else
echo_skipped
fi
# - php2shell security fix (CVE-2026-109618 / CVE-2026-109619 / CVE-2026-115560)
# -
# - Must be applied AFTER the other php-5.6-*.patch files. On top of
# - 'php-5.6-session.patch' hunk #4 of ext/session/session.c applies with
# - "fuzz 2" - that is expected and the result is correct (tested with 5.6.40).
# -
# - Security fix: if it fails, abort - never build PHP 5.6 without it.
# -
_patch_file="php-5.6-enhanced-universal.patch"
echononl "\tApply ${_patch_file} (php2shell)"
if [[ "$PHP_MAIN_VERSION" = "5.6" ]]; then
if [[ -f "${_srcdir}/${_patch_file}" ]] ; then
patch -d $_builddir -p1 < ${_srcdir}/${_patch_file} > $tmp_err_msg 2>&1
if [[ $? -eq 0 ]]; then
echo_ok
else
echo_failed
fatal "$(cat $tmp_err_msg)"
fi
else
echo_failed
fatal "Can't find patchfile '${_srcdir}/${_patch_file}'"
fi
else
echo_skipped
fi
echononl "\tChange ownership of unpacked dirextory \"php-$VERSION\""
chown -R root.root php-$VERSION > $tmp_err_msg 2>&1