## Overview
CVE-2026-129289 is a critical vulnerability in PHP-FPM that allows remote code execution. The issue arises when PHP does not discard unread parts of an HTTP request body at request shutdown. This affects PHP versions prior to 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28, and 8.5.* before 8.5.13.
## Technical Details
When an application opens php://input without reading it to the end, the leftover bytes can be parsed as a new FastCGI request. This occurs when backend connections are reused, which is not the default setting in nginx or Apache. However, configurations like nginx with `fastcgi_keep_conn` enabled or Apache with `mod_proxy_fcgi` and `enablereuse=on` can trigger this vulnerability. An unauthenticated remote attacker can exploit this by sending a crafted multipart/form-data request, potentially allowing them to forge backend requests with parameters such as SCRIPT_FILENAME, REMOTE_ADDR, and PHP_ADMIN_VALUE.
## Impact
Successful exploitation of this vulnerability can lead to the execution of attacker-controlled PHP code. This poses a significant risk, especially for applications relying on PHP-FPM for processing requests. Additionally, with LSAPI, subsequent requests on the connection can be disrupted, further complicating the attack vector.
## Mitigation
Defenders should immediately patch their PHP installations to versions 8.2.36, 8.3.37, 8.4.28, or 8.5.13. Organizations should review their server configurations to ensure that backend connection reuse is not enabled unless necessary. Regular audits and updates can help mitigate the risks associated with such vulnerabilities.
CSURFACE Threat Sensor