PHP security update
Last updated: (UTC)Advisory checked: UTC

How do I fix PHP2Shell on Ubuntu?

PHP2Shell (CVE-2026-109618 / CVE-2026-109619) is a critical PHP vulnerability. Check your PHP runtime, confirm the vendor package, and apply the PHP security update to address PHP RCE.

PHP2Shell · CVE-2026-109618 / CVE-2026-109619 · PHP RCE · PHP security update

Install the fixed package revision for your exact Ubuntu release and package source, then restart the PHP runtime serving the site. Ubuntu backports can fix the PHP vulnerability without changing the short upstream version.

Steps to fix it

  1. Identify the Ubuntu release, PHP branch and package source. Ubuntu archive packages and Sury / Ondřej packages have separate revisions.
  2. Choose the matching branch guide below. Use only the commands marked as tested for your source and environment; back up and test before updating.
  3. Restart the serving runtime using the matching guide, compare the complete installed revision with the advisory, and test the website as well as the terminal.
Version checker →

Questions about this fix

Why does the version still look old after a PHP vulnerability update?

Ubuntu can backport a fix into its existing branch. Compare the full package revision with the USN entry for your release; a short version alone cannot establish the patch state.

Should I switch to another repository to get a fix?

First check the source already installed and its exact release and architecture. Another repository’s newer number does not establish a compatible update for your system.

Official instructions: Ubuntu USN-8948-1 ↗

Back up your application and configuration, and test in staging before applying a PHP vulnerability update. Use only the package source and branch actually installed on your system.

Vendor package status

Branch / sourceConfirmed packagePHP2Shell · Status
PHP 8.5
ubuntu-archive · 26.04
8.5.4-0ubuntu1.5
Source ↗
Fix confirmed
Checked at: 2026-10-30 19:15:48 UTC
PHP 8.5
ubuntu-archive · 26.10
8.5.9-0ubuntu2.1
Source ↗
Fix confirmed
Checked at: 2026-10-30 19:15:48 UTC
PHP 8.5
ondrej-ppa
See vendor advisory
Source ↗
Fix confirmed
Checked at: 2026-10-22 03:28:58 UTC
PHP 8.4
ondrej-ppa
See vendor advisory
Source ↗
Fix confirmed
Checked at: 2026-10-22 03:28:58 UTC
PHP 8.3
ubuntu-archive · 24.04
8.3.6-0ubuntu0.24.04.13
Source ↗
Fix confirmed
Checked at: 2026-10-30 19:15:48 UTC
PHP 8.3
ondrej-ppa
See vendor advisory
Source ↗
Fix confirmed
Checked at: 2026-10-22 03:28:58 UTC
PHP 8.2
ondrej-ppa
See vendor advisory
Source ↗
Fix confirmed
Checked at: 2026-10-22 03:28:58 UTC
PHP 8.1
ubuntu-archive · 22.04
8.1.2-1ubuntu2.28
Source ↗
Vendor backport confirmed
Checked at: 2026-10-30 19:15:48 UTC
PHP 8.1
ondrej-ppa
See vendor advisory
Source ↗
Status not confirmed — check vendor advisory
Checked at: 2026-10-22 03:28:58 UTC
PHP 8.0
ondrej-ppa
See vendor advisory
Source ↗
Status not confirmed — check vendor advisory
Checked at: 2026-10-22 03:28:58 UTC
PHP 7.4
ondrej-ppa
See vendor advisory
Source ↗
Status not confirmed — check vendor advisory
Checked at: 2026-10-22 03:28:58 UTC
PHP 7.4
ubuntu-esm · 20.04
7.4.3-4ubuntu2.29+esm5
Source ↗
Vendor backport confirmed
Checked at: 2026-10-22 03:29:00 UTC
PHP 7.2
ubuntu-esm · 18.04
7.2.24-0ubuntu0.18.04.17+esm14
Source ↗
Vendor backport confirmed
Checked at: 2026-10-22 03:29:00 UTC
PHP 7.0
ubuntu-esm · 16.04
7.0.33-0ubuntu0.16.04.16+esm22
Source ↗
Vendor backport confirmed
Checked at: 2026-10-22 03:29:00 UTC
PHP 5.5
ubuntu-esm · 14.04
5.5.9+dfsg-1ubuntu4.29+esm18
Source ↗
Vendor backport confirmed
Checked at: 2026-10-22 03:29:00 UTC
PHP 8.2
sury · Ubuntu 22.04 (jammy) · arm64
Package revisions by system

Ubuntu 22.04 (jammy) · arm64 · php8.2-cli
8.2.36-3+debsuryorg22.04.1+1

Ubuntu 22.04 (jammy) · arm64 · php8.2-common
8.2.36-3+debsuryorg22.04.1+1

Ubuntu 22.04 (jammy) · arm64 · php8.2-fpm
8.2.36-3+debsuryorg22.04.1+1


Source ↗
Fix confirmed
Checked at: 2026-11-21 01:29:04 UTC
PHP 8.1
sury · Ubuntu 24.04 (noble) · arm64
Package revisions by system

Ubuntu 24.04 (noble) · arm64 · php8.1-cli
8.1.34-15+debsuryorg24.04.1+1

Ubuntu 24.04 (noble) · arm64 · php8.1-common
8.1.34-15+debsuryorg24.04.1+1

Ubuntu 24.04 (noble) · arm64 · php8.1-fpm
8.1.34-15+debsuryorg24.04.1+1


Source ↗
Vendor backport confirmed
Checked at: 2026-11-21 01:29:37 UTC
PHP 7.4
sury · Ubuntu 24.04 (noble) · arm64
Package revisions by system

Ubuntu 24.04 (noble) · arm64 · php7.4-cli
1:7.4.33-38+debsuryorg24.04.1+1

Ubuntu 24.04 (noble) · arm64 · php7.4-common
1:7.4.33-38+debsuryorg24.04.1+1

