Blog

PHP vulnerabilities (CVE-2026-129291 and others)

ServerPilot has updated PHP 8.2 and later on all servers for eleven critical and high PHP vulnerabilities, including a PHP-FPM privilege escalation vulnerability (CVE-2026-129291).

Check your servers with the AI Assistant. In the ServerPilot dashboard, ask the AI Assistant: “Which of my servers still need the fix for CVE-2026-129291?”

The PHP project fixed the vulnerabilities in PHP 8.2.36, PHP 8.3.37, PHP 8.4.28, and PHP 8.5.13, released on November 19, 2026 (PHP 8 changelog). PHP 8.6.0 includes the same fixes.

We finished updating PHP on all servers on November 19, 2026.

PHP 8.1 and earlier are end-of-life and do not receive fixes for these vulnerabilities. We recommend that all apps use PHP 8.2 or later.

About the vulnerabilities

PHP-FPM privilege escalation (CVE-2026-129291)

CVE-2026-129291 is a use-after-free bug in how the PHP-FPM master process watches the output of its worker processes. In some cases, an attacker who can run PHP code in a PHP-FPM worker process can use it to run commands as the user the PHP-FPM master process runs as, which is normally root. Exploiting it depends on timing and memory layout, but the researchers who reported it showed it working. The PHP project rated it high (CVSS 8.8).

This vulnerability is the most serious for servers that host apps for more than one system user. Each app’s PHP code runs as that app’s system user, which keeps apps owned by different system users separated from each other. This vulnerability can let an attacker get around that separation. An attacker who can run PHP code as one app’s system user, for example through a vulnerable WordPress plugin or through that user’s own SFTP or SSH access, may be able to gain root access and with it access to every app on the server.

The vulnerability affects these PHP versions:

  • PHP 8.5.12 and earlier PHP 8.5 releases
  • PHP 8.4.27 and earlier PHP 8.4 releases
  • PHP 8.3.36 and earlier PHP 8.3 releases
  • PHP 8.2.7 through PHP 8.2.35
  • PHP 8.1.20 and later PHP 8.1 releases, which will not be fixed

Other critical vulnerabilities

The PHP project rated these vulnerabilities critical (CVSS 9.2). Each one requires specific settings or app behavior to be exploited.

  • CVE-2026-129474 (PHP 8.5 only): a use-after-free bug when a fatal error, such as running out of memory, happens while PHP is calling an object’s __call() or __callStatic() method. An attacker who can make HTTP requests to an app can trigger it if the app has a suitable code path.
  • CVE-2026-129289: a request smuggling bug in PHP-FPM that can let an attacker run PHP code when the web server reuses its connections to PHP-FPM.
  • CVE-2026-129496: a use-after-free bug in PHP’s timezone cache after PHP logs a warning during startup.
  • CVE-2026-115560: a bug that can let an attacker create PHP objects from session data when an app reads sessions in a different format than they were written.
  • CVE-2026-126714: a bug that can leave a session file holding a mix of old and new session data when writing the session is interrupted.
  • CVE-2026-129182 (PHP 8.5 only): a use-after-free bug when a fatal error happens after a request has finished.
  • CVE-2026-129481 (PHP 8.3 through PHP 8.5): a use-after-free bug when a fatal error happens while PHP is closing a session.

Other high vulnerabilities

  • CVE-2026-127960: a denial of service bug when an app uses PHP’s HTTP stream functions, such as file_get_contents(), to fetch a URL from a server that sends a specially crafted response (CVSS 8.7).
  • CVE-2026-128064: PHP’s HTTP and FTP stream functions send requests without encryption when the URL’s https:// or ftps:// is written with uppercase letters, such as HTTPS:// (CVSS 8.2).
  • CVE-2026-128090: a bug that lets an attacker who can modify a PHAR file signed with OpenSSL replace its contents without the signature check failing (CVSS 7.7).

Affected PHP versions

PHP versionAffectedFixed package version
PHP 8.6No, PHP 8.6.0 includes the fixessp-php8.6 8.6.0-1
PHP 8.5Yessp-php8.5 8.5.13-1
PHP 8.4Yessp-php8.4 8.4.28-1
PHP 8.3Yessp-php8.3 8.3.37-1
PHP 8.2Yessp-php8.2 8.2.36-1
PHP 8.1 and earlierYes, for some of these vulnerabilitiesNo update available

Each fixed package version is the same on every Ubuntu release that ServerPilot provides that PHP version for.

What we have done

We have installed the updated PHP packages listed above on all servers that have automatic updates enabled (the ServerPilot default). Servers that were offline when we updated them install the updates during their next automatic update.

When an updated PHP package is installed, it tests that PHP version’s PHP-FPM configuration and, if the test passes, restarts that version’s PHP-FPM so the fixed version is running.

Servers that are not in a healthy state, or that have automatic updates disabled, may not have received the updated PHP packages. See below for how to verify the updated PHP packages were installed on a server.

Change in these PHP releases

These PHP releases disable PHP’s session upload progress feature (session.upload_progress.enabled) by default. Apps that rely on the previous default to show the progress of file uploads may no longer receive upload progress information.

What you should do

Confirm the PHP packages were updated

To determine the versions of the PHP packages installed on a server, SSH into the server and run the following command:

dpkg --list 'sp-php*'

If the version of each installed sp-php8.2 through sp-php8.6 package is equal to or greater than the fixed version in the table above, the updated packages are installed.

If a package has not been updated, SSH into your server as root and run the following command to update the PHP packages:

apt-get update && apt-get install --only-upgrade 'sp-php*'

If this command fails, please check your server for problems such as a full disk and contact support.

Move apps to a supported PHP version

PHP 8.1 and earlier are end-of-life and have not been fixed for these vulnerabilities. CVE-2026-129291 affects PHP 8.1.20 and later PHP 8.1 releases.

If any of your apps use PHP 8.1 or earlier, you should change the app’s PHP version to PHP 8.2 or later.

Servers running Ubuntu 14.04 can’t run PHP 8.2 or later. If a server is running Ubuntu 14.04, upgrade the server to Ubuntu 22.04 or later.

Contact support

If you have questions about your server, please contact support.