Public proof of conceptCRITICAL

PHP-FPM request smuggling allows unauthenticated code execution; public PoC exists

Where a front end reuses FastCGI connections, an unread request body lets one unauthenticated request run attacker-chosen PHP on PHP-FPM. Upgrade to PHP 8.2.36, 8.3.37, 8.4.28 or 8.5.13, or turn off FastCGI connection reuse until you can.

PHP Group (PHP Foundation) PHP-FPM (sapi-fpm); LSAPI shares the cleanup flawCVE-2026-129289CVSS9.2CWE-444Web & app servers
Published Nov 22, 2026

A public PoC repository is on GitHub; it has not been verified to work 7. VulnCheck KEV reportedly added the CVE on 2026-11-21 from a single canary report that could not be reviewed and that nothing corroborates 6. Upwind said it was not in CISA KEV as of 2026-11-19 4.

Nov 19, 20262 daysNov 21, 2026

What you need to know

  • Exposure requires two things: a front end that reuses FastCGI connections to PHP-FPM (fastcgi_keep_conn on, enablereuse=on, some HAProxy setups), and app code that opens php://input without reading it fully.
  • Impact: one unauthenticated HTTP request smuggles a forged FastCGI request. On PHP-FPM this runs attacker-chosen PHP as the worker user. On LSAPI, PHP reports disrupted connections but has not shown code execution.
  • Exploitation: a public PoC exists but is unverified. VulnCheck KEV reportedly listed the CVE on 2026-11-21 from one uncorroborated canary report. It was not in CISA KEV as of 2026-11-19.
  • Fix: upgrade to PHP 8.2.36, 8.3.37, 8.4.28 or 8.5.13, or install your distribution's backport. Until then, disable FastCGI connection reuse.
  • Detect: grep front-end configs for fastcgi_keep_conn and enablereuse. Look for PHP-FPM script executions that have no matching front-end request.

What's happening

PHP-FPM can be made to process a second, attacker-forged FastCGI request when unread request-body bytes are left on a reused backend connection 1. On PHP-FPM this lets an attacker run their own PHP code with the privileges of the FPM worker. It needs no authentication and a single HTTP request 1. PHP scores the flaw CVSS v4 9.2, and Amazon Linux rates it CVSS v3.1 9.8 1,2. Fixed builds are available upstream and from Debian and Amazon Linux 1,2,3.

Only some deployments are exposed. The front end must keep FastCGI connections open between requests. PHP's examples are nginx with fastcgi_keep_conn on, Apache mod_proxy_fcgi with enablereuse=on, HAProxy FastCGI backends that retain connections, and LSAPI 1. The application must also open php://input without reading it to the end somewhere. Some frameworks do this before routing or authentication, even on endpoints that ignore the body 1. Connection reuse is off by default in nginx and Apache, but some container images enable it. Upwind says the wodby/nginx images hard-code it 3,4. Aikido notes PHP's position that the critical issues in this release need non-default or uncommon setups 5.

No vendor or government source reports in-the-wild exploitation. On 2026-11-19, Upwind said none of the seven critical PHP bugs in this release was in CISA KEV or had been reported exploited 4. VulnCheck KEV reportedly added the CVE on 2026-11-21, citing its own canary data and listing zero exploit entries 6. That report could not be reviewed; it is the only exploitation signal and is unconfirmed. At least one public PoC repository has appeared on GitHub, but its working status is unverified 7. watchTowr told Dark Reading it expects attackers to target this CVE among the first from the release. That is a prediction, not an observation 8.

How it works

This is HTTP-to-FastCGI request smuggling (CWE-444) 1. Opening php://input creates a request-body stream that is read lazily. At request shutdown, PHP took the existence of that stream as proof the body had been handled, so it skipped the cleanup that discards unread input 1. The leftover bytes stay on the persistent connection, and PHP-FPM parses them as a new FastCGI request the front end never sent or authorised 1. A second defect made it worse. With FCGI_KEEP_CONN set, PHP-FPM lost track of being inside an unfinished FCGI_STDIN record before accepting the next request 1. PHP traces the flaw back to the lazy php://input handling introduced in PHP 5.6.0 1.

The smuggled request carries its own FastCGI parameters, so the attacker controls values such as SCRIPT_FILENAME, REMOTE_ADDR and PHP_ADMIN_VALUE 1. This lets them run an existing script that the front end does not route to, or spoof the client address that application access controls rely on. It also lets them change admin-level PHP settings, which can persist on that worker for later requests 1. Code execution also requires knowing the path of an existing PHP script on the target 1,4. PHP says no memory corruption, address knowledge or race condition is involved, so success does not depend on timing or memory layout 1.

The fix drains unread input based on whether the body was fully consumed, not on whether a stream exists. PHP-FPM now also closes the connection if the previous FastCGI input record is incomplete 1. LSAPI shares the cleanup error, but it does not use the FastCGI parameter mechanism, and PHP's advisory does not establish code execution there. Leftover bytes still desynchronise the connection and disrupt later requests 1.

What to do