Ubuntu 24.04 (noble) · arm64 · php7.4-fpm
1:7.4.33-38+debsuryorg24.04.1+1


Source ↗
Vendor backport confirmed
Checked at: 2026-11-21 01:29:41 UTC
PHP 7.4
sury · Ubuntu 22.04 (jammy) · arm64
Package revisions by system

Ubuntu 22.04 (jammy) · arm64 · php7.4-cli
1:7.4.33-38+debsuryorg22.04.1+1

Ubuntu 22.04 (jammy) · arm64 · php7.4-common
1:7.4.33-38+debsuryorg22.04.1+1

Ubuntu 22.04 (jammy) · arm64 · php7.4-fpm
1:7.4.33-38+debsuryorg22.04.1+1


Source ↗
Vendor backport confirmed
Checked at: 2026-11-21 17:32:26 UTC
PHP 8.1
sury · Ubuntu 22.04 (jammy) · arm64
Package revisions by system

Ubuntu 22.04 (jammy) · arm64 · php8.1-cli
8.1.34-15+debsuryorg22.04.1+1

Ubuntu 22.04 (jammy) · arm64 · php8.1-common
8.1.34-15+debsuryorg22.04.1+1

Ubuntu 22.04 (jammy) · arm64 · php8.1-fpm
8.1.34-15+debsuryorg22.04.1+1


Source ↗
Vendor backport confirmed
Checked at: 2026-11-21 01:29:14 UTC
PHP 8.0
sury · Ubuntu 24.04 (noble) · arm64
Package revisions by system

Ubuntu 24.04 (noble) · arm64 · php8.0-cli
1:8.0.30-32+debsuryorg24.04.1+1

Ubuntu 24.04 (noble) · arm64 · php8.0-common
1:8.0.30-32+debsuryorg24.04.1+1

Ubuntu 24.04 (noble) · arm64 · php8.0-fpm
1:8.0.30-32+debsuryorg24.04.1+1


Source ↗
Vendor backport confirmed
Checked at: 2026-11-21 01:29:48 UTC
PHP 8.4
sury · Ubuntu 22.04 (jammy) · arm64
Package revisions by system

Ubuntu 22.04 (jammy) · arm64 · php8.4-cli
8.4.28-3+debsuryorg22.04.1+1

Ubuntu 22.04 (jammy) · arm64 · php8.4-common
8.4.28-3+debsuryorg22.04.1+1

Ubuntu 22.04 (jammy) · arm64 · php8.4-fpm
8.4.28-3+debsuryorg22.04.1+1


Source ↗
Fix confirmed
Checked at: 2026-11-21 17:32:31 UTC
PHP 8.5
sury · Ubuntu 24.04 (noble) · arm64
Package revisions by system

Ubuntu 24.04 (noble) · arm64 · php8.5-cli
8.5.13-3+debsuryorg24.04.1+1

Ubuntu 24.04 (noble) · arm64 · php8.5-common
8.5.13-3+debsuryorg24.04.1+1

Ubuntu 24.04 (noble) · arm64 · php8.5-fpm
8.5.13-3+debsuryorg24.04.1+1


Source ↗
Fix confirmed
Checked at: 2026-11-21 17:33:16 UTC
PHP 8.5
sury · Ubuntu 22.04 (jammy) · arm64
Package revisions by system

Ubuntu 22.04 (jammy) · arm64 · php8.5-cli
8.5.13-3+debsuryorg22.04.1+1

Ubuntu 22.04 (jammy) · arm64 · php8.5-common
8.5.13-3+debsuryorg22.04.1+1

Ubuntu 22.04 (jammy) · arm64 · php8.5-fpm
8.5.13-3+debsuryorg22.04.1+1


Source ↗
Fix confirmed
Checked at: 2026-11-21 17:32:56 UTC
PHP 8.3
sury · Ubuntu 22.04 (jammy) · arm64
Package revisions by system

Ubuntu 22.04 (jammy) · arm64 · php8.3-cli
8.3.37-3+debsuryorg22.04.1+1

Ubuntu 22.04 (jammy) · arm64 · php8.3-common
8.3.37-3+debsuryorg22.04.1+1

Ubuntu 22.04 (jammy) · arm64 · php8.3-fpm
8.3.37-3+debsuryorg22.04.1+1


Source ↗
Fix confirmed
Checked at: 2026-11-21 17:33:06 UTC
PHP 8.2
sury · Ubuntu 24.04 (noble) · arm64
Package revisions by system

Ubuntu 24.04 (noble) · arm64 · php8.2-cli
8.2.36-3+debsuryorg24.04.1+1

Ubuntu 24.04 (noble) · arm64 · php8.2-common
8.2.36-3+debsuryorg24.04.1+1

Ubuntu 24.04 (noble) · arm64 · php8.2-fpm
8.2.36-3+debsuryorg24.04.1+1

Ubuntu 24.04 (noble) · arm64 · Apache mod_php · libapache2-mod-php8.2
8.2.36-3+debsuryorg24.04.1+1


Source ↗
Fix confirmed
Checked at: 2026-11-21 01:39:06 UTC
PHP 8.3
sury · Ubuntu 24.04 (noble) · arm64
Package revisions by system

Ubuntu 24.04 (noble) · arm64 · php8.3-cli
8.3.37-3+debsuryorg24.04.1+1

Ubuntu 24.04 (noble) · arm64 · php8.3-common
8.3.37-3+debsuryorg24.04.1+1

Ubuntu 24.04 (noble) · arm64 · php8.3-fpm
8.3.37-3+debsuryorg24.04.1+1

Ubuntu 24.04 (noble) · arm64 · Apache mod_php · libapache2-mod-php8.3
8.3.37-3+debsuryorg24.04.1+1


Source ↗
Fix confirmed
Checked at: 2026-11-21 17:33:21 UTC
PHP 8.4
sury · Ubuntu 24.04 (noble) · arm64
Package revisions by system

Ubuntu 24.04 (noble) · arm64 · php8.4-cli
8.4.28-3+debsuryorg24.04.1+1

