Naar de inhoud

Details

PHP security update of 19 November 2026: PHP-FPM and session flaws (CVE-2026-129289 and related)

On 19 November 2026 PHP released 8.5.13, 8.4.28, 8.3.37 and 8.2.36 with fixes for ten vulnerabilities, four of them critical. Which setups are affected, how to check yours, what to change until you can update, and how to update.

Dit artikel is alleen beschikbaar in het Engels.

On 19 November 2026 the PHP project released PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36. They fix ten vulnerabilities, and two more that exist only in PHP 8.5. Four are rated critical (9.2, CVSS v4.0): one in PHP-FPM and three that can lead to code execution through sessions or the error log. Most of them need a particular setting or a particular kind of application, so check below which ones apply to you. The PHP project's advice is the same for all of them: update.

This is a separate release from the one of 21 October 2026. If you have not installed that one yet, see PHP2Shell: patch CVE-2026-109618 and CVE-2026-109619 as well. Updating to the versions below fixes both.

What the vulnerabilities are#

The four critical ones, as the PHP security advisories describe them:

CVE What it is You are affected when
CVE-2026-129289 PHP-FPM request smuggling through an unread request body Your web server keeps FastCGI connections to PHP-FPM open between requests: nginx with fastcgi_keep_conn on, Apache mod_proxy_fcgi with enablereuse=on, or HAProxy reusing FastCGI connections. Also LSAPI (LiteSpeed). Standard nginx and Apache setups close the connection after each request and are not affected by the demonstrated attack.
CVE-2026-115560 Session serializer mismatch through session upload progress Session upload progress is on (it is on by default before this release) and session data is written and read with different session.serialize_handler settings, for example by two applications that share a session folder.
CVE-2026-126714 Partially overwritten session files The application uses PHP's own sessions with the default files handler and stores data a visitor can influence in the session.
CVE-2026-129496 Timezone cache use-after-free PHP writes its errors to a file (error_log set to a file) and logs a warning or deprecation while starting, for example because of an invalid date.timezone or an old session setting.

For the last three, code execution also needs a suitable chain of classes in the application. That makes them harder to use, not harmless.

The other six fix a signature check in signed PHAR archives (CVE-2026-128090, high), two flaws in the SOAP extension, a crash in the new DOM extension, a flaw in php-cgi (not PHP-FPM or Apache mod_php) and HTML injection in the PHP-FPM status page.

The details per vulnerability are in the security advisories of the php-src repository on GitHub.

Who is affected#

  • Websites and web apps on your own server, with any PHP older than the versions in the next section. Older apps and plugins that use PHP's own sessions (session_start()) are the ones the session flaws are about. Laravel, and so the Pterodactyl Panel, keeps its own sessions and does not use PHP's session files.
  • PHP-FPM behind nginx, Apache or HAProxy that reuses FastCGI connections. The official nginx configuration of the Pterodactyl Panel does not turn on fastcgi_keep_conn.
  • PHP inside Docker containers: the container has its own PHP, separate from the server.
  • Shared hosting and control panels such as DirectAdmin, cPanel or Plesk: there your provider or the panel installs PHP.

Which versions are fixed#

PHP branch Fixed in
8.5 8.5.13
8.4 8.4.28
8.3 8.3.37
8.2 8.2.36

PHP 8.2 receives security fixes only until 31 December 2026, and 8.1 and older no longer get releases from the PHP project.

Distributions often keep their own version number and add the fix to it. What we saw on the evening of 19 November 2026:

Distribution Package Status
Debian 13 (trixie) php8.4 fixed in 8.4.28-1~deb13u1 (trixie-security)
Debian 12 (bookworm) php8.2 fixed in 8.2.36-1~deb12u1 (bookworm-security)
Ubuntu 24.04 LTS php8.3 not fixed yet
Ubuntu 22.04 LTS php8.1 not fixed yet
packages.sury.org (Debian) php8.4 8.4.28 available
Ondřej Surý's PPA (Ubuntu) php8.3 not yet, still 8.3.36

Follow the current status on the Ubuntu CVE page and the Debian security tracker.

