Fixed PHP packages on Linux
Linux distributions fix PHP2Shell in their own packages. Some, such as Ubuntu and the RHEL 9 default PHP, keep the old PHP number. After the update, php -v can still say 8.3.6. Compare your package version with the fixed package below.
Last reviewed . Rules of .
Checked 2026-10-22 against each vendor's security tracker.
Vendors add and change entries often, so confirm on the linked tracker before you decide. Install the version listed for your release, or a newer one.
One guide per distribution: Ubuntu, Debian, RHEL, AlmaLinux and Rocky Linux, Alpine. Each has the commands to see the installed build and to restart PHP. On PHP 7.4, 8.0 or 8.1, see no fixed release.
How to update
- Find your release and the PHP package you use.
- Install the update with your package manager.
- Restart PHP-FPM and the web server. The old processes keep the old code until they stop.
The tables cover PHP from each distribution’s own repositories. If your PHP comes from a hosting panel, a hosting provider or a third-party repository, ask that vendor for its fix.
Ubuntu
| Release | Package | Fixed version | Notice |
|---|---|---|---|
| 26.10 | php8.5 | 8.5.9-0ubuntu2.1 | USN-8948-1 |
| 26.04 LTS | php8.5 | 8.5.4-0ubuntu1.5 | USN-8948-1 |
| 24.04 LTS | php8.3 | 8.3.6-0ubuntu0.24.04.13 | USN-8948-1 |
| 22.04 LTS | php8.1 | 8.1.2-1ubuntu2.28 | USN-8948-1 |
| 20.04 | php7.4 | 7.4.3-4ubuntu2.29+esm5 | USN-8948-2. Needs Ubuntu Pro. |
| 18.04 | php7.2 | 7.2.24-0ubuntu0.18.04.17+esm14 | USN-8948-2. Needs Ubuntu Pro. |
| 16.04 | php7.0 | 7.0.33-0ubuntu0.16.04.16+esm22 | USN-8948-2. Needs Ubuntu Pro with the Legacy Support add-on. |
| 14.04 | php5 | 5.5.9+dfsg-1ubuntu4.29+esm18 | USN-8948-2. Needs Ubuntu Pro with the Legacy Support add-on. |
| 25.04, 25.10 | — | none | End of life (interim releases get 9 months of updates). Not in the notices. No fix. Upgrade the release. |
Check and update:
# show installed PHP packages and versions
dpkg -l | grep -E '^ii +(php[0-9.]*-(fpm|cgi|common)|libapache2-mod-php)'
# install the update
sudo apt update && sudo apt upgrade
# restart (use your branch, for example php8.3-fpm)
sudo systemctl restart php8.3-fpm
sudo systemctl restart apache2
On 20.04 and 18.04 the fix comes through Ubuntu Pro (ESM). On 16.04 and 14.04 it needs Ubuntu Pro with the Legacy Support add-on. Without them, apt upgrade does not install the fix.
Debian
| Release | Package | Fixed version | Advisory |
|---|---|---|---|
| 13 trixie | php8.4 | 8.4.27-1~deb13u1 | DSA-6574-1 |
| 12 bookworm (LTS) | php8.2 | 8.2.35-1~deb12u1 | DLA-4848-1 |
| unstable (sid) | php8.4 | 8.4.27-1 | Debian bug 1151516. php8.2 in unstable is listed as unfixed. |
| testing (forky) | php8.4 | pending | Testing still ships 8.4.26-1, which is vulnerable. The fixed 8.4.27-1 from unstable has not reached testing yet. |
The tracker has no row for Debian 11 bullseye. If you still run it, ask your support vendor or upgrade the release.
The Ubuntu commands above work here too. Put your branch in the service name, for example php8.2-fpm.
Red Hat Enterprise Linux
| Release | Package or stream | Fixed version | Advisory |
|---|---|---|---|
| RHEL 10 | php (8.3) | 8.3.36-1.el10_2 | RHSA-2026:87070 |
| RHEL 10 | php8.4 | 8.4.27-1.el10_2 | RHSA-2026:87071 |
| RHEL 9 | php (8.0, default) | 8.0.30-8.el9_8.1 | RHSA-2026:87151 |
| RHEL 9 | php:8.2 module | 8.2.35-1.module+el9.8.0+25111+a1450321 | RHSA-2026:87072 |
| RHEL 9 | php:8.3 module | 8.3.36-1.module+el9.8.0+25109+6886e21a | RHSA-2026:87079 |
| RHEL 9 | php:8.4 module | no fix yet | Red Hat lists it as affected, with no fix available. |
| RHEL 8 | php:7.4 module | 7.4.33-8.module+el8.10.0+25117+30337cca | RHSA-2026:87080 |
| RHEL 8 | php:8.2 module | 8.2.35-1.module+el8.10.0+25110+f67151d2 | RHSA-2026:87073 |
RHEL 7 and earlier: Red Hat's sources disagree. The bulletin RHSB-2026-013, updated on 2026-10-22, lists RHEL 7 as affected by CVE-2026-109619 only. Red Hat's machine-readable data (VEX for CVE-2026-109619) marks RHEL 6 and 7 as not affected by CVE-2026-109619. For CVE-2026-109618 (VEX) they are still under investigation. Neither lists a fix. Our advice: treat RHEL 7 as affected and watch the bulletin. See RHEL 7 and 6.
Red Hat's data lists fixes only for the streams above. Red Hat also says to rebuild your own containers when the base images are updated.
AlmaLinux
AlmaLinux moved fixed packages for every PHP stream on AlmaLinux 8, 9 and 10 to the production repositories on 2026-10-21. Most are AlmaLinux's own backports. They keep older upstream numbers and end in .alma.1. On 2026-10-22, errata.almalinux.org had no advisory IDs for them yet. The versions below come from AlmaLinux's announcement of 2026-10-21.
| Release | Stream | Fixed version |
|---|---|---|
| AlmaLinux 10 | default (PHP 8.3) | php-8.3.33-1.el10_2.alma.1 |
| AlmaLinux 10 | php8.4 | php8.4-8.4.24-1.el10_2.alma.1 |
| AlmaLinux 9 | default (PHP 8.0) | php-8.0.30-8.el9_8.alma.1 |
| AlmaLinux 9 | php:8.1 | php-8.1.32-1.module_el9.8.0+326+528679fc.alma.1 |
| AlmaLinux 9 | php:8.2 | php-8.2.33-1.module_el9.8.0+327+37dfd4b4.alma.1 |
| AlmaLinux 9 | php:8.3 | php-8.3.33-1.module_el9.8.0+328+1fdeb728.alma.1 |
| AlmaLinux 8 | php:7.2 (default stream) | php-7.2.24-1.module_el8.10.0+4315+7b734bf3.alma.1 |
| AlmaLinux 8 | php:7.3 | php-7.3.20-1.module_el8.10.0+4316+90ea5fe5.alma.1 |
| AlmaLinux 8 | php:7.4 | php-7.4.33-8.module_el8.10.0+4321+cf5fd4bb |
| AlmaLinux 8 | php:8.0 | php-8.0.30-1.module_el8.10.0+4319+26f10322.alma.1 |
| AlmaLinux 8 | php:8.2 | php-8.2.33-1.module_el8.10.0+4320+c30d6dbb.alma.1 |
AlmaLinux says php:7.2, php:7.3 and php:8.0 on AlmaLinux 8, and php:8.1 on AlmaLinux 9, are past their life cycle. They got this fix, but future fixes are not guaranteed. Plan a move to a supported stream. AlmaLinux Kitten 10 gets the fix with its next regular PHP update.
Rocky Linux
| Release | Package or stream | Fixed version | Advisory |
|---|---|---|---|
| Rocky 10 | php (8.3) | 8.3.36-1.el10_2 | RLSA-2026:87070 |
| Rocky 10 | php8.4 | 8.4.27-1.el10_2 | RLSA-2026:87071 |
| Rocky 9 | php (8.0, default) | 8.0.30-8.el9_8.1 | RLSA-2026:87151 |
| Rocky 9 | php:8.2 module | 8.2.35-1.module+el9.8.0+40395+2f706e64 | RLSA-2026:87072 |
| Rocky 9 | php:8.3 module | 8.3.36-1.module+el9.8.0+40396+4e680bb7 | RLSA-2026:87079 |
| Rocky 8 | php:7.4 module | 7.4.33-8.module+el8.10.0+40393+c071e357 | RLSA-2026:87080 |
| Rocky 8 | php:8.2 module | 8.2.35-1.module+el8.10.0+40394+d21b33fb | RLSA-2026:87073 |
Rocky module builds have the same upstream version and release as Red Hat, but a different build suffix. Compare against the Rocky string, not the Red Hat one.
Commands for RHEL, AlmaLinux and Rocky
# show the installed version (php8.4-common for PHP 8.4 on version 10)
rpm -q php-common
# show which module stream is enabled (marked [e])
dnf module list php
# install the update
sudo dnf upgrade 'php*'
# restart
sudo systemctl restart php-fpm
sudo systemctl restart httpd
Use rpm -q, not php -v. Backported builds keep older upstream numbers.
Alpine Linux
| Release | Package | Fixed version |
|---|---|---|
| edge, v3.24, v3.23 | php85 | 8.5.12-r0 |
| edge, v3.24, v3.23 | php84 | 8.4.27-r0 |
| edge, v3.24, v3.23 | php83 | 8.3.36-r0 |
| v3.22 | php84 | 8.4.27-r0 |
| v3.22 | php83 | 8.3.36-r0 |
| v3.22 | php82 | 8.2.35-r0 |
| v3.21 | php82 | 8.2.35-r0 |
| v3.21 | php83 | 8.3.36-r0 (in the repository; not yet in secdb) |
| v3.21 | php84 | pending (8.4.14-r0 is vulnerable) |
On 2026-10-22 the Alpine security database had no fix entry for php83 and php84 in v3.21. The v3.21 community repository already ships php83 8.3.36-r0, a fixed upstream release. Its php84 8.4.14-r0 is still vulnerable. Alpine's data lists GHSA-7875-c8px-7q5f for CVE-2026-109619. PHP's own advisory ID is GHSA-6wmf-4rv5-p3rp.
# show installed PHP packages
apk info -v | grep '^php'
# install the update
apk update && apk upgrade
# restart PHP-FPM (use your branch)
rc-service php-fpm83 restart
In a container, rebuild the image and recreate the container instead (our advice).
Restart every PHP process
Restart Apache, every PHP-FPM pool and any long-running PHP workers after the update (php2shell.com). Then check the running version again. See how to check your PHP version and the full after-update list.
Check your site
The php2shell.fyi checker reads the version number your site sends. A distribution build often reports an old number such as 8.3.6, so confirm the package version on the server.
Sources
- Ubuntu: USN-8948-1
- Ubuntu: USN-8948-2
- Ubuntu: CVE-2026-109618
- Ubuntu: CVE-2026-109619
- Ubuntu: release cycle
- Debian: CVE-2026-109618
- Debian: CVE-2026-109619
- Red Hat: RHSB-2026-013
- Red Hat: CVE-2026-109618
- Red Hat: CVE-2026-109619
- Red Hat: VEX data for CVE-2026-109618
- Red Hat: VEX data for CVE-2026-109619
- AlmaLinux: patched PHP packages released, 2026-10-21
- AlmaLinux: errata
- Rocky Linux: RLSA-2026:87070 (other RLSAs linked in the table)
- Alpine: security database v3.24 (other releases linked in the table)
- php.net: Security advisory, 21 October 2026
- php2shell.com: research site