How To

PHP2Shell and CVE-2026-115560 on EOL PHP 8.1, 8.0 and 7.4

You patched PHP2Shell on a PHP 8.1, 8.0 or 7.4 server in October. On 19 November PHP shipped two more critical fixes, and again they stop at PHP 8.2. CVE-2026-115560 abuses session upload progress, and CVE-2026-129289 smuggles a second request through a reused PHP-FPM connection. This time php.net published no source patch for the end-of-life branches, so the fix for an application stuck on old PHP comes from packagers, from configuration, or from both.

Original content from computingforgeeks.com - post 176647

The 19 November changes come first below. They cover which packagers rebuilt 8.1, 8.0 and 7.4, the two settings that close the gap where no build exists yet, and how to prove the fix through the SAPI that serves your site. The October material on PHP2Shell on PHP 8.1, WHMCS and ionCube follows it. We confirmed the November builds and both mitigations working on Rocky Linux 9, Ubuntu 22.04 and Debian 12 in November 2026.

Check the 19 November Fixes on PHP 8.1, 8.0 and 7.4

Start with what upstream shipped. PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36 came out on 19 November as security releases. php.net’s 18 November pre-announcement says “The highest severity is CRITICAL.” The same note adds that the critical issues “require either non-default configuration or uncommon setups”, and that line drives the triage below. Two of the fixes have a configuration workaround that an old-PHP server can apply today:

CVEBugWhat has to be true on your serverWorkaround from the advisory
CVE-2026-115560 (GHSA-658j-r8rw-q6mx)Session serializer mismatch through session upload progressUpload progress on, and two apps, pools, vhosts or CLI processes sharing one session store with different serializerssession.upload_progress.enabled=0 everywhere that writes to the store
CVE-2026-129289 (GHSA-qc49-hpvq-g2w6)PHP-FPM request smuggling through an unread request bodyA front end that reuses FastCGI connections, plus code that opens php://input without reading it to the endKeep connection reuse off and never expose FPM or LSAPI listeners

Neither advisory lists a fix below 8.2.36. The php-src repository has no November branch for 8.1, 8.0 or 7.4, only the October PHP2Shell ones, so every end-of-life build in the next table is a packager’s own backport. On exploitation, neither CVE was in CISA’s Known Exploited Vulnerabilities catalog when we checked on 20 November, and NVD had not finished its own analysis. watchTowr’s FAQ says “As of November 20, 2026, no exploitation in the wild has been reported.” Red Hat’s RHSB-2026-020 bulletin rates both Critical.

Those two are not the whole November list for old branches. Two more advisories in the same release also give “< 8.2.36” and code that dates back well before 7.4, and neither setting below closes them. The timezone cache use-after-free (CVE-2026-129496) needs a startup diagnostic written to PHP’s file-based error log, and the partially overwritten session file bug (CVE-2026-126714) hits the default files session handler. Their interim steps are different:

  1. Fix every configuration error and deprecated setting that prints a warning when PHP starts, or send PHP errors to syslog instead of a file, then restart the master process and all workers (CVE-2026-129496).
  2. Turn session upload progress off and limit how much untrusted data the application stores in sessions (CVE-2026-126714). The advisory says turning upload progress off “removes that input path but does not fix applications that independently store attacker-controlled session data”.

For the first step, restart the pool and read the newest lines of the file named in error_log: any warning or deprecation that appears before the first request is a setting to fix. FPM’s own log does not count here, so a pool with no error_log file set lacks this precondition. The Sury build’s Debian changelog names both of these CVEs, and Remi’s names CVE-2026-129496 in its 18 November entry, so a patched package is still the only complete answer. The two settings that follow only close CVE-2026-115560 and CVE-2026-129289.

We checked each packager’s changelog, tracker or advisory on 20 November 2026, and installed the rows marked lab on our VMs. Supported branches (8.2 and newer) are covered in our CVE-2026-115560 check and patch guide. A build is listed as fixed only where its changelog or advisory names both CVEs:

PlatformPHP 8.1PHP 8.0PHP 7.4November status
Remi, EL 9 (lab)8.1.34-78.0.30-227.4.33-32Fixed, both CVEs in the 18 November changelog
ppa:ondrej/php, Ubuntu 22.04 and 24.04 (lab on 22.04)8.1.34-148.0.30-317.4.33-37Fixed; changelog entries -13 and -36 dated 17 November, first PPA builds -14, -31 and -37 on 19 November
packages.sury.org, Debian (lab on 12 for 8.1 and 7.4)8.1.34-148.0.30-317.4.33-37Fixed, same changelog as the PPA
Ubuntu archive22.04: 8.1.2-1ubuntu2.28not shipped20.04: php7.4No fix; ubuntu.com lists both CVEs as “Needs evaluation”
Ubuntu Pro ESM22.04 php8.1: no ESM buildnot shipped20.04 php7.4: no ESM buildPartial, and only below 7.4: CVE-2026-129289 is fixed in 16.04 php7.0 7.0.33-0ubuntu0.16.04.16+esm23 (Legacy add-on needed) and 18.04 php7.2 7.2.24-0ubuntu0.18.04.17+esm15; CVE-2026-115560 is still “Needs evaluation” on both
RHEL and Rocky AppStreamretired streamEL9 default php (lab: 8.0.30-8.el9_8.1)EL8 php:7.4 streamNo fix; Red Hat’s CSAF data lists RHEL 8 php:7.4 and RHEL 9 php as known affected
Debian 11, Freexian ELTS (paid)not shippednot shipped7.4.33-1+deb11u15Fixed per Freexian’s ELA-1891-1 (not lab tested)
Amazon Linux 2023php8.1not shippednot shipped“No Fix Planned” for both CVEs
cPanel EA4, DirectAdmin, CloudLinux, AlmaLinuxnot confirmednot confirmednot confirmedNo advisory found on 20 November; check the package changelog

Red Hat adds one useful detail on CVE-2026-115560. Its CVE page says the October PHP2Shell updates for PHP 8.0 and below “unconditionally disabled the Session Upload Progress functionality” and that “those packages are not affected”, even though its CSAF data still lists the streams. Our AppStream 8.0.30 test below agrees, so on RHEL and Rocky the open items are CVE-2026-129289, which the second mitigation handles, and the two bugs that need the interim steps above. Remi’s collections carry both fixes, and the changelog is where you see it, because the version string never moves:

Remi php81, php80 and php74 FPM changelogs on Rocky Linux 9 listing CVE-2026-129289 and CVE-2026-115560 in the 18 November 2026 builds

The php80 entry’s header reads 8.1.34-7, a label slip in Remi’s spec file; rpm -q php80-php-fpm reports the real 8.0.30-22. The AppStream php-fpm returns no match at all, since its newest entry is the 19 October PHP2Shell update. On Ubuntu, the PPA builds name both CVEs in the Debian changelog, next to the October entry:

ppa:ondrej/php changelogs for php7.4, php8.0 and php8.1 FPM on Ubuntu 22.04 naming CVE-2026-129289 and CVE-2026-115560

The php8.5 package on the same PPA was still 8.5.12 when we installed it, so a server running a supported branch from the PPA should check that 8.5.13 has reached it. Debian 12 with packages.sury.org shows the same entries, and dpkg -l shows which build is installed; the SAPI check further down proves the running workers loaded it:

packages.sury.org php7.4 and php8.1 FPM builds on Debian 12 with both November 2026 PHP CVEs in the changelog

Ubuntu’s own php8.1 is the gap. The archive candidate on 22.04 is still the 19 October PHP2Shell build, and its changelog names only CVE-2026-109618 and CVE-2026-109619:

apt-cache policy php8.1-fpm on Ubuntu 22.04 showing the archive candidate 8.1.2-1ubuntu2.28

Until Ubuntu, Red Hat or your panel vendor ships a build, the two settings in the next sections plus the interim steps for CVE-2026-129496 and CVE-2026-126714 are all you have on those servers, and they shrink the exposure rather than remove it. The two settings are worth applying on the fixed builds too, because each one removes a precondition rather than a code path. The Ubuntu PHP2Shell guide covers moving a server onto the PPA if you’d rather take OndÅ™ej Surý’s build now.

Turn Off Session Upload Progress in Every Pool

This side of the fix lives in PHP’s configuration. The advisory’s workaround for CVE-2026-115560 is to keep session.upload_progress.enabled=0 in every configuration that writes to the shared session store. It says to “Set this administratively before request input is processed.” It also warns that “Calling ini_set() … is too late.” The PHP manual lists the setting with a default of “1” and a changeable mode of INI_PERDIR, so the place for it is php.ini or the FPM pool. The fixed upstream releases change that default to off, but an explicit session.upload_progress.enabled = On already in php.ini or a pool still wins, so search for one after you upgrade.