Ubuntu 24.04 (noble) · arm64 · php8.4-common
8.4.28-3+debsuryorg24.04.1+1

Ubuntu 24.04 (noble) · arm64 · php8.4-fpm
8.4.28-3+debsuryorg24.04.1+1

Ubuntu 24.04 (noble) · arm64 · Apache mod_php · libapache2-mod-php8.4
8.4.28-3+debsuryorg24.04.1+1


Source ↗
Fix confirmed
Checked at: 2026-11-21 17:33:34 UTC

A confirmed advisory records vendor publication. It does not inspect your machine. Status not confirmed means no verified package threshold is recorded for that combination.

Which source installed your PHP?

Ubuntu archive packages and third-party repositories have different revisions. The same upstream number can refer to different patch states.

This PHP vulnerability guide does not infer package publication from a source upload, a planned update or a release-candidate tag.

PHP 8.5: update, restart and verify

ubuntu-archive · Ubuntu 26.04

Follow the vendor security advisory for this PHP vulnerability. Confirm the complete installed package and the serving runtime.

Checked at 2026-10-30 19:15:48 UTC · Vendor source ↗

Update → Restart → Verify

Untested — follow vendor docs. Executable commands are withheld because this exact environment has not been tested. Back up and test in staging, apply the vendor update, restart the PHP runtime, and compare the installed package with the advisory.

Open vendor instructions ↗

ubuntu-archive · Ubuntu 26.10

Follow the vendor security advisory for this PHP vulnerability. Confirm the complete installed package and the serving runtime.

Checked at 2026-10-30 19:15:48 UTC · Vendor source ↗

Update → Restart → Verify

Untested — follow vendor docs. Executable commands are withheld because this exact environment has not been tested. Back up and test in staging, apply the vendor update, restart the PHP runtime, and compare the installed package with the advisory.

Open vendor instructions ↗

ondrej-ppa

Launchpad Jammy and Noble binary indexes contain the fixed supported releases for amd64 and arm64. See the architecture table for exact revisions; EOL backport contents require separate evidence.

Checked at 2026-10-22 03:28:58 UTC · Vendor source ↗

Update → Restart → Verify

Untested — follow vendor docs. Executable commands are withheld because this exact environment has not been tested. Back up and test in staging, apply the vendor update, restart the PHP runtime, and compare the installed package with the advisory.

Open vendor instructions ↗

sury · Ubuntu Ubuntu 24.04 (noble) · arm64

The current official Sury ARM64 binary index lists the package revisions below. Their downloaded SHA-256 values match the index, and the common package changelog names both PHP2Shell CVEs. The exact current builds were not installed or restarted in this check; earlier runtime screenshots cover prior builds. For upstream end-of-life branches, confirm vendor support.

Checked at 2026-11-21 17:33:16 UTC · Vendor source ↗

Update → Restart → Verify

Untested — follow vendor docs. Executable commands are withheld because this exact environment has not been tested. Back up and test in staging, apply the vendor update, restart the PHP runtime, and compare the installed package with the advisory.

Open vendor instructions ↗

sury · Ubuntu Ubuntu 22.04 (jammy) · arm64

The current official Sury ARM64 binary index lists the package revisions below. Their downloaded SHA-256 values match the index, and the common package changelog names both PHP2Shell CVEs. The exact current builds were not installed or restarted in this check; earlier runtime screenshots cover prior builds. For upstream end-of-life branches, confirm vendor support.

Checked at 2026-11-21 17:32:56 UTC · Vendor source ↗

Update → Restart → Verify

Untested — follow vendor docs. Executable commands are withheld because this exact environment has not been tested. Back up and test in staging, apply the vendor update, restart the PHP runtime, and compare the installed package with the advisory.

Open vendor instructions ↗

PHP 8.4: update, restart and verify

ondrej-ppa

Launchpad Jammy and Noble binary indexes contain the fixed supported releases for amd64 and arm64. See the architecture table for exact revisions; EOL backport contents require separate evidence.

Checked at 2026-10-22 03:28:58 UTC · Vendor source ↗

Update → Restart → Verify

Untested — follow vendor docs. Executable commands are withheld because this exact environment has not been tested. Back up and test in staging, apply the vendor update, restart the PHP runtime, and compare the installed package with the advisory.

Open vendor instructions ↗

sury · Ubuntu Ubuntu 22.04 (jammy) · arm64

The current official Sury ARM64 binary index lists the package revisions below. Their downloaded SHA-256 values match the index, and the common package changelog names both PHP2Shell CVEs. The exact current builds were not installed or restarted in this check; earlier runtime screenshots cover prior builds. For upstream end-of-life branches, confirm vendor support.

Checked at 2026-11-21 17:32:31 UTC · Vendor source ↗

Update → Restart → Verify

Untested — follow vendor docs. Executable commands are withheld because this exact environment has not been tested. Back up and test in staging, apply the vendor update, restart the PHP runtime, and compare the installed package with the advisory.

Open vendor instructions ↗

sury · Ubuntu Ubuntu 24.04 (noble) · arm64

The current official Sury ARM64 binary index lists the package revisions below. Their downloaded SHA-256 values match the index, and the common package changelog names both PHP2Shell CVEs. The exact current builds were not installed or restarted in this check; earlier runtime screenshots cover prior builds. For upstream end-of-life branches, confirm vendor support.

Checked at 2026-11-21 17:33:34 UTC · Vendor source ↗

Update → Restart → Verify

Untested — follow vendor docs. Executable commands are withheld because this exact environment has not been tested. Back up and test in staging, apply the vendor update, restart the PHP runtime, and compare the installed package with the advisory.

Open vendor instructions ↗
PHP 8.4.27 · Actual runtime screenshots

Local Ubuntu 24.04 ARM64 Docker test. Open an image at full size.

PHP 8.3: update, restart and verify

ubuntu-archive · Ubuntu 24.04

Ubuntu backports the fix. Compare the full package revision, not only the PHP version.

