# November PHP Security Release: Patching PHP on Trellis Servers

PHP shipped security releases today, November 19. The fixed versions are 8.2.36, 8.3.37, 8.4.28, and 8.5.13, and every supported branch is affected.

The releases fix more than a dozen vulnerabilities. Four are rated critical (CVSS 9.2), and three of those can lead to remote code execution. PHP says the critical issues "require either non-default configuration or uncommon setups."

## The critical vulnerabilities

- [CVE-2026-129289](https://github.com/php/php-src/security/advisories/GHSA-qc49-hpvq-g2w6): PHP-FPM request smuggling. It requires Nginx to keep FastCGI connections open between requests (`fastcgi_keep_conn on`). Trellis doesn't enable this, so check your own Nginx includes.
- [CVE-2026-115560](https://github.com/php/php-src/security/advisories/GHSA-658j-r8rw-q6mx): session serializer mismatch. This is the issue PHP warned about in October. It requires session upload progress, which [Trellis v1.32.2](https://github.com/roots/trellis/releases/tag/v1.32.2) and later disable by default.
- [CVE-2026-126714](https://github.com/php/php-src/security/advisories/GHSA-fm2m-fjf5-v3cp): partially overwritten session files. It affects PHP's default file-based session storage. The attacker needs a way to put data into the session, such as session upload progress or a plugin that stores user input in PHP sessions.
- [CVE-2026-129496](https://github.com/php/php-src/security/advisories/GHSA-gr4f-wgx5-jpfv): timezone cache use-after-free. It requires a warning at PHP startup to be written to a PHP error log file. Trellis doesn't configure one by default.

Trellis's default configuration avoids the conditions PHP describes for each of these, but plugins and custom configuration can change that. Upgrade either way.

## Upgrading PHP on Trellis

The builds are already available on packages.sury.org. To confirm your server sees them, run this on your server:

```
sudo apt-get update && apt-cache policy php8.3-fpm
```

Swap `8.3` for your `php_version`. Once the "Candidate" version is newer than "Installed", provision:

```
trellis provision --extra-vars apt_package_state=latest --tags php production
```

Confirm the version on the server:

```
php -v
```

You should see 8.3.37 (or 8.2.36, 8.4.28, 8.5.13). Repeat for staging and development.

Trellis versions older than v1.32.0 install PHP from the Launchpad PPA (`ppa:ondrej/php`), which can take longer to get new builds. Update Trellis to switch to packages.sury.org.

If you're on a Trellis version older than v1.32.2, also set `php_session_upload_progress_enabled: 'Off'` in `group_vars/all/main.yml`. The new PHP releases turn session upload progress off by default as well.

See [Keeping Trellis Servers Updated](https://roots.io/trellis/docs/server-updates/) for more on upgrading PHP, Nginx, and MariaDB.

## Not using Trellis?

Run `php -v` on your server or check with your host. Any version below the ones listed above is vulnerable. Set `session.upload_progress.enabled = Off` if you don't need it, and make sure your web server isn't keeping FastCGI connections open.

## More info

- [PHP's release announcements](https://www.php.net/archive/2026.php)
- [PHP 8 ChangeLog](https://www.php.net/ChangeLog-8.php)
- [PHP security advisories](https://github.com/php/php-src/security/advisories)

Questions or problems upgrading? Let us know!