Overview
The PHP security team has released PHP 8.5.13, 8.4.28, 8.3.37, and 8.2.36. These releases fix seven critical vulnerabilities, each rated 9.2 under CVSS v4.0, along with four high-severity vulnerabilities. Several of the critical vulnerabilities can lead to remote code execution. Most of these vulnerabilities are only exploitable under specific configurations, but some of them affect default PHP setups. We recommend updating every PHP version on every server.Affected PHP versions
PHP 8.1 and earlier have reached end of life, so the PHP team did not publish new releases for them. Instead, Ondřej Surý backported the fixes to these versions as new package revisions. The PHP version number stays the same, so
php -v reports the same version before and after the update. To confirm that one of these versions is patched, check that the installed package revision matches the table above, or is newer:
Vulnerabilities
Critical
High severity
- A local privilege escalation in PHP-FPM.
- A PHAR signature verification bypass.
- URLs with a mixed-case scheme, such as
HTTPS://, being sent in plaintext. - A denial of service through folded HTTP headers.
Where Forge installs PHP from
Forge installs PHP from Ondřej Surý’s PHP packages. The package source depends on your server’s Ubuntu version:
Patched packages usually reach these repositories shortly after the upstream release, but they may not be available the moment PHP publishes the release. For this release, packages for Ubuntu 22.04 and 24.04 took several hours to reach the
ppa.setup-php.com mirror.
Patch status by Ubuntu version
Patched PHP packages are published separately for each Ubuntu version and processor architecture, so availability depends on your server:
To check your server’s architecture, run:
Checking your exposure
The steps below help you understand how exposed your servers are before you patch. They do not replace the update: every server running PHP 8.2 or later should be updated, regardless of these results.FastCGI connection reuse
The PHP-FPM request smuggling vulnerability (CVE-2026-129289) is fully exploitable when Nginx keeps FastCGI connections open between requests. Check whether any of your Nginx configuration files enable this option:fastcgi_keep_conn on;, remove that line from the site’s Nginx configuration file and update PHP as soon as possible. If you use Nginx templates, remove the line from those templates as well so that new sites do not inherit it.
Session upload progress
The session serializer mismatch (CVE-2026-115560) requiressession.upload_progress to be enabled. PHP installations created by Forge since October 31, 2026 disable this option by default, but older installations may still have it enabled. Check every installed PHP version with:
Exception arguments
The magic method backtrace vulnerability (CVE-2026-129474) only affects PHP 8.5 whenzend.exception_ignore_args is set to Off. Check the PHP-FPM configuration with:
What you need to do
Step 1: Check your current PHP version
SSH into your server and run the following command. It checks every PHP version installed on the server and prints the version used by both the CLI and PHP-FPM, along with the installed package version:Step 2: Update PHP
You may update PHP from the Forge dashboard or manually via SSH. We recommend the Forge dashboard because it also repairs the server’s PHP package source before upgrading. Check the Patch status by Ubuntu version table first, as fixed packages are not yet available for every Ubuntu version and architecture. If the update does not install the fixed version listed in the Affected PHP versions table, the fixed package is not available for your server yet: wait a little while and try again.Updating PHP restarts the PHP-FPM service for that version. Sites running that version may experience a few seconds of downtime, so you may want to update during a period of low traffic.
- Forge dashboard
- Manually via SSH
- Navigate to your server in the Forge dashboard and open Runtime > PHP.
- Click the … menu next to the PHP version you want to patch.
- Click Update PHP X.X and confirm the update.
root and contains the manual commands above, then run it against all of your servers.