Checked at 2026-10-30 19:15:48 UTC · Vendor source ↗

Update

sudo apt-get update
apt-cache policy php8.3-fpm
sudo apt-get install -y --only-upgrade 'php8.3*' libapache2-mod-php8.3

Restart

service php8.3-fpm restart
service apache2 restart

Verify

dpkg-query -W -f='${Package} ${Version}\n' 'php*'
php -v

Tested in ubuntu:24.04 container (ARM64), 2026-10-21 UTC. Run only for this source and installed branch. Commands require administrator access.

ondrej-ppa

Launchpad Jammy and Noble binary indexes contain the fixed supported releases for amd64 and arm64. See the architecture table for exact revisions; EOL backport contents require separate evidence.

Checked at 2026-10-22 03:28:58 UTC · Vendor source ↗

Update → Restart → Verify

Untested — follow vendor docs. Executable commands are withheld because this exact environment has not been tested. Back up and test in staging, apply the vendor update, restart the PHP runtime, and compare the installed package with the advisory.

Open vendor instructions ↗

sury · Ubuntu Ubuntu 22.04 (jammy) · arm64

The current official Sury ARM64 binary index lists the package revisions below. Their downloaded SHA-256 values match the index, and the common package changelog names both PHP2Shell CVEs. The exact current builds were not installed or restarted in this check; earlier runtime screenshots cover prior builds. For upstream end-of-life branches, confirm vendor support.

Checked at 2026-11-21 17:33:06 UTC · Vendor source ↗

Update → Restart → Verify

Untested — follow vendor docs. Executable commands are withheld because this exact environment has not been tested. Back up and test in staging, apply the vendor update, restart the PHP runtime, and compare the installed package with the advisory.

Open vendor instructions ↗

sury · Ubuntu Ubuntu 24.04 (noble) · arm64

The current official Sury ARM64 binary index lists the package revisions below. Their downloaded SHA-256 values match the index, and the common package changelog names both PHP2Shell CVEs. The exact current builds were not installed or restarted in this check; earlier runtime screenshots cover prior builds. For upstream end-of-life branches, confirm vendor support.

Checked at 2026-11-21 17:33:21 UTC · Vendor source ↗

Update → Restart → Verify

Untested — follow vendor docs. Executable commands are withheld because this exact environment has not been tested. Back up and test in staging, apply the vendor update, restart the PHP runtime, and compare the installed package with the advisory.

Open vendor instructions ↗
PHP 8.3.36 · Actual runtime screenshots

Local Ubuntu 24.04 ARM64 Docker test. Open an image at full size.

PHP 8.2: update, restart and verify

ondrej-ppa

Launchpad Jammy and Noble binary indexes contain the fixed supported releases for amd64 and arm64. See the architecture table for exact revisions; EOL backport contents require separate evidence.

Checked at 2026-10-22 03:28:58 UTC · Vendor source ↗

Update → Restart → Verify

Untested — follow vendor docs. Executable commands are withheld because this exact environment has not been tested. Back up and test in staging, apply the vendor update, restart the PHP runtime, and compare the installed package with the advisory.

Open vendor instructions ↗

sury · Ubuntu Ubuntu 22.04 (jammy) · arm64

The current official Sury ARM64 binary index lists the package revisions below. Their downloaded SHA-256 values match the index, and the common package changelog names both PHP2Shell CVEs. The exact current builds were not installed or restarted in this check. For upstream end-of-life branches, confirm vendor support.

Checked at 2026-11-21 01:29:04 UTC · Vendor source ↗

Update → Restart → Verify

Untested — follow vendor docs. Executable commands are withheld because this exact environment has not been tested. Back up and test in staging, apply the vendor update, restart the PHP runtime, and compare the installed package with the advisory.

Open vendor instructions ↗

sury · Ubuntu Ubuntu 24.04 (noble) · arm64

The current Sury ARM64 package revisions match the official index and the common package changelog names both PHP2Shell CVEs. The listed installation commands and FPM restart were tested on the specified system; the Apache module package was installed. Earlier Apache HTTP and application screenshots document previous package builds, not these exact revisions.

Checked at 2026-11-21 01:39:06 UTC · Vendor source ↗

Update

apt-get update
apt-cache policy php8.2-cli php8.2-common php8.2-fpm
apt-get install -y php8.2-cli=8.2.36-3+debsuryorg24.04.1+1 php8.2-common=8.2.36-3+debsuryorg24.04.1+1 php8.2-fpm=8.2.36-3+debsuryorg24.04.1+1

Restart

systemctl restart php8.2-fpm

Verify

dpkg-query -W -f='${Package} ${Version} ${Architecture}\n' php8.2-cli php8.2-common php8.2-fpm
php8.2 -v
php-fpm8.2 -t
systemctl is-active php8.2-fpm
systemctl show php8.2-fpm -p MainPID -p ActiveState

Tested in Ubuntu 24.04 container (ARM64). Run only for this source and installed branch. Commands require administrator access.

Apache + PHP-FPM (event MPM)

Use this PHP vulnerability fix route when Apache should forward PHP to FPM. Complete the FPM package steps above first. These commands enable the packaged FPM configuration; do not combine them with the mod_php route.

Update

apt-get install -y apache2
a2enmod proxy_fcgi setenvif
a2enconf php8.2-fpm
apache2ctl configtest

Restart

systemctl restart php8.2-fpm apache2

Verify

systemctl is-active php8.2-fpm apache2
apache2ctl -M
Existing Apache mod_php (prefork MPM)

For existing mod_php sites only. This PHP vulnerability route selects prefork and disables the FPM configuration. Check other loaded PHP modules before changing it. New installations should use the FPM route above.

Update

apt-get install -y libapache2-mod-php8.2=8.2.36-3+debsuryorg24.04.1+1
a2disconf php8.2-fpm
a2dismod mpm_event
a2enmod mpm_prefork php8.2
apache2ctl configtest

Restart

