CVE-2026-129289: PHP-FPM request smuggling can lead to RCE via unread HTTP request body

Critical PHP-FPM request smuggling vulnerability. A crafted multipart/form-data request can forge a backend FastCGI request and execute attacker-controlled PHP code when the front-end reuses backend connections.

CVE-2026-129289 affects PHP versions 8.2. before 8.2.36, 8.3. before 8.3.37, 8.4. before 8.4.28, and 8.5. before 8.5.13.

PHP does not discard the unread part of an HTTP request body at request shutdown when the application has opened php://input without reading it to the end. When the front-end reuses backend connections, which is not the default in nginx or Apache (for example nginx with fastcgi_keep_conn on, or Apache mod_proxy_fcgi with enablereuse=on), PHP-FPM can parse leftover bytes as a new FastCGI request.

An unauthenticated remote attacker can use a single crafted multipart/form-data request to forge a backend request with chosen parameters such as SCRIPT_FILENAME, REMOTE_ADDR and PHP_ADMIN_VALUE, which can lead to execution of attacker-controlled PHP code. With LSAPI, subsequent requests on the connection can be disrupted.

References: - NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-129289 - PHP advisory: https://github.com/php/php-src/security/advisories/GHSA-qc49-hpvq-g2w6

What to do 1. Patch PHP to a fixed version: 8.2.36, 8.3.37, 8.4.28, or 8.5.13 depending on your branch. Verify the vendor advisory before changing production systems. 2. If an immediate patch is not possible, check front-end configurations for backend connection reuse: nginx fastcgi_keep_conn on, or Apache mod_proxy_fcgi with enablereuse=on. 3. Where reuse is enabled and not required, disable it as a mitigation: set fastcgi_keep_conn off for nginx and enablereuse=off for Apache mod_proxy_fcgi. Verify the exact configuration on your systems before changing production. 4. Monitor PHP-FPM logs and backend FastCGI traffic for anomalous or repeated requests, and prioritise rollout of patched PHP versions as soon as possible.

Sources