Check which PHP you run#

  1. The command line and PHP-FPM can differ, so check both. On Debian and Ubuntu the FPM program has the branch in its name:

    php -v
    ls /usr/sbin/php-fpm*
    

    Then run -v on each program the second command lists, for example /usr/sbin/php-fpm8.3 -v.

  2. On Debian and Ubuntu, see whether your package already has the fix. Replace 8.3 with your branch. No output means the installed package does not mention these CVE numbers yet:

    apt changelog php8.3-fpm 2>/dev/null | grep -E 'CVE-2026-(129289|115560|126714|129496)'
    
  3. In Docker, check inside each container. Replace my-app with the container name:

    docker exec my-app php -v
    

Until you can update#

Check that FastCGI connections are not reused#

  1. With nginx, search the configuration nginx actually uses:

    sudo nginx -T 2>/dev/null | grep -n 'fastcgi_keep_conn'
    

    No output, or only fastcgi_keep_conn off;, is what you want. If it says on, change it to off (or remove the line), then test and reload: sudo nginx -t && sudo systemctl reload nginx.

  2. With Apache, look for connection reuse in mod_proxy_fcgi:

    sudo grep -Rn 'enablereuse=on' /etc/apache2 /etc/httpd 2>/dev/null
    

    If it finds a line, change enablereuse=on to enablereuse=off and reload Apache.

  3. Never let the PHP-FPM port be reachable from the internet. If your pool listens on a TCP port instead of a socket, make sure your firewall blocks it. See set up a firewall with ufw.

Turn off session upload progress#

This removes the upload path of CVE-2026-115560 and CVE-2026-126714. Most sites do not use the feature. If you already did this for PHP2Shell, it is still in place.

  1. Check the value PHP-FPM uses. Replace 8.3 with your branch:

    /usr/sbin/php-fpm8.3 -i | grep 'session.upload_progress.enabled'
    
  2. If it says On, add a small file to the FPM ini folder of that branch:

    echo 'session.upload_progress.enabled = 0' | sudo tee /etc/php/8.3/fpm/conf.d/99-emergency.ini
    
  3. Restart PHP-FPM so every worker reads it:

    sudo systemctl restart php8.3-fpm
    

Setting it from your application with ini_set() or in a .user.ini file does not work.

Fix startup warnings when PHP logs to a file#

CVE-2026-129496 needs a warning while PHP starts and errors written to a file.

  1. Look for startup warnings. Any Warning or Deprecated line here is one to fix:

    /usr/sbin/php-fpm8.3 -t
    php -r '' 2>&1 | head
    
  2. A common cause is an invalid date.timezone. Set a valid one, such as date.timezone = Europe/Amsterdam, in the same conf.d folder, then restart PHP-FPM.

Sending PHP errors to syslog instead of a file also avoids this path.

Update PHP#

  • Ubuntu or Debian packages, Ondřej Surý's PPA or packages.sury.org: see update PHP on Ubuntu or Debian. Use the changelog check above to see when the fix has arrived. Automatic security updates on Ubuntu and Debian install it without waiting for you.
  • Docker: pull or rebuild the image and recreate the container. See update PHP in Docker images. An image tag that follows the branch, such as php:8.4-fpm, gets 8.4.28 once the maintainer rebuilds it; check the version inside the new container.
  • A control panel or shared hosting: use the panel's own PHP update, or ask your hosting provider when they update.
  • Built from source: build 8.5.13, 8.4.28, 8.3.37 or 8.2.36 from php.net.

After the update, restart every PHP-FPM service (and Apache if it uses mod_php), then check the versions again. A patched package does not help while the old program is still running.

The new releases turn session upload progress off by default. If you need the feature and turn it back on, every application that can read the same session data must use the same session.serialize_handler.

After updating, check for a break-in#

If your server ran an affected setup on the internet, check whether someone got in before you updated. See check your server for a break-in.

Een stap die niet werkte, een verkeerde naam of een verkeerd getal, iets wat ontbreekt. Laat het e-mailadres van je account achter als je bij een melding die helpt bedankt wilt worden met tegoed.

Bedankt. We lezen elke melding.

Nog een vraag?

Vraag het onze assistent: die antwoordt meteen, dag en nacht. Liever een mens? Open een ticket, dan helpt ons team je verder.