systemctl restart apache2

Verify

dpkg-query -W -f='${Package} ${Version} ${Architecture}\n' libapache2-mod-php8.2
systemctl is-active apache2
apache2ctl -M

PHP 8.1: update, restart and verify

ubuntu-archive · Ubuntu 22.04

The Ubuntu archive includes a backport. The upstream branch remains end-of-life.

Checked at 2026-10-30 19:15:48 UTC · Vendor source ↗

Update

sudo apt-get update
apt-cache policy php8.1-fpm
sudo apt-get install -y --only-upgrade 'php8.1*' libapache2-mod-php8.1

Restart

service php8.1-fpm restart
service apache2 restart

Verify

dpkg-query -W -f='${Package} ${Version}\n' 'php*'
php -v

Tested in ubuntu:22.04 container (ARM64), 2026-10-21 UTC. Run only for this source and installed branch. Commands require administrator access.

ondrej-ppa

Launchpad Jammy and Noble binary indexes contain the fixed supported releases for amd64 and arm64. See the architecture table for exact revisions; EOL backport contents require separate evidence.

Checked at 2026-10-22 03:28:58 UTC · Vendor source ↗

Update → Restart → Verify

Untested — follow vendor docs. Executable commands are withheld because this exact environment has not been tested. Back up and test in staging, apply the vendor update, restart the PHP runtime, and compare the installed package with the advisory.

Open vendor instructions ↗

sury · Ubuntu Ubuntu 24.04 (noble) · arm64

The current official Sury ARM64 binary index lists the package revisions below. Their downloaded SHA-256 values match the index, and the common package changelog names both PHP2Shell CVEs. The exact current builds were not installed or restarted in this check. For upstream end-of-life branches, confirm vendor support.

Checked at 2026-11-21 01:29:37 UTC · Vendor source ↗

Update → Restart → Verify

Untested — follow vendor docs. Executable commands are withheld because this exact environment has not been tested. Back up and test in staging, apply the vendor update, restart the PHP runtime, and compare the installed package with the advisory.

Open vendor instructions ↗

sury · Ubuntu Ubuntu 22.04 (jammy) · arm64

The current official Sury ARM64 binary index lists the package revisions below. Their downloaded SHA-256 values match the index, and the common package changelog names both PHP2Shell CVEs. The exact current builds were not installed or restarted in this check. For upstream end-of-life branches, confirm vendor support.

Checked at 2026-11-21 01:29:14 UTC · Vendor source ↗

Update → Restart → Verify

Untested — follow vendor docs. Executable commands are withheld because this exact environment has not been tested. Back up and test in staging, apply the vendor update, restart the PHP runtime, and compare the installed package with the advisory.

Open vendor instructions ↗

PHP 8.0: update, restart and verify

ondrej-ppa

Launchpad Jammy and Noble binary indexes contain the fixed supported releases for amd64 and arm64. See the architecture table for exact revisions; EOL backport contents require separate evidence.

Checked at 2026-10-22 03:28:58 UTC · Vendor source ↗

Update → Restart → Verify

Untested — follow vendor docs. Executable commands are withheld because this exact environment has not been tested. Back up and test in staging, apply the vendor update, restart the PHP runtime, and compare the installed package with the advisory.

Open vendor instructions ↗

sury · Ubuntu Ubuntu 24.04 (noble) · arm64

The current official Sury ARM64 binary index lists the package revisions below. Their downloaded SHA-256 values match the index, and the common package changelog names both PHP2Shell CVEs. The exact current builds were not installed or restarted in this check. For upstream end-of-life branches, confirm vendor support.

Checked at 2026-11-21 01:29:48 UTC · Vendor source ↗

Update → Restart → Verify

Untested — follow vendor docs. Executable commands are withheld because this exact environment has not been tested. Back up and test in staging, apply the vendor update, restart the PHP runtime, and compare the installed package with the advisory.

Open vendor instructions ↗

PHP 7.4: update, restart and verify

ondrej-ppa

Launchpad Jammy and Noble binary indexes contain the fixed supported releases for amd64 and arm64. See the architecture table for exact revisions; EOL backport contents require separate evidence.

Checked at 2026-10-22 03:28:58 UTC · Vendor source ↗

Update → Restart → Verify

Untested — follow vendor docs. Executable commands are withheld because this exact environment has not been tested. Back up and test in staging, apply the vendor update, restart the PHP runtime, and compare the installed package with the advisory.

Open vendor instructions ↗

ubuntu-esm · Ubuntu 20.04

USN-8948-2 confirms the vendor backport. Ubuntu Pro access is required; entitled-package installation has not been tested here.

Checked at 2026-10-22 03:29:00 UTC · Vendor source ↗

Update → Restart → Verify

Untested — follow vendor docs. Executable commands are withheld because this exact environment has not been tested. Back up and test in staging, apply the vendor update, restart the PHP runtime, and compare the installed package with the advisory.

Open vendor instructions ↗

sury · Ubuntu Ubuntu 24.04 (noble) · arm64

The current official Sury ARM64 binary index lists the package revisions below. Their downloaded SHA-256 values match the index, and the common package changelog names both PHP2Shell CVEs. The exact current builds were not installed or restarted in this check. For upstream end-of-life branches, confirm vendor support.

Checked at 2026-11-21 01:29:41 UTC · Vendor source ↗

Update → Restart → Verify

Untested — follow vendor docs. Executable commands are withheld because this exact environment has not been tested. Back up and test in staging, apply the vendor update, restart the PHP runtime, and compare the installed package with the advisory.

Open vendor instructions ↗

sury · Ubuntu Ubuntu 22.04 (jammy) · arm64

The current official Sury ARM64 binary index lists the package revisions below. Their downloaded SHA-256 values match the index, and the common package changelog names both PHP2Shell CVEs. The exact current builds were not installed or restarted in this check; earlier runtime screenshots cover prior builds. For upstream end-of-life branches, confirm vendor support.

