CVE-2026-129289 in PHPinfo

Summary

by MITRE • 11/19/2026

PHP-FPM request smuggling through an unread HTTP request body.

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 the 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.

This issue affects PHP versions before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 11/22/2026

The vulnerability described constitutes a critical HTTP request smuggling flaw within the PHP-FPM architecture, specifically arising from improper handling of unread data in the HTTP request body during connection lifecycle management. When an application opens php://input but fails to read it completely before the script execution concludes or is terminated, PHP does not discard the remaining bytes as expected. Instead, these leftover bytes persist on the underlying TCP socket. In environments where the front-end web server maintains persistent connections with the backend PHP-FPM process—such as nginx configured with fastcgi_keep_conn enabled or Apache using mod_proxy_fcgi with enablereuse set to on—the connection remains open for subsequent requests rather than being closed immediately after the initial response is sent. This persistence creates a window of opportunity where the protocol state becomes desynchronized between the client, the front-end server, and the backend processor.

An unauthenticated remote attacker can exploit this desynchronization by crafting a single multipart/form-data request that contains both legitimate-looking data and hidden malicious payloads within the unread portion of the body. Because PHP-FPM treats any incoming bytes on an active connection as potential new FastCGI requests when it expects one, the leftover data is parsed as a fresh command stream rather than being discarded. This allows the attacker to forge backend requests with arbitrary parameters. By manipulating headers such as SCRIPT_FILENAME, REMOTE_ADDR, and PHP_ADMIN_VALUE within this smuggled request, the attacker can dictate which script executes, spoof source IP addresses for access control bypasses, or inject critical configuration directives that alter runtime behavior. The most severe consequence is the execution of attacker-controlled PHP code with the privileges of the web server process, effectively leading to full remote code execution on the compromised system.

The operational impact extends beyond simple code execution in certain configurations. When using alternative SAPIs like LSAPI (LiteSpeed API), this vulnerability can disrupt subsequent legitimate requests on the same connection due to protocol state corruption or unexpected termination signals embedded within the smuggled data. This results in a denial of service for other users sharing that backend worker process, as their valid HTTP transactions may be misinterpreted or dropped entirely by the confused PHP-FPM child process. The flaw fundamentally undermines the integrity and confidentiality guarantees provided by standard web server architectures, allowing attackers to bypass authentication mechanisms, escalate privileges through configuration manipulation, and potentially pivot further into internal networks if SSRF capabilities are enabled via forged headers.

This vulnerability maps directly to CWE-436, which describes interpretation ambiguity in protocols that allow for request smuggling or desynchronization attacks. From a tactical perspective, it aligns with MITRE ATT&CK techniques related to Server-Side Request Forgery (SSRF) and HTTP Parameter Pollution, as the attacker injects malicious parameters into the backend processing pipeline by exploiting protocol-level state inconsistencies. The exploitation relies heavily on specific infrastructure configurations that prioritize connection reuse for performance gains, highlighting a trade-off between efficiency and security in modern web server deployments.

Mitigation strategies must address both the software versioning and architectural configuration aspects of this flaw. Administrators should immediately upgrade PHP to versions 8.2.36 or later, 8.3.37 or later, 8.4.28 or later, or 8.5.13 or later, as these releases contain the necessary fixes to properly discard unread request body data upon shutdown regardless of connection state. In addition to patching, organizations should review their web server configurations regarding FastCGI keep-alive settings. Disabling fastcgi_keep_conn in nginx or setting enablereuse=off in Apache mod_proxy_fcgi can mitigate the risk by ensuring connections are closed after each request, thereby preventing the accumulation of unread data that could be smuggled into subsequent transactions. However, since disabling connection reuse may impact performance, upgrading PHP remains the primary and most effective remediation path to ensure robust protection against this class of protocol-level vulnerabilities without sacrificing operational efficiency.

Responsible

Php

Reservation

11/13/2026

Disclosure

11/19/2026

Moderation

accepted

CPE

ready

EPSS

0.16163

KEV

no

Activities

very low

Sources

Do you know our Splunk app?

Download it now for free!