Before changing anything, we wanted to know whether the old builds were exposed at all. In each pool we forced upload progress on, posted a normal multipart upload carrying a progress field, then counted the upload_progress_lab key in that visitor’s session file. The test only shows whether PHP writes progress data, which is the precondition the bug needs; it attacks nothing:

Build (through PHP-FPM)Default after installProgress key written with the setting forced on
Remi php81 8.1.34-7, php80 8.0.30-22, php74 7.4.33-32OffNo
Remi php81 8.1.34-6 (October build)not recordedNo
Rocky AppStream php 8.0.30-8.el9_8.1OnNo
ppa:ondrej/php 8.1.34-14, 7.4.33-37OffNo
Ubuntu archive 8.1.2-1ubuntu2.28 (October)not recordedNo
Ubuntu archive 8.1.2-1ubuntu2 (April 2022, unpatched control)not recordedYes
Remi php85 8.5.13, ppa:ondrej/php 8.5.128.5.13 Off, 8.5.12 OnYes

The pattern is clear. The October PHP2Shell backport made the upload callback return early on 8.1, 8.0 and 7.4, as the diff further down shows, so any old-branch build carrying it cannot write the data CVE-2026-115560 depends on. The unpatched 8.1.2 control and the supported 8.5 branch both wrote it. The new November builds go one step further and ship the setting Off. Here is the 8.1 and 8.5 contrast on Rocky Linux 9:

Session upload progress test through PHP-FPM on Rocky Linux 9: PHP 8.1.34 writes no progress key, PHP 8.5.13 writes one

Both pools report upload_progress.enabled=[1], yet only 8.5.13 writes the key, which is exactly why the configuration value cannot tell you whether an old build is exposed. Set the flag anyway. It costs nothing on a build where the feature is already dead, and it’s the only protection on a server that missed the October update or runs a build nobody has looked at. The order matters:

  1. Add the admin flag to every FPM pool that shares the session store.
  2. Set the same value in php.ini, which covers CLI scripts and cron jobs that start sessions.
  3. Restart every FPM service, so no worker keeps the old value.
  4. Check the value through the pool, not the shell.

For Remi’s php81 collection the pool file is under /etc/opt/remi/php81; on Ubuntu and Debian it is /etc/php/8.1/fpm/pool.d/www.conf. Open the pool the site uses:

sudo vi /etc/opt/remi/php81/php-fpm.d/www.conf

Add this line at the end of the pool section. php_admin_flag rather than php_flag is the point here, because an admin value can’t be changed by the application at runtime:

php_admin_flag[session.upload_progress.enabled] = off

Restart the pool. On Ubuntu the service is php8.1-fpm, and a server with several PHP versions needs each of their services restarted after its own pool file changes:

sudo systemctl restart php81-php-fpm

FPM’s own configuration dump shows whether the pool picked it up. Our test pool also carried a cleanup = 0 line from the lab setup, which is why two values appear:

sudo /opt/remi/php81/root/usr/sbin/php-fpm -tt 2>&1 | grep -i upload

The value reads 0 for the pool:

[19-Nov-2026 23:01:42] NOTICE: 	php_admin_value[session.upload_progress.enabled] = 0
[19-Nov-2026 23:01:42] NOTICE: 	php_admin_value[session.upload_progress.cleanup] = 0

The full run below also asked the pool through nginx, tried to switch the setting back on with ini_set() from a script, and read the CLI. The pool reports 0 and ini_set() returns bool(false), so an application can’t turn it back on:

php_admin_flag session.upload_progress.enabled off in the php81 FPM pool, with ini_set refused and php-fpm -tt showing 0

The CLI line reads Off only because the November package changed the default. The pool flag never reaches the CLI: on the same Rocky VM, /opt/remi/php81/root/usr/bin/php -d session.upload_progress.enabled=1 -i printed On => On, and the advisory counts command-line processes that share the store. That’s why step 2 matters. In php.ini the line ships commented out (line 1428 of /etc/opt/remi/php81/php.ini on our VM), so uncomment it and set session.upload_progress.enabled = Off. On Ubuntu and Debian the CLI reads its own /etc/php/8.1/cli/php.ini, separate from the FPM one, and a server running PHP as an Apache module needs php_admin_flag session.upload_progress.enabled off in the vhost, because no pool file applies there.

Keep FastCGI Connection Reuse Off Between the Web Server and FPM

This side of the fix lives in the web server. CVE-2026-129289 needs the front end to keep a FastCGI connection open across requests, and both common servers ship with that off. The nginx documentation gives “Default: fastcgi_keep_conn off;”, and Apache’s mod_proxy_fcgi disables reuse by default and only reuses connections with enablereuse=on. The advisory says “Standard nginx and Apache configurations that close the FastCGI connection after each request are not affected by the demonstrated PHP-FPM attack”, so your job is to find out whether anyone turned it on.

