Two critical security vulnerabilities disclosed on 21 October 2026 have exposed websites running vulnerable PHP versions to potentially devastating remote code execution attacks. PHP underpins approximately 70% of websites with identifiable server-side technology, making the scale of this security threat extraordinary.
The severity of the threat has already prompted emergency precautionary shutdowns internationally, with websites, including government services, taken offline while administrators race to deploy security patches.
If you own or administer a PHP-based website, we strongly urge you to update your PHP runtime immediately. Updating plugins, themes or application software alone will not resolve these vulnerabilities.
ASF has completed its emergency PHP and cPanel security updates. If you cannot implement the necessary patches promptly, we strongly recommend temporarily taking your website offline or seeking immediate assistance from your hosting provider.
The official PHP security advisory and a server update command for compatible cPanel/WHM installations are provided below.
cPanel/WHM on an RPM/DNF server only. This updates existing EasyApache PHP installations and restarts applicable services. It does not cover every hosting setup. Check backups and expect a brief service interruption.
bash <<'EA4_SECURITY_UPDATE'
set -Eeuo pipefail
if (( EUID != 0 )); then
echo 'ERROR: Run as root.' >&2
exit 1
fi
if [[ ! -x /usr/local/cpanel/scripts/upcp ]] || \
! command -v dnf >/dev/null || ! command -v rpm >/dev/null; then
echo 'ERROR: Only for cPanel / EasyApache 4 on DNF/RPM systems.' >&2
exit 1
fi
echo '[1/4] cPanel expedited security update'
/usr/local/cpanel/scripts/upcp --security
echo '[2/4] Update existing EasyApache PHP installations'
mapfile -t branches < <(
rpm -qa --qf '%{NAME}\n' |
grep -oE '^ea-php[0-9]{2}' | sort -u
)
if (( ${#branches[@]} == 0 )); then
echo 'No EasyApache PHP packages detected; investigate the active PHP provider.'
exit 1
fi
patterns=()
for branch in "${branches[@]}"; do
patterns+=("${branch}*")
done
printf 'Updating: %s\n' "${branches[*]}"
dnf -y --refresh upgrade "${patterns[@]}"
echo '[3/4] Restart applicable web-serving processes'
if rpm -qa --qf '%{NAME}\n' | grep -qE '^ea-php[0-9]{2}-php-fpm$'; then
/usr/local/cpanel/scripts/restartsrv_apache_php_fpm --hard
fi
if command -v systemctl >/dev/null && systemctl is-active --quiet httpd; then
/usr/local/cpanel/scripts/restartsrv_httpd
fi
echo '[4/4] Installed PHP versions'
for php in /opt/cpanel/ea-php??/root/usr/bin/php; do
[[ -x "$php" ]] || continue
"$php" -r 'printf("%s | PHP %s\n", PHP_BINARY, PHP_VERSION);'
done
printf '\nCheck deployed FPM/web versions and vendor backports separately.\n'
echo 'CloudLinux Alt-PHP, LiteSpeed and custom/container PHP are NOT covered.'
EA4_SECURITY_UPDATE
CloudLinux Alt-PHP, LiteSpeed and custom PHP stacks require separate verification. Older PHP branches may rely on vendor backports. Confirm the active web-serving PHP version after updating.
CVE-2026-109618 · CVE-2026-109619