Checked at 2026-11-21 17:32:26 UTC · Vendor source ↗

Update → Restart → Verify

Untested — follow vendor docs. Executable commands are withheld because this exact environment has not been tested. Back up and test in staging, apply the vendor update, restart the PHP runtime, and compare the installed package with the advisory.

Open vendor instructions ↗

PHP 7.2: update, restart and verify

ubuntu-esm · Ubuntu 18.04

USN-8948-2 confirms the vendor backport. Ubuntu Pro access is required; entitled-package installation has not been tested here.

Checked at 2026-10-22 03:29:00 UTC · Vendor source ↗

Update → Restart → Verify

Untested — follow vendor docs. Executable commands are withheld because this exact environment has not been tested. Back up and test in staging, apply the vendor update, restart the PHP runtime, and compare the installed package with the advisory.

Open vendor instructions ↗

PHP 7.0: update, restart and verify

ubuntu-esm · Ubuntu 16.04

USN-8948-2 confirms the vendor backport. Ubuntu Pro access is required; entitled-package installation has not been tested here.

Checked at 2026-10-22 03:29:00 UTC · Vendor source ↗

Update → Restart → Verify

Untested — follow vendor docs. Executable commands are withheld because this exact environment has not been tested. Back up and test in staging, apply the vendor update, restart the PHP runtime, and compare the installed package with the advisory.

Open vendor instructions ↗

PHP 5.5: update, restart and verify

ubuntu-esm · Ubuntu 14.04

USN-8948-2 confirms the vendor backport. Ubuntu Pro access is required; entitled-package installation has not been tested here.

Checked at 2026-10-22 03:29:00 UTC · Vendor source ↗

Update → Restart → Verify

Untested — follow vendor docs. Executable commands are withheld because this exact environment has not been tested. Back up and test in staging, apply the vendor update, restart the PHP runtime, and compare the installed package with the advisory.

Open vendor instructions ↗

Repository publication by architecture

These PHP vulnerability package observations describe the exact binary index, not a tested installation. For end-of-life branches, a new package date alone does not prove the contents of a backported security fix. Before choosing a PHP vulnerability update, match your operating-system release and architecture. Do not switch repositories solely because another architecture has a newer build.

sury · jammy · amd64

Checked at: 2026-10-21T23:22:27.074675+00:00 · Repository index ↗

PackagePublished revision
php7.4-cli1:7.4.33-31+0~20261021.121+ubuntu22.04~1.gbpe9c428
php8.0-cli1:8.0.30-25+0~20261021.88+ubuntu22.04~1.gbpabebea
php8.1-cli8.1.34-9+0~20261021.82+ubuntu22.04~1.gbp4e430a
php8.2-cli8.2.35-1+0~20261021.94+ubuntu22.04~1.gbp8bff78
php8.3-cli8.3.36-1+0~20261021.88+ubuntu22.04~1.gbp250f7c
php8.4-cli8.4.27-1+0~20261021.57+ubuntu22.04~1.gbp7636b9
php8.5-cli8.5.12-1+0~20261021.27+ubuntu22.04~1.gbp1a3e8a
sury · jammy · arm64

Checked at: 2026-11-21T17:33:04.964798+00:00 · Repository index ↗

PackagePublished revision
php7.4-cli1:7.4.33-38+debsuryorg22.04.1+1
php8.0-cli1:8.0.30-25+0~20261021.88+ubuntu22.04~1.gbpabebea
php8.1-cli8.1.34-15+debsuryorg22.04.1+1
php8.2-cli8.2.36-3+debsuryorg22.04.1+1
php8.3-cli8.3.37-3+debsuryorg22.04.1+1
php8.4-cli8.4.28-3+debsuryorg22.04.1+1
php8.5-cli8.5.13-3+debsuryorg22.04.1+1
sury · noble · amd64

Checked at: 2026-10-21T23:22:27.205680+00:00 · Repository index ↗

PackagePublished revision
php7.4-cli1:7.4.33-31+0~20261021.121+ubuntu24.04~1.gbpe9c428
php8.0-cli1:8.0.30-25+0~20261021.88+ubuntu24.04~1.gbpabebea
php8.1-cli8.1.34-9+0~20261021.82+ubuntu24.04~1.gbp4e430a
php8.2-cli8.2.35-1+0~20261021.94+ubuntu24.04~1.gbp8bff78
php8.3-cli8.3.36-1+0~20261021.88+ubuntu24.04~1.gbp250f7c
php8.4-cli8.4.27-1+0~20261021.57+ubuntu24.04~1.gbp7636b9
php8.5-cli8.5.12-1+0~20261021.27+ubuntu24.04~1.gbp1a3e8a
sury · noble · arm64

Checked at: 2026-11-21T17:33:29.356842+00:00 · Repository index ↗

PackagePublished revision
php7.4-cli1:7.4.33-38+debsuryorg24.04.1+1
php8.0-cli1:8.0.30-32+debsuryorg24.04.1+1
php8.1-cli8.1.34-15+debsuryorg24.04.1+1
php8.2-cli8.2.36-3+debsuryorg24.04.1+1
php8.3-cli8.3.37-3+debsuryorg24.04.1+1
php8.4-cli8.4.28-3+debsuryorg24.04.1+1
php8.5-cli8.5.13-3+debsuryorg24.04.1+1
ppa · jammy · amd64

Checked at: 2026-10-21T23:22:28.451217+00:00 · Repository index ↗

PackagePublished revision
php7.4-cli1:7.4.33-31+ubuntu22.04.1+deb.sury.org+1
php8.0-cli1:8.0.30-25+ubuntu22.04.1+deb.sury.org+1
php8.1-cli8.1.34-9+ubuntu22.04.1+deb.sury.org+1
php8.2-cli8.2.35-1+ubuntu22.04.1+deb.sury.org+1
php8.3-cli8.3.36-1+ubuntu22.04.1+deb.sury.org+1
php8.4-cli8.4.27-1+ubuntu22.04.1+deb.sury.org+1
php8.5-cli8.5.12-1+ubuntu22.04.1+deb.sury.org+1
ppa · jammy · arm64