On nginx, search the full merged configuration rather than one file, because the directive often sits in an included upstream or snippet file. A count of 0 means no server block keeps FastCGI connections open:

sudo nginx -T 2>/dev/null | grep -c fastcgi_keep_conn

Our Rocky 9 VM also listed every fastcgi_pass line in the same pass, which shows each pool connected over a unix socket:

nginx -T check on Rocky Linux 9 showing unix socket fastcgi_pass lines and zero fastcgi_keep_conn matches

If the count is above 0, the usual source is an upstream block tuned with keepalive plus fastcgi_keep_conn on; for speed. Remove the fastcgi_keep_conn on; lines until the build is patched, then run sudo nginx -t and reload nginx. On Apache, reuse is switched on with enablereuse=on, either on a ProxyPass line or in a separate <Proxy "fcgi://localhost/"> worker block, so search for that word next to the handlers that point at FPM:

sudo grep -RnE "enablereuse|SetHandler" /etc/apache2/conf-enabled/ /etc/apache2/sites-enabled/

On Ubuntu 22.04 the php8.1-fpm.conf snippet the package installs hands requests to the socket with a SetHandler, our lab74.conf test vhost does the same for 7.4, and nothing sets enablereuse:

Apache mod_proxy_fcgi check on Ubuntu 22.04: SetHandler to the PHP-FPM unix socket and no enablereuse setting

Those two directories only cover what Debian’s layout enables, so finish with a search of the whole tree, sudo grep -Rn enablereuse /etc/apache2/, or /etc/httpd/ on RHEL-family servers, which also catches httpd.conf itself. An enablereuse=on anywhere in the output is the one line to remove before you reload Apache. HAProxy setups that keep FastCGI connections to FPM need the same review, and the advisory says LSAPI (LiteSpeed) gets a request desync from this bug rather than established code execution.

The second half of the workaround is “Do not expose PHP-FPM or LSAPI listeners directly to untrusted networks.” Check that no FPM pool listens on TCP and where the pools do listen:

sudo ss -ltnp | grep -E "php-fpm|9000"; echo "exit=$? (no TCP listener for php-fpm)"; sudo grep -E "^listen " /etc/opt/remi/php81/php-fpm.d/www.conf /etc/php-fpm.d/www.conf

