Security

Critical PHP RCE Vulnerabilities: CVE-2026-109618 and CVE-2026-109619

By Nikhil Bhangale··6 min read

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.

Critical PHP RCE Vulnerabilities: CVE-2026-109618 and CVE-2026-109619

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 BranchPatched Upstream Version (Oct 21, 2026)Branch LifecycleRequired Action
PHP 8.58.5.12Active supportUpgrade packages and restart all FPM / web workers
PHP 8.48.4.27Active supportUpgrade packages and restart all FPM / web workers
PHP 8.38.3.36Security fixes onlyUpgrade packages and restart all FPM / web workers
PHP 8.28.2.35Security fixes onlyUpgrade now; schedule migration to PHP 8.4 or 8.5
PHP 8.1 and olderUnpatched upstreamEnd 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:

bash · terminal
# 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:

bash · terminal
# 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:

bash · terminal
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:

bash · terminal
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:

bash · terminal
# 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.

#PHP#Security#CVE#Patch Management
← Back to all posts

Related Articles

Browse all articles →
Security11 min read

PHP Nov 2026 Critical RCEs: Patch 8.5.13 & 8.4.28 Now

The PHP Foundation released 8.5.13, 8.4.28, 8.3.37, and 8.2.36 on November 19, 2026 fixing 18 security flaws including CVSS 9.2 PHP-FPM smuggling and session upload RCEs. Here is my Linux sysadmin audit, hot mitigation, and multi-PHP patch playbook.

Read article →
Security9 min read

Fixing Linux Kernel NoisyTCP (CVE-2026-99288) Fast

Disclosed in November 2026, CVE-2026-99288 (NoisyTCP) lets unauthenticated remote TCP packets crash multi-queue Linux servers via a decade-old SYN-cookie lookup race. Here is how to audit your exposure, mitigate safely without breaking SYN flood defenses, and patch cleanly.

Read article →
Security12 min read

Hosting Security in 2026: Lessons from Hostinger's LiteSpeed Zero-Day and Mittwald's MCP Server Breach

Explore the 2026 Hostinger and Mittwald security incidents, shared hosting vulnerabilities, MCP server risks, and essential security practices for hosting providers.

Read article →
Chat on WhatsApp