Critical PHP RCE Vulnerabilities: CVE-2026-109618 and CVE-2026-109619
What the October 21, 2026 PHP security updates (8.5.12, 8.4.27, 8.3.36, and 8.2.35) mean for internet-facing Linux servers, with multi-distro patching and lsof checks for unlinked binaries in RAM.
Five days after an urgent PHP security advisory lands, the riskiest machines in a Linux hosting fleet are rarely the unmonitored ones; they are the servers where an administrator ran a package update, checked php -v in an SSH terminal, saw the patched version string, and closed the ticket while secondary PHP-FPM pools, detached LiteSpeed workers, or un-restarted containers kept serving live internet traffic from the vulnerable pre-patch binary still loaded in memory.
On October 21, 2026, the PHP release teams published PHP 8.5.12, 8.4.27, 8.3.36, and 8.2.35 to resolve two critical vulnerabilities: CVE-2026-109618 and CVE-2026-109619. Upstream maintainers warn that affected deployments face unauthenticated remote code execution (RCE) with no reliable configuration workaround. This operational guide is dated October 26, five days after those patches shipped, and walks through both the engine-level exposure and exact Linux verification commands across multi-PHP hosting stacks.
Why Engine-Level Memory Bugs Bypass Framework Defenses
Application developers sometimes assume that keeping Laravel, Symfony, or WordPress core updated insulates a server from PHP advisories. That assumption fails here because CVE-2026-109618 and CVE-2026-109619 are memory-safety flaws inside the C engine itself:
- Partially initialized request data during error cleanup: When certain malformed HTTP requests fail early in initialization, PHP's request shutdown routine can dereference or free memory structures that were never completely initialized.
- Stale global state use-after-free between requests: In persistent worker SAPIs that handle thousands of sequential requests per child process, residual global pointers from an earlier request can be reused after underlying memory has been freed.
An application does not need a vulnerable route or insecure SQL query for an internet-facing PHP runtime to be exploitable. Every public SAPI integration (php-fpm, Apache mod_php, php-cgi, FrankenPHP, and LiteSpeed lsphp) requires binary patching, with in-process Apache mod_php deployments particularly exposed.
| PHP Branch | Patched Upstream Version (Oct 21, 2026) | Branch Lifecycle | Required Action |
|---|---|---|---|
| PHP 8.5 | 8.5.12 | Active support | Upgrade packages and restart all FPM / web workers |
| PHP 8.4 | 8.4.27 | Active support | Upgrade packages and restart all FPM / web workers |
| PHP 8.3 | 8.3.36 | Security fixes only | Upgrade packages and restart all FPM / web workers |
| PHP 8.2 | 8.2.35 | Security fixes only | Upgrade now; schedule migration to PHP 8.4 or 8.5 |
| PHP 8.1 and older | Unpatched upstream | End of Life (EOL) | Verify vendor/CloudLinux ELS backports or migrate off |
Patching and Verifying Multi-PHP Linux Hosting Servers
On real production hosts, /usr/bin/php is frequently just one of four or five installed runtimes. You must inventory and patch every package source serving web requests, cron jobs, and background queues.
1. RHEL, AlmaLinux, and Rocky Linux (Remi, cPanel EA4, CloudLinux)
On standalone Enterprise Linux nodes running Remi's repository (php-* or php83-php-* / php84-php-* Software Collections), refresh repository metadata, upgrade all installed PHP packages, and restart every active FPM unit:
# Upgrade standalone RHEL / AlmaLinux PHP packages and check RPM changelog
sudo dnf upgrade --refresh 'php*'
rpm -q --changelog php-cli | head -n 20
# Restart all running PHP-FPM service instances across multi-version streams
systemctl list-units --type=service --state=running | awk '/php.*fpm/ {print $1}' | xargs -r sudo systemctl restart
Shared and managed hosting servers running cPanel EasyApache 4 and CloudLinux maintain completely separate binary trees under /opt/cpanel/ea-php* and /opt/alt/php*. In addition, LiteSpeed Web Server spawns detached lsphp processes per account that continue running the old binary until explicitly terminated or gracefully restarted, an exposure path worth locking down tightly given the 2026 LiteSpeed and hosting security incidents:
# Upgrade all cPanel EasyApache 4 and CloudLinux Alt-PHP streams
sudo dnf upgrade --refresh 'ea-php*' 'alt-php*'
# Propagate updated binaries into CageFS skeleton mounts on CloudLinux
sudo /usr/sbin/cagefsctl --force-update
# Recycle Apache, EA4 PHP-FPM pools, and detached LiteSpeed lsphp workers
sudo /scripts/restartsrv_apache_php_fpm
sudo /scripts/restartsrv_httpd
sudo killall -9 lsphp 2>/dev/null || true
# Confirm exact patch version across every installed EA4 runtime
for bin in /opt/cpanel/ea-php*/root/usr/bin/php; do
printf "%-42s %s\n" "$bin" "$("$bin" -v | head -n 1)"
done
2. Debian and Ubuntu (ppa:ondrej/php and Vendor Backports)
On Ubuntu servers using ppa:ondrej/php, upgrade every php8.* series simultaneously so older virtual hosts pinned to php8.2-fpm.sock are not forgotten while php8.4 updates. If you run native Debian Bookworm/Trixie or Ubuntu LTS distro packages, keep in mind that Debian and Canonical backport security fixes without bumping the upstream base version number; verify the CVE IDs in the package changelog rather than panicking over the php -v banner:
sudo apt-get update
sudo apt-get install --only-upgrade 'php8.*' 'libapache2-mod-php*'
# Check Debian/Ubuntu package changelog when distro backports keep older version strings
zgrep -iE 'CVE-2026-109618|CVE-2026-109619' /usr/share/doc/php*/changelog.Debian.gz || true
# Restart all active PHP-FPM units and reload Apache if mod_php is enabled
systemctl list-units --type=service --state=running | awk '/php8\..*-fpm/ {print $1}' | xargs -r sudo systemctl restart
3. Auditing Docker and Supervisor Queue Containers
Updating host packages has zero effect on containerized PHP workloads built from an older base image. Sweep every live container across your Docker or Kubernetes nodes, including background queue workers (artisan horizon or messenger:consume) that often share the web runtime image:
for cid in $(docker ps -q); do
cname=$(docker inspect --format '{{.Name}}' "$cid")
pver=$(docker exec "$cid" php -v 2>/dev/null | head -n 1 || echo "no-php-binary")
printf "%-32s %s\n" "$cname" "$pver"
done
Rebuild images from patched upstream digests (php:8.5.12-fpm-bookworm, php:8.4.27-fpm-alpine, or php:8.3.36-fpm-bookworm) in CI so horizontal autoscaling or rollbacks cannot reintroduce a vulnerable container layer.
Catching Unlinked Pre-Patch Binaries in Memory with lsof
On Linux, upgrading an executable or shared library (libphp.so, opcache.so, /usr/sbin/php-fpm) unlinks the old file on disk while any already-running process retains an open file descriptor to the deleted inode in RAM. Until those worker masters restart, your server remains vulnerable on the network even though php -v prints 8.4.27.
Always run an lsof memory audit as the final step of emergency patch verification:
# Detect running web or PHP processes still executing deleted pre-patch binaries in RAM
sudo lsof -nP | grep DEL | grep -E 'php|httpd|apache2|lsphp|frankenphp' || echo "Clean: zero unlinked PHP binaries mapped in memory."
# Check open unlinked file descriptors (+L1) held by web workers
sudo lsof -nP +L1 | grep -E 'php|httpd|apache2|lsphp' || true
# Use distro service checkers to catch any overlooked daemons
sudo needrestart -b 2>/dev/null || sudo dnf needs-restarting -s 2>/dev/null || true
If lsof -nP | grep DEL flags a php-fpm pool, httpd child, or lsphp PID, restart its parent unit immediately and re-run the check until it comes back empty. Preserve web access and error logs around the pre-patch window to inspect unusual crash loops (SIGSEGV in php-fpm.log or dmesg), and if your stack runs Node.js alongside PHP, run the companion October 21 runtime verification covered in Node.js security fixes for DNS truncation and TLS hostname bypasses.
Sources
This checklist summarizes practical Linux remediation steps; always consult your OS vendor or hosting control-panel security errata when verifying backported builds.