PHP 8.5.12, 8.4.27, 8.3.36, and 8.2.35 are out, and PHP has published the official advisory confirming CVE-2026-109618 (GHSA-w8hw-w9fx-j79w) and CVE-2026-109619 (GHSA-6wmf-4rv5-p3rp).
Since then, we’ve shipped three Trellis releases. Update to the latest, v1.32.2:
- v1.32.0 switches PHP from the
ppa:ondrej/phpLaunchpad PPA to packages.sury.org (#1680). Ondřej Surý maintains both, but packages.sury.org is the one he now recommends, and on release day it had the patched builds before the PPA. - v1.32.1 removes the old PPA on existing servers (#1696). v1.32.0 left it configured, which could make provisioning hang while the PPA was overloaded.
- v1.32.2 disables
session.upload_progress.enabledby default (#1697). PHP now recommends keeping it off until the next PHP release to block another vector (CVE-2026-115560). WordPress doesn’t use it.
Updating just the PHP role
If you don’t want to upgrade all of Trellis right now, you can apply only these three changes. From your project root (the directory that contains trellis/):
curl -sL https://github.com/roots/trellis/commit/30c6a10e27ffa7b9e996e89bb1bda9b2bd48d128.diff | git apply --directory=trellis
curl -sL https://github.com/roots/trellis/commit/5881bdf94a986378b0f05485643cc6917d810f34.diff | git apply --directory=trellis
curl -sL https://github.com/roots/trellis/commit/3f37e7f1c5e9f0de8c99e2b16f3a584f37ea517d.diff | git apply --directory=trellis
If you already applied the first two, run only the third. If your trellis/ directory is its own git repo, run them from inside trellis/ without --directory=trellis. If the patches don’t apply cleanly, copy the changes from the #1680, #1696, and #1697 diffs by hand.
Upgrading PHP
Provision with the new repository and upgrade PHP in one step:
trellis provision --extra-vars apt_package_state=latest --tags php production
Then on the server, as your admin user:
sudo service php8.4-fpm restart && php -v
Swap 8.4 for your php_version. You should see 8.4.27 (or 8.3.36, 8.5.12, 8.2.35). Repeat for staging and development.
If you already upgraded PHP, run trellis provision --tags php production to pick up the upload progress change. PHP-FPM reloads automatically. If you added the session.upload_progress.enabled = Off workaround from earlier in this thread by editing php-fpm.ini.j2, keep it or swap it for the new default from #1697, but don’t remove it on its own.