Advisories · PHP & Laravel
PHP-FPM request smuggling through an unread request body
Disclosed 19 Nov 2026 · Last reviewed 2 Dec 2026
When a script leaves part of the request body unread, PHP-FPM can treat the leftover bytes as a second FastCGI request on a reused connection. Researchers showed unauthenticated code execution with one request.
What happened
At request shutdown PHP did not always discard unread body bytes before the FastCGI connection was reused. A crafted body could leave bytes that PHP-FPM then parsed as a new request with attacker-chosen parameters. Front ends that close the FastCGI connection after every request are not affected by the demonstrated attack.
Affected and patched versions
- Affected
- PHP 5.6 through 8.2.35, 8.3.0–8.3.36, 8.4.0–8.4.27 and 8.5.0–8.5.12 running under PHP-FPM or LSAPI, when the web server reuses FastCGI connections (nginx fastcgi_keep_conn on, Apache enablereuse=on, some HAProxy setups).
- Patched
- PHP 8.2.36, 8.3.37, 8.4.28 and 8.5.13.
How to check your server
Check
php -r 'echo PHP_VERSION, PHP_EOL;' nginx -T 2>/dev/null | grep -n 'fastcgi_keep_conn' grep -rn 'enablereuse' /etc/apache2 /etc/httpd 2>/dev/null
How to fix and harden
- Check the PHP version and whether your web server reuses FastCGI connections. nginx defaults to fastcgi_keep_conn off, which is not affected.
- Upgrade to 8.2.36, 8.3.37, 8.4.28 or 8.5.13. Distribution packages may carry the fix under an older version number, so check your distribution's tracker for CVE-2026-129289.
- Restart every PHP-FPM pool so no old worker keeps serving requests.
- Until you can upgrade, turn connection reuse off: remove fastcgi_keep_conn on in nginx, or set enablereuse=off in Apache.
Fix
sudo apt update && sudo apt install --only-upgrade 'php8.*-fpm' sudo systemctl restart 'php*-fpm'
Sources
- PHP 8 ChangeLog
- Debian security tracker
- Amazon Linux security center
- NVD entry for CVE-2026-129289
- CVE.org record
Version ranges and fixes follow the vendor advisory. When a distribution backports a fix, trust its security tracker over the upstream version number. New advisories: RSS · JSON