Status as of the evening of 19 November 2026. The PHP team has shipped the announced security releases: PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36. Five of the fixed issues are rated critical (CVSS 4.0 9.2) and can lead to unauthenticated remote code execution. PHP 8.6.0, released the same day, contains the same fixes.
The story was covered by CyberDefence24. Below is our summary based on the php.net changelog and the security advisories in the php-src repository. This morning we described how to prepare for this release.
Five critical issues
All of them require a non-default configuration or specific conditions in the application. Some of those conditions do occur in practice, so check each one on your servers.
CVE-2026-129289: request smuggling in PHP-FPM
PHP does not always discard the unread part of an HTTP request body before the PHP-FPM connection is reused. An unauthenticated attacker can make those bytes act as a separate FastCGI request. That request can set parameters such as SCRIPT_FILENAME and PHP_ADMIN_VALUE and run the attacker's PHP code. The bug dates back to PHP 5.6.0.
Conditions:
- the server in front of PHP-FPM keeps persistent backend connections, for example nginx with
fastcgi_keep_conn on, Apachemod_proxy_fcgiwithenablereuse=on, or HAProxy configured the same way, - the application opens
php://inputand does not read it to the end. According to the advisory, this happens in frameworks that create the stream before routing or authentication.
The default setup, where the FastCGI connection is closed after each request, is not affected by the demonstrated attack. Until you update, disable backend connection reuse.
CVE-2026-129496: freed timezone cache
PHP can keep a reference to freed timezone cache memory. This affects PHP-FPM workers and Apache with mod_php. According to the advisory, the attack does not require code execution in the application or control over PHP_VALUE.
Conditions:
- PHP emits a warning or deprecation notice at startup, for example because of an invalid
date.timezonevalue or session settings, - the messages are written to a file through PHP's
error_logdirective. The PHP-FPM error log alone does not meet this condition, - a fresh worker receives a request that triggers another diagnostic, for example by exceeding
max_input_vars.
Until you update, fix the causes of startup warnings and restart PHP, or send PHP logs to syslog.
CVE-2026-129474: magic method backtraces, PHP 8.5 only
When collecting the arguments of a method handled by __call() or __callStatic(), PHP can access freed memory. Code execution was confirmed on PHP 8.5. The attack requires fatal_error_backtraces=1, the default in PHP 8.5, and zend.exception_ignore_args=0. php.ini-production sets zend.exception_ignore_args=1, which blocks this path. Setting display_errors=0 does not help.
CVE-2026-126714: partially overwritten session files
If a session file write is interrupted halfway, the file ends up with a mix of old and new data. An attacker who can influence session contents, for example through session upload progress or large user input, can achieve code execution if the application has a usable deserialization gadget chain. This affects the default file-based session handler (files).
CVE-2026-115560: mismatched session serializers
This issue has been known since October. It requires session upload progress to be enabled and the same session to be read with a different serializer, for example when the application switches session.serialize_handler to php before session_start(), or when two applications with different settings share a session directory.
The fix disables session upload progress by default and blocks runtime changes to session settings while the feature is enabled. If your configuration enables it explicitly, that setting still applies.
Other important fixes
CVE-2026-129291(CVSS 8.8): use-after-free in PHP-FPM with the epoll backend. An attacker who already runs code in a worker can gain the master process's privileges, often root. It requirescatch_workers_output = yes. The setting is off by default, but the official PHP-FPM Docker images turn it on.CVE-2026-129538(CVSS 6.9): out-of-bounds read and write inphp-cgiwithcgi.fix_pathinfo=1. PHP-FPM andmod_phpare not affected.- The remaining fixes cover Phar signature verification, a double free in DOM, the SOAP extension, XSS in the PHP-FPM status page, and mixed-case HTTPS and FTPS URLs that could send data unencrypted.
The full list is in the PHP 8 ChangeLog.
What to check now
The PHP version in the CLI and in PHP-FPM can differ, so check both:
php -v
php-fpm8.3 -v
dpkg -l 'php*' 2>/dev/null | grep -E '^ii +php[0-9.]+-(fpm|cli|common)' || rpm -qa 'php*'Persistent PHP-FPM connections (CVE-2026-129289):
grep -rn 'fastcgi_keep_conn' /etc/nginx/
grep -rn 'enablereuse' /etc/apache2/ /etc/httpd/ 2>/dev/nullSettings the other issues depend on:
php -i | grep -E 'error_log|date.timezone|zend.exception_ignore_args|fatal_error_backtraces|session.upload_progress.enabled'
grep -rn 'catch_workers_output' /etc/php/
journalctl -u 'php*-fpm' --since today | grep -iE 'warning|deprecated'php -i shows CLI settings. PHP-FPM pools can have their own values, so check their configuration too, ideally through phpinfo() from the application on a test server.
Updating
- Install 8.5.13, 8.4.28, 8.3.37 or 8.2.36, or a distribution package with fixes for these CVEs. Debian, Ubuntu and Red Hat packages and Ondřej Surý's repository may arrive later.
- In containers, rebuild images on the new base image and redeploy them.
- Restart PHP-FPM or Apache with
mod_php. New files on disk do not change running processes. - If your application shows an upload progress bar based on PHP sessions, check it after updating. The feature is now off by default.
If you have to wait
- Turn off
fastcgi_keep_connin nginx orenablereusein Apache. - Fix the warnings PHP prints at startup, or send PHP logs to syslog.
- Set
zend.exception_ignore_args=1, and on PHP 8.5 alsofatal_error_backtraces=0. - Set
session.upload_progress.enabled=0in the PHP or pool configuration if you do not use the feature. - Turn off
catch_workers_outputin PHP-FPM pools.
Restart PHP-FPM after each change. This reduces the risk but does not replace the update.
PHP 8.2 reaches end of life on 31 December 2026. If you run it, plan a move to a newer version.
We update PHP on Magento, PrestaShop and WooCommerce shops as part of e-commerce operations, and on other servers as part of IT administration.
In short: update PHP to 8.5.13, 8.4.28, 8.3.37 or 8.2.36 and restart PHP-FPM. Until then, check fastcgi_keep_conn, PHP startup warnings and session settings, and catch_workers_output in Docker images.