The echo label is fixed text, so read the exit code: 1 means ss found no TCP listener, 0 means it printed one above. On Ubuntu and Debian the pool files are /etc/php/*/fpm/pool.d/*.conf. A listener on 127.0.0.1:9000 is not exposed; one on 0.0.0.0 or a public address is. Our run returned exit 1 and socket paths:

exit=1 (no TCP listener for php-fpm)
/etc/opt/remi/php81/php-fpm.d/www.conf:listen = /var/opt/remi/php81/run/php-fpm/www.sock
/etc/php-fpm.d/www.conf:listen = /run/php-fpm/www.sock

Containers are where this check usually fails. The official Docker PHP FPM images set listen = 9000 in php-fpm.d/docker.conf and EXPOSE 9000, so a docker run -p 9000:9000 or a Compose ports entry for 9000 puts FPM on the network. Keep it on an internal network that only the web server container joins, and note that Docker Hub lists no 8.1, 8.0 or 7.4 tags carrying the November fixes.

One third party fills part of that gap. Aikido’s 19 November write-up says its Aikido Images for PHP carry backported fixes under the original tags, including php:8.1-fpm-alpine3.21 and php:7.4.33-fpm, pulled from its public ECR gallery rather than Docker Hub. We did not test those images, and the same tag name on Docker Hub is still the unpatched official build, so check which registry your FROM line pulls from before you count a container as fixed.

Prove the Fix Through the SAPI That Serves the Site

php -v answers for the CLI binary on your path, which on a server with Remi collections or several Sury versions is often a different package from the pool serving the site. Backports also leave the version string alone: the October and November php81 builds both report 8.1.34. So ask the pool itself. Save this as v.php in the document root of the site you’re checking:

<?php echo "PHP_VERSION=".PHP_VERSION."\nphp_sapi_name=".php_sapi_name()."\n";

Request it through the web server, then ask the FPM binary for its build date. Our lab ran one nginx port per pool: 8081 for php81, 8080 for php80, 8074 for php74 and 8000 for the AppStream php:

curl -s http://127.0.0.1:8081/v.php; curl -s http://127.0.0.1:8080/v.php; curl -s http://127.0.0.1:8074/v.php; curl -s http://127.0.0.1:8000/v.php; /opt/remi/php81/root/usr/sbin/php-fpm -v | head -1

Every pool answered as fpm-fcgi, and the php81 FPM binary carries the 18 November build date:

PHP_VERSION=8.1.34
php_sapi_name=fpm-fcgi
PHP_VERSION=8.0.30
php_sapi_name=fpm-fcgi
PHP_VERSION=7.4.33
php_sapi_name=fpm-fcgi
PHP_VERSION=8.0.30
php_sapi_name=fpm-fcgi
PHP 8.1.34 (fpm-fcgi) (built: Nov 18 2026 09:12:24)

The October php81 build printed built: Oct 21 2026 09:22:04 on the same command, so the date tells you which package the running workers loaded. Pair it with the changelog check from the screenshots above, rpm -q --changelog on RHEL-family servers or zgrep on the Debian changelog, and delete v.php when you’re done. A PHP 8.0.30 answer from port 8000 is the AppStream build, which is why the RHEL rows above depend on the mitigations rather than on a package.

Check Which PHP Your Application Allows

Your first job is to find out whether the application can move to a patched branch at all. Moving is the better fix when it’s possible, because a supported branch keeps getting fixes after this one. ionCube-encoded code answers the question in its first bytes, since the encoder writes the PHP versions it targeted into a comment at the top of every file. On our WHMCS 8.10.1 install, the first line of init.php showed the targets:

head -n 1 /var/www/whmcs/init.php

The header lists two targets, 72 and 81, and nothing newer. Read 72 as code encoded for PHP 7.2, which the 7.2 to 7.4 loaders run, and 81 as code encoded for PHP 8.1:

<?php //ICB0 72:0 81:e822

That install cannot run on PHP 8.2 or 8.3 until WHMCS itself is upgraded. That matches WHMCS’s own requirements table: PHP 8.1 is the newest version listed for WHMCS 8.6 to 8.12, The same page notes that PHP 8.2 and higher cannot decode files those releases installed. So the PHP2Shell fix for this server has to come from an 8.1 build. The same reasoning applies to any application whose vendor hasn’t certified a newer PHP: patch the branch it runs on today, and treat the version upgrade as a separate project with its own testing.

Know What the Backport Changes

PHP published “minimal mitigation for EOL version” commits for 7.4, 8.0 and 8.1, on branches named PHP-8.1-CVE-2026-109618-109619 and so on. They carry the core of the fix, “Avoid state corruption via bailout”, across the Zend allocator, request parsing, the session extension and OPcache. The 8.1 patch Ubuntu shipped touches files such as Zend/zend_alloc.c, main/rfc1867.c and ext/session/session.c. Three differences from the full fix matter on a running server:

  • Session upload progress is switched off in the code, whatever php.ini says
  • The new memory_hard_limit_percent setting from the full fix does not exist
  • Every memory_limit overrun ends the process on the spot, so shutdown functions never run

You can easily miss the first one, because on the October builds the setting still reads On. PHP chose a blunt fix for the old branches. In the 8.1 backport, the session upload callback gains an unconditional early return, so the feature never runs no matter what the configuration says:

-	if (!PS(rfc1867_enabled)) {
+	if (!PS(rfc1867_enabled) || true) {
 		return retval;
 	}

On our Rocky 9 VM, Remi’s October 8.1.34-6 build reported the setting as On in its PHP-FPM configuration while that code path was dead. So if an application shows upload progress bars, they stop updating on these builds. Nothing in the configuration tells you why, which makes it a confusing support ticket unless you know about the patch. The same early return is what kept CVE-2026-115560 from working on these builds in our November test.

The third difference shows up in your logs and catches people out. Instead of the full fix’s delayed error, the backport prints the memory error and exits immediately with status 1. A script that runs out of memory under PHP 8.1.34-6 from Remi skips its shutdown functions, and the error line loses its usual PHP prefix. Through PHP-FPM, the same overrun kills the worker, and the visitor gets a 502 behind nginx or usually a 503 behind Apache’s mod_proxy_fcgi. The memory error itself never reaches PHP’s error log. The backport writes it straight to the worker’s stderr, which FPM discards unless the pool sets catch_workers_output = yes. In our test the pool’s www-error.log was never even created. We sent one request that ran out of a 10M memory_limit through nginx to the php81 pool on Rocky Linux 9, and the pool’s master log recorded the worker exit:

[22-Oct-2026 09:25:56] WARNING: [pool www] child 20235 exited with code 1 after 1.068191 seconds from start
[22-Oct-2026 09:25:56] NOTICE: [pool www] child 20254 started

Red Hat’s 8.0.30-8.el9_8.1 backport for Rocky Linux 9 behaved the same way in our tests, exiting with status 1 on the same script. Applications that regularly brush against their memory limit, such as large report exports or image processing, therefore turn a logged fatal error into a 502 after this update. Count “exited with code 1” lines in the FPM master log for the first few days, and raise memory_limit for any pool that shows them. For Remi’s php81 collection the log is under /var/opt/remi/php81; for the system PHP it is /var/log/php-fpm/error.log:

sudo grep -c 'exited with code 1' /var/opt/remi/php81/log/php-fpm/error.log

A count that keeps climbing during normal traffic points at a pool whose limit sits too close to what its scripts really use.

Patch PHP2Shell on PHP 8.1, 8.0 and 7.4 by Platform

Every major packager turned the October source patch into a build for at least some old branches. Stay with the packager you already use, because switching vendors in the middle of an incident adds a second change you then have to test. These are the PHP2Shell builds we installed, or found in the vendor’s package index or advisory on 22 October 2026; the November builds are in the first table above. A * in the DirectAdmin row is CustomBuild’s own marker for the same PHP version with new patches added:

PlatformPHP 8.1PHP 8.0PHP 7.4
Ubuntu 22.04 (free)8.1.2-1ubuntu2.28not shippednot shipped
Remi, EL 8, 9, 108.1.34-68.0.30-217.4.33-31
cPanel EasyApache 4ea-php81 8.1.34-5ea-php80 8.0.30-12ea-php74 7.4.33-19
DirectAdmin CustomBuild8.1.34*8.0.30*7.4.33*
Ubuntu 20.04 (Ubuntu Pro)not shippednot shipped7.4.3-4ubuntu2.29+esm5
RHEL and Rocky AppStreamEL9 php:8.1 stream retired, no fix8.0.30-8.el9_8.1 (EL9 default php); EL8 php:8.0 stream retired, no fix7.4.33-8 (EL8 php:7.4 stream)
AlmaLinux AppStream8.1.32-1.module_el9.8.0+326+528679fc.alma.1 (EL9 php:8.1 stream)8.0.30-8.el9_8.alma.1 (EL9 default php); 8.0.30-1.module_el8.10.0+4319+26f10322.alma.1 (EL8 php:8.0 stream)7.4.33-8 (EL8 php:7.4 stream)

Red Hat published those two fixes as RHSA-2026:87151 and RHSA-2026:87080 on 21 October, and Rocky Linux synced them overnight. Red Hat retired the RHEL 9 php:8.1 stream in May 2025 and the RHEL 8 php:8.0 stream in November 2024, so neither RHEL nor Rocky will fix those two. AlmaLinux went further. It carries Red Hat’s 7.4.33-8 on AlmaLinux 8 and shipped its own same-version backports for the default 8.0 on AlmaLinux 9 and for both retired streams. Each has a changelog entry naming both CVEs. AlmaLinux’s errata feed had no entry for these CVEs on 22 October, so on AlmaLinux the changelog is the only proof. CloudLinux rebuilt its own ea-php packages and kept their old release numbers (ea-php81 8.1.34-4 with a cloudlinux suffix, for example), so on CloudLinux compare the changelog rather than the cPanel release in the table.

Two more sources cover what the table doesn’t. OndÅ™ej Surý’s Debian and Ubuntu repositories carry the patch for the end-of-life branches they ship, and Zend and TuxCare offer paid long-term support builds. PHP 7.3 and older got nothing from PHP itself. A few packagers patched those branches on their own: DirectAdmin did, Freexian ELTS did for Debian, and Ubuntu Pro shipped fixes for the PHP 7.2, 7.0 and 5 packages of its older releases. On 16.04 and 14.04 those also need the Legacy Support add-on. For the November CVEs, Ubuntu Pro has so far fixed only CVE-2026-129289 in the 7.0 and 7.2 packages, so PHP 7.4 and 8.1 users on Ubuntu Pro still have no fix, and 7.0 and 7.2 users still lack the CVE-2026-115560 fix, so rely on the two mitigations above. Remi’s 7.2 and 7.3 builds had no fix. The Debian PHP2Shell guide and the cPanel and WHM steps cover those two platforms in full.

Install the Patched PHP 8.1 on RHEL-Family Servers

If your old PHP is the distribution’s own package, such as the default 8.0 on Rocky Linux 9 or the php:7.4 stream on Rocky Linux 8, take the vendor update with sudo dnf upgrade --refresh 'php*' and stay on it. RHEL and Rocky servers on the retired php:8.1 or EL8 php:8.0 streams get nothing from the vendor, so they move to Remi’s matching stream with the module commands below. On Rocky Linux, AlmaLinux and RHEL, PHP 8.1 usually comes from Remi in one of two forms, and the form decides the command. The commands below assume the Remi repository is already configured; the RHEL-family patch guide covers adding it. A server that switched its system PHP to Remi’s 8.1 stream updates the normal packages, while a server that runs 8.1 next to a newer system PHP uses Remi’s software collection under /opt/remi/php81. WHMCS servers often use the second form, so the billing system keeps 8.1 while everything else moves on.

For the module stream, enable Remi’s 8.1 stream and sync the installed packages to it. The reset clears whatever stream was enabled before, so the enable step cannot fail on a conflict. On an EL8 server coming from the retired php:8.0 stream, enable php:remi-8.0 instead of php:remi-8.1, or you land on a different minor version:

sudo dnf module reset -y php
sudo dnf module enable -y php:remi-8.1
sudo dnf distro-sync -y 'php*'

For the software collection, upgrade every php81 package together. The glob catches OPcache and the extension packages a WHMCS server usually carries, along with the ionCube loader built for the collection. Run today, it lands on 8.1.34-7, the build that also carries the November fixes:

sudo dnf upgrade -y 'php81-*'

Remi’s package restarts php81-php-fpm on upgrade, but restart it yourself anyway so no worker keeps the old code, and restart httpd as well if the server loads PHP as an Apache module:

sudo systemctl restart php81-php-fpm

Then check that the interpreter and the loader agree. An application that needs ionCube fails on every request if the loader is missing, so you want to see both on one screen before you send traffic to the pool:

/opt/remi/php81/root/usr/bin/php -v

In October, the Rocky 9 VM showed the patched 8.1 build with the ionCube loader attached:

PHP 8.1.34 (cli) (built: Oct 21 2026 09:22:04) (NTS gcc x86_64)
Copyright (c) The PHP Group
Zend Engine v4.1.34, Copyright (c) Zend Technologies
    with the ionCube PHP Loader v15.5.1, Copyright (c) 2002-2026, by ionCube Ltd.

We patched two production WHMCS servers this way. One moved its 8.1 collection from the vulnerable 8.1.34-5 to 8.1.34-6, the other moved an older 8.1.26 on Remi’s 8.1 stream to the same 8.1.34-6 build. In both cases the application, its cron jobs and its ionCube-encoded payment modules kept running on the same pool socket.

Verify the Backport Took

The usual checks give the wrong answer on these builds, which is why this step matters more than on a normal update. The version string stays at 8.1.34, /opt/remi/php81/root/usr/bin/php -r 'var_dump(ini_get("memory_hard_limit_percent"));' (plain php for the module stream) returns false just as it does on a vulnerable build, and on the October builds the upload progress setting still says On. Only the package changelog proves the fix:

rpm -q --changelog php81-php-fpm | head -3

On the October build, Remi’s entry names the mitigation and both PHP2Shell CVEs. On 8.1.34-7 the November entry sits above it, which is the one the screenshot at the top of this guide checks:

* Wed Oct 21 2026 Remi Collet <[email protected]> - 8.1.34-6
- Mitigation fix Avoid state corruption via bailout
  CVE-2026-109618, CVE-2026-109619

For the module-stream form, run the same check against php-fpm. On Ubuntu 22.04 the equivalent is zgrep CVE-2026-109618 /usr/share/doc/php8.1-fpm/changelog.Debian.gz, and on cPanel rpm -q --changelog ea-php81-php-cli. The PHP2Shell checker runs the right check for each build automatically, which helps on servers that mix a system PHP and a collection.

Finally, confirm the round trip through the application rather than just the shell, because a pool that starts can still fail on the first encoded file it loads. On the second WHMCS server we compared the HTTP status and response size of ten client-area and admin URLs before and after. We also checked that the store and login pages rendered without ionCube errors, and waited for the next WHMCS cron run to finish cleanly.

Plan the Way Off the Old Branch

The backport closes PHP2Shell, and that’s all it does. In October we wrote that the next PHP security release might bring no backport at all, and four weeks later that is what happened. The 19 November release came with no source patch for 8.1, 8.0 or 7.4, and Ubuntu’s and Red Hat’s own old packages had no fix the day after. CISA’s PHP2Shell alert told organizations still running PHP 8.1 or earlier to take PHP systems offline until they can be patched or updated. The way out is the application upgrade you have been postponing, done in order:

  1. Upgrade the application to a release certified for a supported PHP branch, still on the old PHP.
  2. Install the newer PHP next to the old one, as a second pool or software collection.
  3. Move the application’s pool to the new PHP and test the integrations that run on it, such as payment gateways and provisioning modules.
  4. Remove the old PHP once nothing points at it.

For WHMCS, that means moving to 8.13 or a 9.x release before changing PHP, and checking every third-party module against it first. If you jump straight from 8.12 or earlier to 9.1, remove the legacy PayPal Basic and Checkout modules first, because WHMCS says they otherwise break the Admin Area with an HTTP 500. Until that’s done, keep session upload progress off in the pool, FastCGI reuse off, startup warnings fixed, and the server behind the PHP2Shell mitigations, because a backported old branch is the first thing to fall behind on the next advisory. When the new pool is ready, the PHP 8.5 install guide for Rocky and AlmaLinux sets it up next to the old one.

Match Each Old Branch to Its Fix

If you look after more than one platform, this is the lookup we use to decide where a given old PHP should get its patched build for each round, and what proves it:

You runPHP2Shell build (October)November build (CVE-2026-115560, CVE-2026-129289)Proof
Ubuntu 22.04 php8.1Ubuntu security archivenone yet; interim settings onlychangelog names the CVEs
Remi php81, php80, php74 collections8.1.34-6, 8.0.30-21, 7.4.33-318.1.34-7, 8.0.30-22, 7.4.33-32Remi changelog entry naming the CVEs
RHEL or Rocky 9 default php 8.0, RHEL or Rocky 8 php:7.4vendor AppStream erratum (RHSA-2026:87151, RHSA-2026:87080, and Rocky’s matching RLSA)none yet; interim settings onlydnf updateinfo list --security and the package changelog
RHEL or Rocky 9 php:8.1, RHEL or Rocky 8 php:8.0Remi remi-8.1 or remi-8.0 stream (vendor stream retired)Remi, check the changelog for both CVEsRemi changelog entry
AlmaLinux 8 or 9 AppStream PHPAlmaLinux .alma.1 rebuilds, or Red Hat’s 7.4.33-8 on 8not confirmed; interim settings onlypackage changelog only
ppa:ondrej/php or packages.sury.org 8.1, 8.0, 7.4Sury PHP2Shell rebuild8.1.34-14, 8.0.30-31, 7.4.33-37 or newerDebian changelog
cPanel ea-php81, 80, 74EasyApache 4 change log 25.91not confirmed; interim settings onlyEA changelog lines
DirectAdmin php81 slotCustomBuild * patchnot confirmed; interim settings onlypatch file present, no update pending
Debian 11 php7.4Freexian ELTS (paid) or the packages.sury.org php7.4 buildELTS 7.4.33-1+deb11u15 (ELA-1891-1) or packages.sury.orgpackage changelog
Amazon Linux 2023 php8.1see the Amazon Linux guide“No Fix Planned”; move to php8.2 or newerALAS tracker

The RHEL-family patch guide covers the supported branches on the same Remi repository, and the DirectAdmin notes show the CustomBuild side of the same backport running on 78 production sites.

Keep reading

Java4Shell (CVE-2026-114938): Find and Patch Vulnerable JVMs Security Java4Shell (CVE-2026-114938): Find and Patch Vulnerable JVMs UFW Firewall Commands with Examples on Ubuntu 26.04 / 24.04 Security UFW Firewall Commands with Examples on Ubuntu 26.04 / 24.04 nginx HTTP/2 RCE CVE-2026-123007: Check, Disable HTTP/2, Patch Security nginx HTTP/2 RCE CVE-2026-123007: Check, Disable HTTP/2, Patch agent-framework PyPI Malware: Check 1.26.1/1.26.2 and Rotate Keys AI agent-framework PyPI Malware: Check 1.26.1/1.26.2 and Rotate Keys Drupal SA-CORE-2026-019 (CVE-2026-136716): Check and Patch Security Drupal SA-CORE-2026-019 (CVE-2026-136716): Check and Patch Install Nessus Vulnerability Scanner on Kali Linux Security Install Nessus Vulnerability Scanner on Kali Linux

Leave a Comment

Press ESC to close