Checked at: 2026-10-21T23:22:28.653871+00:00 · Repository index ↗

PackagePublished revision
php7.4-cli1:7.4.33-31+ubuntu22.04.1+deb.sury.org+1
php8.0-cli1:8.0.30-25+ubuntu22.04.1+deb.sury.org+1
php8.1-cli8.1.34-9+ubuntu22.04.1+deb.sury.org+1
php8.2-cli8.2.35-1+ubuntu22.04.1+deb.sury.org+1
php8.3-cli8.3.36-1+ubuntu22.04.1+deb.sury.org+1
php8.4-cli8.4.27-1+ubuntu22.04.1+deb.sury.org+1
php8.5-cli8.5.12-1+ubuntu22.04.1+deb.sury.org+1
ppa · noble · amd64

Checked at: 2026-10-21T23:22:28.672436+00:00 · Repository index ↗

PackagePublished revision
php7.4-cli1:7.4.33-31+ubuntu24.04.1+deb.sury.org+1
php8.0-cli1:8.0.30-25+ubuntu24.04.1+deb.sury.org+1
php8.1-cli8.1.34-9+ubuntu24.04.1+deb.sury.org+1
php8.2-cli8.2.35-1+ubuntu24.04.1+deb.sury.org+1
php8.3-cli8.3.36-1+ubuntu24.04.1+deb.sury.org+1
php8.4-cli8.4.27-1+ubuntu24.04.1+deb.sury.org+1
php8.5-cli8.5.12-1+ubuntu24.04.1+deb.sury.org+1
ppa · noble · arm64

Checked at: 2026-10-21T23:22:28.910028+00:00 · Repository index ↗

PackagePublished revision
php7.4-cli1:7.4.33-31+ubuntu24.04.1+deb.sury.org+1
php8.0-cli1:8.0.30-25+ubuntu24.04.1+deb.sury.org+1
php8.1-cli8.1.34-9+ubuntu24.04.1+deb.sury.org+1
php8.2-cli8.2.35-1+ubuntu24.04.1+deb.sury.org+1
php8.3-cli8.3.36-1+ubuntu24.04.1+deb.sury.org+1
php8.4-cli8.4.27-1+ubuntu24.04.1+deb.sury.org+1
php8.5-cli8.5.12-1+ubuntu24.04.1+deb.sury.org+1

If you cannot update immediately

Temporary mitigation is not a complete fix. A PHP vulnerability affecting web requests needs a verified runtime update. Have your administrator assess the availability and operational impact of these measures.

Disable session upload progress before request parsing

session.upload_progress.enabled = Off

Set this in the configuration used by the website runtime, before request parsing, then restart every serving PHP worker. Do not rely on application-level configuration changes or FPM per-directory overrides. Disabling it removes PHP's built-in session upload-progress feature.

Blocks the confirmed session upload-progress paths of CVE-2026-109619 only. It does not fix CVE-2026-109618 or every stale-state path. Test the application after changing configuration. A successful configuration check does not demonstrate that exploitation is impossible.

What about the other session settings?

The cleanup, strict-mode, cookie-only and HttpOnly settings sometimes shared alongside this measure concern session housekeeping or general session hardening. PHP's advisory does not identify them as fixes for these two vulnerabilities. Do not mark a server patched after applying that five-line snippet.

  • For the out-of-memory PHP vulnerability, the advisory describes administratively removing the memory limit and restricting request sizes. Removing the memory limit can exhaust host resources and is still incomplete.
  • For the branch covered by the advisory, PHP also lists disabling fatal-error backtraces. Correct recurring startup configuration warnings and restart all workers.
  • Read the exact settings and limitations in the PHP security advisory before making further configuration changes.

Checked at 2026-10-21 23:25:00 UTC. PHP stale-state advisory: mitigation limits ↗ PHP session configuration reference ↗

After the PHP security update

Test critical requests, application logs, scheduled tasks and background workers. Keep a record of the package source and revision used to resolve this PHP vulnerability. If the branch is end-of-life, plan the next supported-version migration.

Plan a supported-version migration →

Common questions

Why does my PHP version still look old after updating?

Distribution vendors often backport a PHP vulnerability fix without changing the upstream version. Match the installed package revision to your vendor advisory and confirm the web runtime.

Does updating command-line PHP also update my website?

It depends on your installed runtimes. The command line, PHP-FPM and a hosting panel can use different binaries. Verify the runtime serving each website after the PHP security update.

Do I need to restart PHP workers?

Yes. Follow the vendor restart procedure for all serving workers, including PHP-FPM, Apache and long-running application workers. A package update alone does not prove every process is running the new runtime.

WordPress and extension compatibility test

This PHP vulnerability repair package passed WordPress 7.1.3 core tests on Ubuntu 24.04 ARM64 with PHP 8.2.35, Twenty Twenty-Five 1.5 and MariaDB 10.11.14. Both Apache + FPM and mod_php were tested.

Login, block-editor publishing and editing, REST requests, permalinks, image upload and thumbnails passed. WordPress cron ran through its real loopback endpoint; published content survived service restarts.

The PHP vulnerability compatibility run passed 33 extension and integration checks in each handler. Redis and APCu passed read/write tests; The core-only baseline used the default object cache.

Tested PHP extensions
  • mysqli · PDO MySQL · PDO SQLite · SQLite3
  • cURL · OpenSSL · Sodium · hash · JSON · zlib
  • DOM · SimpleXML · XMLReader · XMLWriter
  • GD · Imagick · EXIF · fileinfo
  • mbstring · intl · BCMath · iconv · PCRE
  • OPcache · APCu · Redis

Scope: the listed core, default theme and workflows. Unlisted plugins and custom themes, mail delivery, older-version upgrades and load testing remain untested. WordPress recommends PHP 8.4 or later for new production deployments.

