CVE-2026-129289: PHP-FPM Request Smuggling Through Unread Request Bodies
- Vendor
- PHP Group
CVE-2026-129289 is a request-smuggling vulnerability in PHP request cleanup affecting persistent PHP-FPM and LSAPI connections. When an application opens the raw request-body input stream without fully consuming it, PHP fails to discard the remaining body bytes at request shutdown. On a reused backend connection, PHP-FPM can interpret those bytes as another FastCGI request. An unauthenticated remote attacker can submit a single crafted multipart/form-data request containing a forged backend request with attacker-selected script, client-address, and administrator-level configuration parameters, potentially executing arbitrary PHP code. LSAPI is susceptible to request-stream desynchronization and disruption of subsequent requests; code execution through LSAPI is not established. The cleanup error was introduced in PHP 5.6.0. Fixed upstream releases are PHP 8.2.36, 8.3.37, 8.4.28, and 8.5.13.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful PHP-FPM exploitation bypasses front-end request routing and can execute attacker-controlled PHP code with PHP worker privileges. Attackers can invoke existing scripts that are not exposed by the front end, forge client addresses relied upon by application access controls, and alter administrator-level PHP settings for subsequent requests handled by the same worker. Code execution compromises data and resources accessible to the worker account; it does not inherently confer root privileges. LSAPI exploitation can desynchronize the request stream and disrupt subsequent requests on the affected connection. Standard nginx and Apache configurations that close FastCGI connections after each request are not affected by the demonstrated PHP-FPM attack.
Mitigation
If you can’t patch tonight, do this now.
Disable backend connection reuse: keep nginx fastcgi_keep_conn disabled, keep Apache mod_proxy_fcgi enablereuse disabled, and configure other FastCGI front ends to close backend connections after every request. Fully consuming php://input before request completion prevents the demonstrated unread-body condition, but is not a sufficient sole defense because errors, resource exhaustion, or shutdown behavior can interrupt consumption. Do not expose PHP-FPM or LSAPI listeners directly to untrusted networks. AWS WAF PHP Managed Rule Group version 2.6 includes PHPFPMSmuggling_BODY as defense in depth; review Count-mode matches before enabling Block mode. WAF coverage is limited by parsing, inspection limits, and payload variations and does not replace patching.
Remediation
Patch, then assume compromise.
Upgrade to PHP 8.2.36, 8.3.37, 8.4.28, or 8.5.13, or a later fixed release for the deployed branch. For distribution-maintained or extended-support packages, install the vendor release explicitly containing the backported fix rather than relying solely on the upstream version number. Migrate end-of-life upstream branches to a supported release unless using a vendor-supported patched build. Restart PHP-serving services after updating, and rebuild and redeploy affected container images or custom runtimes. The fix drains unread input independently of whether a php://input stream exists; PHP-FPM additionally closes connections when the preceding FastCGI input record is incomplete.
Exploits
2 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-129289 exploited in the wild?
- As of Nov 24, 2026, Mallory has no reports of CVE-2026-129289 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-129289?
- Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2026-129289, the earliest disclosed Nov 20, 2026.
- Is there a patch for CVE-2026-129289?
- Upgrade to PHP 8.2.36, 8.3.37, 8.4.28, or 8.5.13, or a later fixed release for the deployed branch. For distribution-maintained or extended-support packages, install the vendor release explicitly containing the backported fix rather than relying solely on the upstream version number.
- What products are affected by CVE-2026-129289?
- PHP Group Php.
- How severe is CVE-2026-129289?
- CVE-2026-129289 has a CVSS v4 score of 9.2 (Critical) and an EPSS score of 16.2% (97th percentile) as of Nov 24, 2026.
Recent activity
287 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.