In order of priority
  1. 1

    Upgrade to PHP 8.2.36, 8.3.37, 8.4.28 or 8.5.13 1. PHP 8.6.0, released the same day, also includes the fixes according to secondary sources 4,10.

  2. 2

    On distribution packages, install the backport. Debian: 8.2.36-1~deb12u1 (bookworm, DLA-4916-1) and 8.4.28-1~deb13u1 (trixie, DSA-6641-1); forky is still listed as vulnerable 3. Amazon Linux: ALAS2023-2026-3504 to 3507 and ALAS2PHP8.2-2026-016 2. Amazon lists php8.1 on AL2023 as no fix planned, and Amazon Linux 2 core php as not affected 2.

  3. 3

    Rebuild container images and get vendor updates for appliances that bundle their own PHP. PHP 8.2 reaches end of life on 2026-12-31, and end-of-life branches get no upstream fix 4.

  4. 4

    Until patched, disable backend connection reuse. Leave nginx fastcgi_keep_conn off, leave Apache enablereuse off, or set other FastCGI front ends to close the backend connection after each request 1.

  5. 5

    Read php://input to the end on every request as defence in depth. PHP warns that error paths, resource exhaustion and shutdown make this unreliable as the only mitigation 1.

  6. 6

    Never expose PHP-FPM or LSAPI listeners to untrusted networks 1. Mitigations for other CVEs in the same release, such as session.upload_progress.enabled=0, do not address this bug 4.

  7. 7

    If connection reuse was enabled before patching, restart PHP-FPM pools to clear any changed worker settings 1. Then check web roots for unexpected PHP files, review FPM logs for unmatched requests, and rotate credentials the FPM worker could read, such as database passwords and API keys.

Detection

  • Audit every front end that talks to PHP-FPM for connection reuse, including custom configs, includes, and front ends on other hosts or containers. Check for nginx fastcgi_keep_conn on, Apache enablereuse=on, and HAProxy FastCGI backends that keep connections 4,9.
  • Search application and framework code, including vendor/ directories, for places that open php://input before routing or authentication without reading it to the end. That code path is the second precondition 1.
  • Compare PHP-FPM pool access logs (access.log in the pool config) with front-end access logs. Look for script executions with no matching front-end request, or for PHP files that no public route reaches, since smuggled requests can dispatch arbitrary existing scripts 1.
  • Review application logs for client addresses that should not appear on access-controlled endpoints, such as loopback or internal ranges. The forged request can set REMOTE_ADDR 1.
  • Watch for PHP-FPM workers behaving as if admin-level PHP settings changed, such as different limits or disabled functions on some workers only. Such changes can persist across requests on a worker 1.
  • In EDR, hunt for php-fpm worker processes spawning shells, interpreters or network tools, and for new PHP files written into web roots.
  • No public log signatures or detection rules were found. Check Point says its product signatures cover the release but has not published details 9. Confirm exposure by reviewing front-end configs and application code rather than relying on scanners.

Timeline

  1. PHP publishes GHSA-qc49-hpvq-g2w6 and releases 8.5.13, 8.4.28, 8.3.37 and 8.2.36. The CVE record is published the same day. 1

  2. Amazon Linux ships fixes for AL2023 php8.2/8.3/8.4/8.5 and Amazon Linux 2 Php8.2 Extra. 2

  3. Upwind ranks this the first PHP bug to close and reports no known exploitation. 4

  4. VulnCheck KEV reportedly adds the CVE based on a canary report. The signal is single-source and uncorroborated. 6

Sources

  1. 1
    PHP-FPM request smuggling through an unread HTTP request body (GHSA-qc49-hpvq-g2w6)
    PHP (php-src GitHub Security Advisory) · Vendor · Nov 19, 2026
  2. 2
    CVE-2026-129289
    Amazon Linux Security Center · Vendor · Nov 19, 2026
  3. 3
    CVE-2026-129289
    Debian Security Tracker · Vendor
  4. 4
  5. 5
  6. 6
    VulnCheck canary report reference (not fetched)
    VulnCheck · Database · Nov 21, 2026
  7. 7
  8. 8
  9. 9
  10. 10

Single source, treat with caution. Researched and drafted by the VulnDigest briefs agent from 10 sources, then checked against them by a separate review step on Nov 22, 2026.

Fixed versions match PHP's advisory and the Debian and Amazon Linux trackers.

No vendor or government source reports exploitation. The only signal is a VulnCheck KEV canary listing (2026-11-21, zero exploit entries) whose underlying report could not be reviewed.

A public PoC repository exists, but it has not been tested and its working status is unknown.

PHP scores this CVSS v4 9.2; Amazon Linux scores it CVSS v3.1 9.8.

PHP's advisory lists only branches 8.2 to 8.5, but says the flaw dates to PHP 5.6.0. End-of-life branches such as 8.1 should be treated as likely vulnerable with no upstream fix.

The PHP 8.6.0 fix is reported by secondary sources (Upwind, SecurityWeek), not by the PHP advisory.

Spotted an error? Open an issue on sochub.io.