PHP November 2026 Security Release: Mitigating CVE-2026-129289 (PHP-FPM) and the Critical Session Flaws
Upgrade to PHP 8.2.36, 8.3.37, 8.4.28 or 8.5.13 to fix seven critical CVEs, with php.ini and web server mitigations if you cannot upgrade yet.
The PHP security release of 19 November 2026 fixed seven critical CVEs (each CVSS 4.0 9.2) and several lower-rated ones, across PHP 8.2 to 8.5. The most serious is CVE-2026-129289, a PHP-FPM request-smuggling bug. It can lead to code execution when the web server reuses FastCGI connections.
Fixed versions
| Branch | Fixed release |
|---|---|
| 8.2 | 8.2.36 |
| 8.3 | 8.3.37 |
| 8.4 | 8.4.28 |
| 8.5 | 8.5.13 |
| 8.6 | 8.6.0 (includes the fixes) |
PHP 8.1 and older did not get an upstream release. Some distributions and control panels backport fixes to older branches. Otherwise, move to a supported branch.
The critical CVEs
| CVE | Component | Exposed when | Branches |
|---|---|---|---|
| CVE-2026-129289 | PHP-FPM request smuggling | The front end reuses FastCGI connections (nginx fastcgi_keep_conn on, Apache enablereuse=on, or HAProxy keep-alive) and the app leaves the request body unread |
8.2 β 8.5 |
| CVE-2026-115560 | Session upload progress deserialisation | session.upload_progress.enabled is on and two readers of the same session store use different session.serialize_handler values |
8.2 β 8.5 |
| CVE-2026-126714 | Session files handler deserialisation | An interrupted session write is combined with attacker-influenced session data | 8.2 β 8.5 |
| CVE-2026-129496 | Date timezone cache use-after-free | A startup warning occurs while errors are logged to a file | 8.2 β 8.5 |
| CVE-2026-129481 | Session shutdown use-after-free | A fatal error occurs in a session cleanup callback | 8.3 β 8.5 |
| CVE-2026-129182 | Engine fatal-error backtrace use-after-free | fatal_error_backtraces is on (the default in 8.5) |
8.5 only |
| CVE-2026-129474 | Engine __call()/__callStatic() backtrace use-after-free |
zend.exception_ignore_args = 0 |
8.5 only |
Also worth noting is CVE-2026-129291 (rated high), a PHP-FPM epoll use-after-free. It allows local root escalation when the FPM master runs as root with catch_workers_output = yes.
Check what is running
The CLI and FPM binaries can be different versions, so check both:
php -v
php-fpm -v # or php-fpm8.3 -v, php-fpm83 -v, depending on the distribution
Check the settings that matter, as FPM sees them:
php-fpm -i 2>/dev/null | grep -E 'session.upload_progress.enabled|session.serialize_handler|zend.exception_ignore_args|fatal_error_backtraces'
sudo grep -rnE 'catch_workers_output|upload_progress|exception_ignore_args' /etc/php*/ 2>/dev/null
Check whether the web server reuses FastCGI connections:
sudo nginx -T 2>/dev/null | grep -n fastcgi_keep_conn
sudo grep -rn enablereuse /etc/apache2 /etc/httpd 2>/dev/null
Any fastcgi_keep_conn on or enablereuse=on means the server is in the configuration that CVE-2026-129289 needs.
Fix: upgrade PHP
Debian or Ubuntu
sudo apt update
sudo apt install --only-upgrade 'php8.*'
sudo systemctl restart php8.3-fpm # repeat for each installed version
RHEL, AlmaLinux or Rocky (Remi or AppStream modules)
sudo dnf upgrade 'php*'
sudo systemctl restart php-fpm
Alpine
sudo apk upgrade -U
sudo rc-service php-fpm83 restart
Docker
Move to the fixed tag (for example php:8.3.37-fpm) and rebuild every derived image:
docker build --pull -t <your-image>:<tag> .
Distributions backport fixes, so a distro package may still report an older version number. Check the distributionβs advisory for the fixed package revision.
Interim mitigations
Use these only until the upgrade is done. Put PHP settings in php.ini or the FPM pool configuration, not in ini_set(). Pool settings override php.ini.
Stop FastCGI connection reuse (CVE-2026-129289)
For nginx, fastcgi_keep_conn defaults to off. Remove any on lines or set the directive explicitly:
location ~ \.php$ {
fastcgi_keep_conn off;
# ...existing fastcgi_pass and params...
}
For Apache mod_proxy_fcgi, remove enablereuse=on from ProxyPass or <Proxy> definitions:
# before
ProxyPass "/app/" "fcgi://127.0.0.1:9000/var/www/app/" enablereuse=on
# after
ProxyPass "/app/" "fcgi://127.0.0.1:9000/var/www/app/"
Never expose the FPM listener to untrusted networks.
Session hardening (CVE-2026-115560)
session.upload_progress.enabled = 0
Make sure every application, pool and CLI job that shares a session store uses the same session.serialize_handler. This does not fully cover CVE-2026-126714 or CVE-2026-129481. Only the upgrade fixes those.
Engine backtrace bugs (CVE-2026-129474, CVE-2026-129182)
zend.exception_ignore_args = 1
; PHP 8.5 only:
fatal_error_backtraces = 0
php.ini-production already sets zend.exception_ignore_args = On. Check that it has not been overridden.
FPM local privilege escalation (CVE-2026-129291)
In each pool file, set:
catch_workers_output = no
Timezone cache (CVE-2026-129496)
Fix any startup warnings, such as an invalid date.timezone or deprecated session settings. Alternatively, send the error log to syslog instead of a file.
Reload FPM after any configuration change:
sudo php-fpm -t && sudo systemctl reload php8.3-fpm
Verify
Check the version the web server actually serves, not just the CLI. Create a temporary file in the document root:
<?php echo PHP_VERSION, ' (', PHP_SAPI, ')';
Load it in a browser, confirm it shows a fixed version with fpm-fcgi, then delete the file.
Notes
- No in-the-wild exploitation had been reported at release. A public proof of concept exists for CVE-2026-115560, but it targets a deliberately vulnerable lab application.
- mod_php (no FastCGI) is not affected by CVE-2026-129289. The other CVEs still apply to it.
- Some third-party container images hard-code
fastcgi_keep_conn on. Check bundled nginx configuration as well as your own. - After upgrading, look for an explicit
session.upload_progress.enabled = On. It overrides the safer new default.