PHP2Shell on Ubuntu, Debian and RHEL: Fixed Package Versions
Linux distributions ship PHP2Shell fixes as backported packages, so the version number often stays the same as before. This page lists the fixed package versions for Ubuntu and Debian, Red Hat's status, and how to check what you have installed.
Why the PHP version looks old after the PHP2Shell fix
Upstream PHP fixed PHP2Shell (CVE-2026-109618 and CVE-2026-109619) in 8.2.35, 8.3.36, 8.4.27 and 8.5.12. Distributions such as Ubuntu and Red Hat usually copy only the fix into the PHP version they already ship. That means Ubuntu 24.04 still reports PHP 8.3.6 after the update. The full package version, not the PHP version, tells you whether you are patched. That is also why the PHP2Shell checker cannot always judge a distribution build from its headers alone.
Ubuntu PHP2Shell fix (USN-8948-1, USN-8948-2)
Ubuntu published its notices on October 21, 2026 with priority Critical.
| Ubuntu release | Package | Fixed version |
|---|---|---|
| 26.10 | php8.5 | 8.5.9-0ubuntu2.1 |
| 26.04 LTS | php8.5 | 8.5.4-0ubuntu1.5 |
| 24.04 LTS | php8.3 | 8.3.6-0ubuntu0.24.04.13 |
| 22.04 LTS | php8.1 | 8.1.2-1ubuntu2.28 |
| 20.04 (Ubuntu Pro) | php7.4 | 7.4.3-4ubuntu2.29+esm5 |
| 18.04 (Ubuntu Pro) | php7.2 | 7.2.24-0ubuntu0.18.04.17+esm14 |
| 16.04 (Pro Legacy) | php7.0 | 7.0.33-0ubuntu0.16.04.16+esm22 |
| 14.04 (Pro Legacy) | php5 | 5.5.9+dfsg-1ubuntu4.29+esm18 |
dpkg -l 'php*' | grep ^ii
sudo apt update && sudo apt upgrade
sudo systemctl restart php*-fpm apache2
Releases 20.04 and older only get the fix through Ubuntu Pro (ESM). If you use the ondrej/php PPA instead of Ubuntu's own packages, you need the upstream fixed version from that PPA.
Debian PHP2Shell fix
| Debian release | Advisory | Fixed version |
|---|---|---|
| 13 trixie | DSA-6574-1 | php8.4 8.4.27-1~deb13u1 |
| 12 bookworm | DLA-4848-1 | php8.2 8.2.35-1~deb12u1 |
| forky / sid | - | php8.4 8.4.27-1 |
apt-cache policy php8.4-fpm
zgrep CVE-2026-109618 /usr/share/doc/php8.4-common/changelog.Debian.gz
Users of the sury.org repository get upstream PHP releases, so look for 8.2.35, 8.3.36, 8.4.27 or 8.5.12 there.
PHP2Shell on Red Hat Enterprise Linux
Red Hat rates both CVEs Important, with CVSS v3.1 8.1, and notes that RHEL uses PHP-FPM rather than mod_php, which makes remote code execution harder in practice. Fixes shipped on October 21, 2026:
| RHEL release | Advisory | Fixed package |
|---|---|---|
| RHEL 10 | RHSA-2026:87070 | php 8.3.36-1.el10_2 |
| RHEL 10 | RHSA-2026:87071 | php8.4 8.4.27-1.el10_2 |
| RHEL 9 | RHSA-2026:87072 | php:8.2 module stream |
| RHEL 9 | RHSA-2026:87079 | php:8.3 module stream |
| RHEL 9 | RHSA-2026:87151 | php 8.0.30-8.el9_8.1 |
| RHEL 9 | - | php:8.4 stream still listed as Affected on November 6, 2026 |
| RHEL 8 | RHSA-2026:87073 | php:8.2 module stream |
| RHEL 8 | RHSA-2026:87080 | php:7.4 module stream |
| RHEL 7 / 7 ELS | RHSA-2026:88693 (ELS) | Not affected for CVE-2026-109618; RHEL 7 ELS fixed php-5.4.16-48.el7_9.1 for CVE-2026-109619 |
Extended Update Support and SAP/long-life channels received dedicated advisories on October 23 and October 26, 2026: RHEL 10.0 EUS (RHSA-2026:88561), RHEL 9.6 EUS (RHSA-2026:88720 for PHP 8.0, RHSA-2026:88834 for php:8.2, and RHSA-2026:89111 on October 26 for php:8.3), RHEL 9.4 SAP (RHSA-2026:88725, RHSA-2026:88835), RHEL 9.2 SAP (RHSA-2026:88659), and RHEL 8.4/8.6/8.8 AUS/EUS/TUS/SAP (RHSA-2026:88565, 88533, 88532). Note that these channel-specific backports do not cover the RHEL 9 php:8.4 stream, which Red Hat's security feed still lists as Affected as of November 6, 2026. Run sudo dnf upgrade 'php*' (or yum on RHEL 8), restart PHP-FPM, and confirm with the changelog:
rpm -q --changelog php-common | grep CVE-2026-10961
On Alpine Linux v3.22, community/php84 is fixed in 8.4.27-r0. AlmaLinux and Rocky Linux follow upstream RHEL advisories as packages rebuild; Remi repository users should verify package versions on rpms.remirepo.net.
PHP2Shell on older PHP branches: 8.1, 8.0, 7.4
PHP published source-only backports for 7.4, 8.0 and 8.1, without official binaries. Ubuntu's ESM packages above include fixes for php7.4, php7.2, php7.0 and php5. If you run an old branch from another source, plan a move to a supported release; see the PHP2Shell patch guide.
Is my PHP package version patched? Version lookup
Find the full version with dpkg -l 'php*' | grep ^ii (Ubuntu, Debian) or rpm -q php-common (RHEL), then look it up below. Checked against the Ubuntu, Debian and Red Hat trackers on November 6, 2026.
8.2.35-1~deb12u1
Debian 12 bookworm. Yes, patched. This is the fixed php8.2 package from DLA-4848-1. Anything older on bookworm, such as 8.2.32-1~deb12u1, is vulnerable.
8.4.27-1~deb13u1
Debian 13 trixie. Yes, patched. This is the fixed php8.4 package from DSA-6574-1. The earlier trixie build 8.4.24-1~deb13u1 is vulnerable.
8.3.6-0ubuntu0.24.04.13
Ubuntu 24.04 LTS. Yes, patched. It still says PHP 8.3.6 because Ubuntu backported the fix (USN-8948). Builds before .13 are vulnerable.
8.1.2-1ubuntu2.28
Ubuntu 22.04 LTS. Yes, patched. 8.1.2-1ubuntu2.27 and older are vulnerable; run apt upgrade.
8.5.4-0ubuntu1.5
Ubuntu 26.04 LTS. Yes, patched. Older 26.04 builds of php8.5 are vulnerable.
8.5.9-0ubuntu2.1
Ubuntu 26.10. Yes, patched. Older 26.10 builds of php8.5 are vulnerable.
7.4.3-4ubuntu2.29+esm5
Ubuntu 20.04 with Ubuntu Pro. Yes, patched. The fix for 20.04 is only available through Ubuntu Pro (ESM); without Pro you stay on a vulnerable build.
7.2.24-0ubuntu0.18.04.17+esm14
Ubuntu 18.04 with Ubuntu Pro. Yes, patched, through Ubuntu Pro (ESM).
7.0.33-0ubuntu0.16.04.16+esm22
Ubuntu 16.04 with Ubuntu Pro Legacy. Yes, patched, through the Ubuntu Pro Legacy Support add-on.
5.5.9+dfsg-1ubuntu4.29+esm18
Ubuntu 14.04 with Ubuntu Pro Legacy. Yes, patched, through the Ubuntu Pro Legacy Support add-on.
PHP2Shell distro packages FAQ
Ubuntu shows PHP 8.3.6. Is that vulnerable?
Not if the package is 8.3.6-0ubuntu0.24.04.13 or later. Ubuntu backports the fix and keeps the upstream number, so compare the full package version, not just 8.3.6.
Is there a Red Hat RHSA for PHP2Shell?
Yes. Red Hat shipped main-stream fixes on October 21, 2026 (RHSA-2026:87070 and 87071 for RHEL 10; RHSA-2026:87072, 87079 and 87151 for RHEL 9; RHSA-2026:87073 and 87080 for RHEL 8), followed by EUS, SAP, AUS/TUS and RHEL 7 ELS advisories on October 23 and October 26 (including RHSA-2026:89111 for RHEL 9.6 EUS php:8.3). As of November 6, 2026, Red Hat still lists the RHEL 9 php:8.4 stream as Affected. Standard RHEL 7 is Not affected by CVE-2026-109618, while RHEL 7 Extended Lifecycle Support received RHSA-2026:88693 for CVE-2026-109619.
Do I need to restart after the package update?
Yes. Restart PHP-FPM and Apache so the patched binaries are loaded. Running workers keep the old code until they restart.
My distro is not listed. What should I do?
Search your vendor's security tracker for CVE-2026-109618. If no fixed package exists, build from the official PHP sources or move to a supported release.