Checked at: 2026-10-25 04:28:19 UTC

Full test record and package revisions →

WooCommerce and persistent Redis cache

WooCommerce 11.2.1 and the free Redis Object Cache 3.0.0 passed together on the same Ubuntu 24.04 ARM64 PHP 8.2.35 packages. Both Apache + FPM and mod_php used WordPress 7.1.3, PhpRedis 6.3.0, Redis 7.0.15 and a 256M web memory limit.

Tested store and cache workflows

Each handler passed 16 store checks: simple/variable products, quantities, coupons, separate customer carts, block and classic checkout, offline cash-on-delivery orders, HPOS storage, stock changes and cancellation. No real payment was charged.

Each handler passed 9 cache checks: persistence between requests, deletion, expiry, option/product invalidation, flushing, application-service restart and reconnection after Redis restart. All 33 extension checks also passed.

Untested: live payment providers, tax/carrier integrations, paid add-ons, other plugins/themes, multisite, Redis cluster/failover or backend-down behavior, migrations, mail delivery and load. WooCommerce recommends PHP 8.3 or later for new deployments; this is a test of the existing 8.2 repair path.

Checked at: 2026-10-25 05:41:17 UTC

Full plugin test record →

PHP 8.3.36 · WordPress and extension compatibility

This PHP vulnerability repair package passed WordPress 7.1.3 core tests on Ubuntu 24.04 ARM64: PHP 8.3.36, Twenty Twenty-Five 1.5 and MariaDB 10.11.14, using both Apache + FPM and mod_php.

Each handler passed 9 browser workflows and 33 extension/integration checks. Cron executed through the real WordPress loopback; published content survived systemd service restarts.

Tested workflows and extensions

Login, block-editor publishing/editing, authenticated REST, permalinks, image upload and thumbnails. Extension checks cover database access, HTTPS, image processing, international text, XML, ZIP, cryptography, OPcache, APCu and Redis.

  • mysqli · PDO MySQL · PDO SQLite · SQLite3
  • cURL · OpenSSL · Sodium · hash · JSON · zlib
  • DOM · SimpleXML · XMLReader · XMLWriter
  • GD · Imagick · EXIF · fileinfo
  • mbstring · intl · BCMath · iconv · PCRE
  • OPcache · APCu · Redis
  • ZipArchive

The core baseline used the default object cache; the separate WooCommerce/Redis results follow below. Other plugins, custom themes, mail delivery, old-version migration and load remain untested for this branch.

Checked at: 2026-10-25 08:55:01 UTC

Full record and exact package revisions →

WooCommerce and persistent Redis cache

This PHP vulnerability compatibility run passed WooCommerce 11.2.1 and free Redis Object Cache 3.0.0 together on WordPress 7.1.3, PHP 8.3.36, Ubuntu 24.04 ARM64. Both Apache + FPM and mod_php used PhpRedis 6.3.0, Redis 7.0.15 and a 256M web memory limit.

Tested store and cache workflows

Each handler passed 16 store checks: simple/variable products, quantities, coupons, separate carts, block/classic checkout, offline COD orders, HPOS, stock deduction and cancellation restoration. No real payment was charged.

Each handler passed 9 cache checks: persistence between requests, delete/expiry, option/product invalidation, flush, application-service restart and Redis restart reconnection. All 33 extension checks passed with both plugins active.

Untested: real payment/tax/carrier integrations, paid add-ons/Object Cache Pro, other plugins/themes, multisite, Redis cluster/failover/backend-down behavior, old-version migration, mail delivery and load.

Checked at: 2026-10-25 09:19:13 UTC

Full plugin test record →

PHP 8.4.27 · WordPress and extension compatibility

This PHP vulnerability repair package passed WordPress 7.1.3 core tests on Ubuntu 24.04 ARM64: PHP 8.4.27, Twenty Twenty-Five 1.5 and MariaDB 10.11.14, using both Apache + FPM and mod_php.

Each handler passed 9 browser workflows and 33 extension/integration checks. Cron executed through the real WordPress loopback; published content survived systemd service restarts.

Tested workflows and extensions

Login, block-editor publishing/editing, authenticated REST, permalinks, image upload and thumbnails. Extension checks cover database access, HTTPS, image processing, international text, XML, ZIP, cryptography, OPcache, APCu and Redis.

  • mysqli · PDO MySQL · PDO SQLite · SQLite3
  • cURL · OpenSSL · Sodium · hash · JSON · zlib
  • DOM · SimpleXML · XMLReader · XMLWriter
  • GD · Imagick · EXIF · fileinfo
  • mbstring · intl · BCMath · iconv · PCRE
  • OPcache · APCu · Redis
  • ZipArchive

The core baseline used the default object cache; the separate WooCommerce/Redis results follow below. Other plugins, custom themes, mail delivery, old-version migration and load remain untested for this branch.

Checked at: 2026-10-25 08:55:06 UTC

Full record and exact package revisions →

WooCommerce and persistent Redis cache

This PHP vulnerability compatibility run passed WooCommerce 11.2.1 and free Redis Object Cache 3.0.0 together on WordPress 7.1.3, PHP 8.4.27, Ubuntu 24.04 ARM64. Both Apache + FPM and mod_php used PhpRedis 6.3.0, Redis 7.0.15 and a 256M web memory limit.

Tested store and cache workflows

Each handler passed 16 store checks: simple/variable products, quantities, coupons, separate carts, block/classic checkout, offline COD orders, HPOS, stock deduction and cancellation restoration. No real payment was charged.

Each handler passed 9 cache checks: persistence between requests, delete/expiry, option/product invalidation, flush, application-service restart and Redis restart reconnection. All 33 extension checks passed with both plugins active.

Untested: real payment/tax/carrier integrations, paid add-ons/Object Cache Pro, other plugins/themes, multisite, Redis cluster/failover/backend-down behavior, old-version migration, mail delivery and load.

Checked at: 2026-10-25 09:18:52 UTC

Full plugin test record →

Sources & verification