When a PHP script opened php://input but did not read the request body to the end, PHP-FPM did not discard the unread remainder when the request finished. If the web server in front keeps its FastCGI connection to FPM open between requests, those leftover bytes were still on the connection, and FPM read them as the beginning of the next request: a request-smuggling flaw, in which a single malformed multipart request can plant a forged request that FPM then processes with parameters the attacker supplied. The PHP Group rates the worst case as code execution as the FPM worker, and SUSE scores it 9.8. The precondition is on the front end reusing its backend connection: nginx with fastcgi_keep_conn on, Apache mod_proxy_fcgi with enablereuse=on, HAProxy FastCGI with persistent backends, or LSAPI. Neither nginx nor Apache reuses the connection by default. Upgrade to PHP 8.5.13, 8.4.28, 8.3.37 or 8.2.36 and restart PHP-FPM; if you cannot today, turn backend connection reuse off in the front end. Do not expose an FPM or LSAPI listener to an untrusted network.
CVE-2026-129289 at a glance.
| Component | PHP-FPM (sapi/fpm) and, for a lesser effect, LSAPI; the request-body handling at request shutdown. Every distribution php-fpm package; the front ends named are nginx, Apache mod_proxy_fcgi and HAProxy |
| Affected versions | PHP 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; the behaviour dates from PHP 5.6.0 per the advisory’s code inspection, so every unsupported branch is affected too. Only when the front end reuses backend connections and the application opens php://input without reading it to the end, which, the advisory notes, a framework can do before routing or authentication |
| Fixed in | PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36, released 19 November 2026 as a security release; distribution packages below. 8.2 leaves security support on 31 December 2026, so 8.2.36 is one of its last releases. The fix discards the unread request body at request shutdown, so nothing is left on the connection |
| Severity | CVSS 4.0 9.2 Critical (AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H) from the PHP Group, repeated by NVD. Red Hat Critical, CVSS 3.1 8.1 (AC:H, CWE-444); SUSE critical, 9.8 (AC:L); Ubuntu medium. CWE-444 inconsistent interpretation of HTTP requests and CWE-670. AT:P is the front-end configuration |
| Exploited in the wild | Not on CISA’s Known Exploited Vulnerabilities list as of 30 November 2026; CISA’s SSVC says no known exploitation, automatable. EPSS: no score yet as of 29 November 2026. The CVE record links to a public exploit repository, which this page does not reproduce |
| Who is exposed | PHP-FPM behind a front end configured for persistent FastCGI connections: nginx with fastcgi_keep_conn on (often set alongside an upstream ... keepalive block for performance), Apache with enablereuse=on on the handler or proxy line, HAProxy FastCGI applications that keep backend connections, and LiteSpeed/OpenLiteSpeed via LSAPI. Standard nginx and Apache configurations, which close the FastCGI connection after each request, are not affected by the demonstrated attack. An FPM or LSAPI listener reachable from an untrusted network is exposed on its own |
| Published | CVE record and GHSA-qc49-hpvq-g2w6, 19 November 2026 (credits Stephan Lipp and David Korczynski of Ada Logics / Anthropic, and Aviral Srivastava; the advisory notes the report was submitted with AI assistance); this page built 30 November 2026, last updated 30 November 2026 |
What it is
FastCGI multiplexes requests over a connection between the web server and PHP-FPM; each request is a sequence of records that carry the parameters (the environment the script sees) and then the request body. Normally the front end opens a connection, sends one request, reads the response and either closes the connection or returns it to a pool for the next request. When the connection is returned to a pool, what is left on it has to be exactly nothing, or the next request starts reading in the wrong place.
The flaw is that PHP-FPM did not guarantee that. If the application opened php://input and read only part of it, or opened it and read none, the unread tail of the body was not consumed at request shutdown. On a connection the front end keeps open, that tail stayed on the wire, and FPM interpreted it as the next request’s records. Because an attacker controls the body of their own request, they control those bytes, and FastCGI parameters are just records: the forged request can carry an environment the attacker chose rather than the one the front end would have sent. The advisory describes the worst outcome as execution of attacker-controlled PHP as the FPM worker, from a single request, needing no memory corruption and no unusual PHP setting; a lesser outcome is dispatching a request to a script outside the front end’s routing, or spoofing the client address a script sees. With LSAPI, the leftover bytes desynchronise the connection and disrupt following requests rather than reaching code execution. It is one of seven CVEs fixed in the PHP security release of 19 November 2026, which produced 8.5.13, 8.4.28, 8.3.37 and 8.2.36; all seven carry the same CVSS 4.0 score of 9.2 from the PHP Group, and this site covers each on its own page and lists the siblings under Related reading.
The reason most installations are not exposed is the default: nginx closes the FastCGI connection after each request unless fastcgi_keep_conn on is set, and Apache’s mod_proxy_fcgi does not reuse unless enablereuse=on is set. Those options are turned on for throughput, so a performance-tuned stack is the one to check. The advisory stresses that the application only has to open php://input, not use it: a framework that reads the raw body before deciding whether it needs it, even on an endpoint that ignores the body, satisfies that half of the precondition on every request. The fix discards the unread body so there is nothing to leak onto the connection, which closes the flaw regardless of the front end.
Who is affected on Linux
Each row is what the distribution’s own security tracker said on 30 November 2026; the link in the row is the tracker page, which will be newer than this one. This one reaches back to 5.6, so the ESM and ELS packages were rebuilt too.
| Distribution | Status | Fixed package |
|---|---|---|
| Debian bookworm, trixie, forky | Fixed | bookworm php8.2 8.2.36-1~deb12u1 (DLA-4916-1); trixie php8.4 8.4.28-1~deb13u1 (DSA-6641-1); forky and sid php8.4 8.4.28-3 |
| Ubuntu 20.04 to 26.04 and ESM | Fixed (priority medium, USN-9185-1, 23 November 2026) | jammy php8.1 8.1.2-1ubuntu2.29, noble php8.3 8.3.6-0ubuntu0.24.04.14, resolute php8.5 8.5.4-0ubuntu1.6, stonking php8.5 8.5.9-0ubuntu2.2; focal php7.4 7.4.3-4ubuntu2.29+esm6 and bionic php7.2 7.2.24-0ubuntu0.18.04.17+esm15 under ESM; xenial and trusty under ESM legacy |
| RHEL, Rocky, Alma | Fixed (rated Critical, 8.1) | RHEL 10.3 php8.4-8.4.28-1.el10_3 (RHSA-2026:100821) and php-8.3.37-1.el10_3 (RHSA-2026:102300); RHEL 9 php:8.2, php:8.3, php:8.4 streams (RHSA-2026:102261, 102226, 102255) and php-8.0.30-8.el9_9.2 (RHSA-2026:102297); RHEL 8 php:7.4 and php:8.2 (RHSA-2026:100991, 101276); RHEL 7 ELS php-5.4.16-48.el7_9; EUS/E4S errata of 21 to 25 November; Red Hat Hardened Images php-main-8.5.13 (RHSA-2026:101658) |
| Fedora, openSUSE, Arch, Alpine | Not consulted | trackers not read for this page; SUSE lists SUSE-SU-2026:5389-1 and later errata for the batch |
php.net tarballs, Docker php images, Remi and Sury repositories, anything you built yourself | Affected below the fixed versions | php.net 8.5.13 / 8.4.28 / 8.3.37 / 8.2.36; Docker php:*-fpm image tags of the same names; unsupported branches (8.1 and older) carry the bug and get no fix |
How to check
Three questions: is the running FPM older than the fix, does the front end reuse its backend connection, and is the FPM listener reachable from anywhere it should not be. The front-end question is the one that decides exposure, and it is answered in the web server’s configuration, not PHP’s.
# 1. the versions that are installed and running (CLI and FPM can differ)
php -v | head -1
php-fpm8.4 -v 2>/dev/null || php-fpm -v 2>/dev/null | head -1
dpkg -l 'php8*' 2>/dev/null | grep '^ii' | awk '{print $2, $3}' ; rpm -qa 'php*' 2>/dev/null | head
ps -o pid,lstart,args -C php-fpm8.4 -C php-fpm -C php-fpm8.3 | head -3
# fixed: 8.5.13, 8.4.28, 8.3.37, 8.2.36 (distribution builds: compare with the table above)
# 2. does the front end keep the FastCGI connection open between requests?
grep -rnE 'fastcgi_keep_conn' /etc/nginx/ 2>/dev/null
grep -rnE 'keepalive\s+[0-9]' /etc/nginx/ 2>/dev/null | grep -A0 upstream
grep -rniE 'enablereuse|SetHandler .*proxy:fcgi|ProxyPass .*fcgi' /etc/apache2/ /etc/httpd/ 2>/dev/null | grep -vE '^\s*#'
# 3. who can reach the FPM / LSAPI listener? (it should be a localhost socket or private address only)
grep -rnE '^\s*listen\s' /etc/php/*/fpm/pool.d/*.conf /etc/php-fpm.d/*.conf 2>/dev/null
ss -ltnp | grep -E 'php-fpm|lsphp' A fixed version in step 1 with worker start times after the upgrade means you are done. In step 2, fastcgi_keep_conn on or Apache enablereuse=on is the front-end precondition; their absence means the connection is closed per request and the demonstrated attack does not apply. In step 3, a listen on a Unix socket or 127.0.0.1 is what you want; a listen on 0.0.0.0 or a routable address is a second, worse exposure to close whether or not you can upgrade.
How to fix it
Upgrade PHP-FPM and restart it. All three major distributions had packages between 20 and 25 November, and the RHEL 7 ELS and Ubuntu ESM packages carry the fix as well.
# Debian / Ubuntu (the package name carries the branch: php8.2, php8.3, php8.4, php8.5)
apt update && apt install --only-upgrade 'php8.*'
# RHEL family (module streams: dnf module update php, or dnf update php8.4 on RHEL 10)
dnf update 'php*'
# Alpine
apk upgrade 'php8*'
# php.net tarballs, Docker images: 8.5.13 / 8.4.28 / 8.3.37 / 8.2.36 (or the image tags of the same names)
# a new build is not running until every worker is replaced
systemctl restart php8.4-fpm # or php-fpm, php8.3-fpm ... ; mod_php: systemctl restart apache2 / httpd
php -v # the CLI binary, must print the fixed version
php-fpm8.4 -v 2>/dev/null || php-fpm -v # the FPM binary, same
ps -o pid,lstart,args -C php-fpm8.4 -C php-fpm | head -3 # start times must be after the upgradeThe interim step is to stop the front end reusing the backend connection, which removes the channel the leftover bytes travel on. Turn fastcgi_keep_conn off in nginx (or remove the keepalive from the FastCGI upstream), and turn enablereuse off in Apache. You lose a little connection-setup overhead, not correctness. Separately, bind the FPM listener to a socket or a private address.
# nginx: remove or disable connection reuse to FPM
# fastcgi_keep_conn on; -> fastcgi_keep_conn off; (or delete the directive)
# and drop 'keepalive N;' from the FPM upstream block
nginx -t && nginx -s reload
# Apache: turn reuse off on the handler/proxy line
# SetHandler "proxy:fcgi://127.0.0.1:9000" enablereuse=on -> ... enablereuse=off
apachectl configtest && systemctl reload apache2 # or httpd
# make sure the FPM listener is not on a public address
grep -rnE '^\s*listen\s' /etc/php/*/fpm/pool.d/*.conf /etc/php-fpm.d/*.conf 2>/dev/nullDo not count reading php://input to the end in the application as the fix; the advisory says that helps but is not reliable on its own, because the leftover can arise in other ways, and you cannot audit every framework path that opens the stream. The upgrade is the fix; the front-end change is the thing to do first while it rolls out.
Sources
- CVE-2026-129289 at CVE.org — the PHP Group CNA record (19 November 2026): the full technical description, affected ranges, CVSS 4.0 vector, CWEs and credits
- GHSA-qc49-hpvq-g2w6 — the php-src security advisory the record cites, with the preconditions, the demonstrated impact and the workarounds
- NVD entry — Awaiting Analysis; the PHP Group’s 9.2 is the only score
- PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36 release announcements — “This is a security release”; the PHP 8 ChangeLog carries the per-release entries; supported versions for the branch dates
- Apache mod_proxy_fcgi and nginx
fastcgi_keep_conn— the two front-end directives that create the precondition - Distribution trackers: Debian · Ubuntu · RHEL · SUSE; USN-9185-1, DSA-6641-1, DLA-4916-1
- EPSS — no score had been published for this CVE as of 29 November 2026
Related reading
- CVE-2026-115560: PHP session serializer mismatch allows object injection — the session serializer mismatch, another unauthenticated route to object injection in this release
- CVE-2026-126714: PHP partially overwritten session files allow object injection — the partially overwritten session file, also object injection, also unauthenticated
- CVE-2026-129496: PHP timezone cache use-after-free from a startup warning (forthcoming if the link is not yet live) — the timezone-cache use-after-free from the same release
- CVE-2026-129182: PHP fatal-error backtrace repopulated after shutdown — the fatal-error-backtrace bug from the same release, 8.5 only
- CVE-2026-109619: PHP global state points at freed request memory, allowing remote code execution — the October PHP advisory on request state that outlives its request
- A Reverse Proxy with Automatic TLS — the nginx-to-FPM configuration most readers run, and where
fastcgi_keep_connwould sit in it - Hardening a Public-Facing Service Beyond the Basics — where PHP-FPM sits behind nginx or Apache, and what the socket between them should and should not be able to do
- The Half of Patching That Happens After the Patch is Installed — an upgraded PHP package is still the old PHP until every FPM worker and every Apache child has been replaced
This advisory page was assembled from the primary sources listed above on 30 November 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.

