Year-end offer: 30% off your first 6 months. Order by 31 December.

PHP security fixes, November 2026: what to update and why

On 19 November 2026 the PHP project released new versions of every supported branch. They fix up to 18 security holes, several of them in PHP-FPM and in sessions, which almost every PHP site uses. Here's what was fixed and how to make sure your server has it.

Short version: update to PHP 8.2.36, 8.3.37, 8.4.28 or 8.5.13 (or a distribution package that includes these fixes), then restart PHP-FPM. PHP 8.1 and older get no fixes at all. PHP 8.2 gets its last fixes this year.

The new versions

PHPNew versionCVEs fixedFixes until
8.68.6.018end of 2030
8.58.5.1318end of 2029
8.48.4.2814end of 2028
8.38.3.3713end of 2027
8.28.2.3612end of 2026
8.1 and oldernone–ended

All were released on 19 November 2026; 8.6.0 is the first release of PHP 8.6. "CVEs fixed" is how many CVEs the official changelog lists for that release. Newer branches have more, because some holes are in code that older branches don't have.

The fixes that matter most for a web server

These are in every supported branch, from 8.2 to 8.6. The wording is close to the php.net changelog.

  • PHP-FPM request smuggling through an unread request body (CVE-2026-129289). PHP-FPM is how Nginx, and often Apache, run PHP.
  • PHP-FPM use-after-free that can let a local user gain more rights (CVE-2026-129291), and cross-site scripting on the PHP-FPM status page (CVE-2026-129292).
  • Two session holes that can lead to running code: partly overwritten session files (CVE-2026-126714) and a session serializer mismatch (CVE-2026-115560).
  • Timezone cache use-after-free that can lead to running code (CVE-2026-129496).
  • PHP-CGI out-of-bounds read and write when fixing PATH_INFO (CVE-2026-129538).
  • Phar signature check bypass through an older, weaker algorithm (CVE-2026-128090).
  • HTTP streams: URLs written as HTTPS:// or FTPS:// (mixed case) could be sent without encryption (CVE-2026-128064), and a denial of service through folded response headers (CVE-2026-127960).
  • SOAP: a use-after-free (CVE-2026-129506) and an information leak (CVE-2026-15353).

PHP 8.5 and 8.6 also fix a use-after-free in magic-method backtraces that can lead to running code (CVE-2026-129474), plus fixes in the new URI extension. The full list, with links to each advisory, is in the PHP 8 changelog.

1. Check which PHP your sites use

php -v                       # the command-line PHP
ls /etc/php/                 # Debian/Ubuntu: all installed versions
systemctl list-units 'php*-fpm*' --no-pager

The command-line version is not always the one your sites use. Each site's PHP-FPM pool decides that. If you're not sure, see one PHP-FPM pool per site.

2. Find out if your PHP has the fixes

It depends on where your PHP comes from:

  • From php.net builds or a repository that follows them (for example the Debian/Ubuntu packages by Ondřej Surý, or Remi's packages on RHEL-like systems): the version number should be at least the one in the table above.
  • From your distribution's own packages (the PHP that came with Ubuntu, Debian or RHEL): the version number stays the same and the fixes are added into it ("backported"). Look for the CVE number in the package changelog instead.
# Debian / Ubuntu
apt changelog php8.3-fpm 2>/dev/null | grep -m3 CVE-2026-129289
# RHEL / Rocky / Alma
rpm -q --changelog php-fpm | grep -m3 CVE-2026-129289

If nothing is found, the fix isn't in your package yet. Distributions can take some days, so check again after the next updates.

3. Update and restart PHP-FPM

# Debian / Ubuntu
sudo apt update && sudo apt install --only-upgrade 'php8.3-*'
sudo systemctl restart php8.3-fpm

# RHEL / Rocky / Alma
sudo dnf upgrade 'php*'
sudo systemctl restart php-fpm

Change 8.3 to your version, and do it for each installed version. Until PHP-FPM restarts, the old code keeps running. Then open your sites and check the error log. To get updates like this without waiting for you, turn on automatic security updates.

Still on PHP 8.2 or older?

PHP 8.2 gets its last security fixes on 31 December 2026. After that, holes like these won't be fixed for it. PHP 8.1 already gets nothing. Plan the move now: see which PHP versions still get security fixes and how to move a site to a newer PHP version.

PHP 8.6 is brand new. For live sites, wait until your CMS, framework and plugins say they support it.

Official sources

Run Drupal? Read about the Drupal security updates from November 2026 too: one hole is already used in attacks.

← Back to the security blog