CVE-2026-129289: PHP-FPM request smuggling and WordPress
CVE-2026-129289 is a critical flaw in PHP-FPM, fixed in PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36 on 19 November 2026. Where the web server keeps its FastCGI connections to PHP-FPM open, a single unauthenticated request can smuggle a second, forged request to PHP-FPM that changes PHP’s own settings and runs attacker code. PHP’s advisory needs two things: that connection reuse, and an application that opens the request body without reading it all. On 20 November Wordfence showed that WordPress Core supplies the second through its REST API, and ran code on a stock WordPress 7.1.5 site in its lab. So for a WordPress server, exposure comes down to one web-server setting and the PHP build behind it. No exploitation had been reported by 22 November.
Prepared by G. Schad, WordPress and Linux security specialist
First published in the weekly briefing of 23 November 2026, after Wordfence’s lab result, and moved here so the checks have a page of their own. The modified date changes when the exploitation status does.
Affected
PHP-FPM from 5.6.0 up to 8.2.35, 8.3.36, 8.4.27 and 8.5.12, behind a web server that reuses FastCGI connections
Fixed in
PHP 8.2.36, 8.3.37, 8.4.28 and 8.5.13, 19 November 2026, or a vendor package listing the CVE
Exposed when
nginx fastcgi_keep_conn on, Apache enablereuse=on, or HAProxy keeping FastCGI connections. All off by default
WordPress
Every REST API request meets the application condition; Wordfence reproduced code execution on stock 7.1.5
Stopgap
Turn connection reuse off, then restart PHP-FPM
PHP-FPM · CVE-2026-129289
CVE-2026-129289: the PHP-FPM flaw that stock WordPress can trigger, on servers that reuse FastCGI connections
PHP’s 19 November security releases (8.5.13, 8.4.28, 8.3.37 and 8.2.36) fixed CVE-2026-129289, which PHP rates critical at 9.2 under CVSS v4. Our alert that day covered it as one of seven critical fixes, each with conditions. This section is about what has changed since: on 20 November Wordfence reported that WordPress Core supplies the application half of the conditions by itself.
The flaw, in PHP’s words, is that PHP “can fail to discard unread bytes from an HTTP request body before reusing a persistent PHP-FPM or LSAPI connection”. A web server normally passes each request to PHP-FPM over a FastCGI connection. If a script opens php://input without reading it to the end, and the web server keeps that connection open for the next request, the unread part of the body stays on the connection. An attacker who shapes a malformed multipart body so that PHP’s parser stops at a predictable point can place a complete FastCGI request in those leftover bytes. PHP-FPM then accepts it as a new request that the web server never created or checked.
That forged request sets its own FastCGI parameters, including SCRIPT_FILENAME, REMOTE_ADDR and PHP_ADMIN_VALUE. With the path of any existing PHP file, the attacker can set allow_url_include=1 and auto_prepend_file=php://input, and PHP runs the request body as code, as the PHP-FPM pool user. According to PHP’s advisory, the changed settings can stay active for later requests served by the same worker. It needs no login, no memory corruption, no knowledge of memory addresses and no race. The code has been there since PHP 5.6.0.
Where WordPress comes in. PHP’s advisory needs an application path that opens php://input without reading it fully. Wordfence points out that every WordPress REST API request passes through WP_REST_Server::serve_request(), which calls get_raw_data() on php://input. Its Threat Response team reproduced unauthenticated code execution in an isolated lab through a stock WordPress 7.1.5 REST request, on PHP 8.2.35 behind nginx with PHP-FPM connection reuse on. No plugin, account or session was needed. The same request did nothing on an otherwise identical server running PHP 8.2.36, or with connection reuse off. PHP’s advisory and Wordfence’s post are both public, so the details are available to anyone.
Which servers are exposed. The demonstrated attack needs the web server to keep FastCGI connections to PHP-FPM open: nginx with fastcgi_keep_conn on, Apache mod_proxy_fcgi with enablereuse=on, or HAProxy keeping FastCGI connections. All are off by default, and PHP says standard configurations that close the connection after each request are not affected. They are switched on deliberately as a performance tweak, though, usually together with an nginx upstream block with keepalive. Wordfence notes that WordOps, a server-management tool for WordPress, turns on fastcgi_keep_conn and defines cached PHP-FPM connections in its nginx templates. LiteSpeed’s LSAPI shares the cleanup bug, but PHP says the request stream only desynchronises there; it has not shown code execution through LSAPI.
Exploitation status: none reported, and the flaw was not in CISA’s catalog on 20 November. Of the seven critical PHP flaws fixed on 19 November, this is now the one with the clearest path into an ordinary WordPress site, and updating WordPress does not touch it. Debian has shipped fixed packages (8.2.36-1~deb12u1 for Debian 12 and 8.4.28-1~deb13u1 for Debian 13); the other vendors are covered in our 19 November alert.
Figure 1 · At a glance
Stock WordPress meets half the conditions. The web server decides the rest.
Question
Answer
Exposed when
fastcgi_keep_conn on, enablereuse=on, or HAProxy keeping FastCGI connections
WordPress
Any REST request meets the application condition; RCE shown on 7.1.5 in a lab
Fixed in
PHP 8.2.36, 8.3.37, 8.4.28, 8.5.13, 19 November 2026
Not exposed
Default configurations that close the FastCGI connection after each request
Stopgap
Connection reuse off, then restart PHP-FPM
The points that decide what to do about the PHP-FPM request-smuggling flaw CVE-2026-129289 on WordPress servers, as stated in the sections below.
Does your web server reuse PHP-FPM connections, and is the running PHP fixed?
Two questions decide exposure: whether the web server keeps FastCGI connections open, and whether the PHP-FPM build behind it is fixed. Answer both for every pool, including on servers managed with WordOps, panels or hand-tuned templates.
01
Does nginx keep FastCGI connections open
The running configuration, including included files:
fastcgi_keep_conn on is the setting that matters. An upstream keepalive line on its own does nothing for FastCGI without it, but the two usually travel together.
No output from all three checks means the demonstrated attack path is not open on this server. Update PHP anyway: the same release fixes six other critical flaws.
03
Which PHP-FPM is serving the site, and since when
The FPM masters running now, the time they started, and the installed packages:
Fixed upstream: 8.5.13, 8.4.28, 8.3.37, 8.2.36. On a distribution or panel package, look for CVE-2026-129289 in its changelog rather than the version number. A master that started before the package was updated is still running the old code.
04
Is any PHP-FPM listener reachable from outside
FPM should listen on a socket or on loopback only:
shell
$ ss-ltnp|grep-E"php-fpm|:9000 "
An FPM port on 0.0.0.0 or a public address can be sent FastCGI requests directly, flaw or no flaw. Move it to a Unix socket or 127.0.0.1.
05
If PHP cannot be updated today, turn reuse off
In every location that passes requests to PHP-FPM, and in Apache, remove enablereuse=on. Then reload the web server:
nginx and Apache
# nginx, in each location that uses fastcgi_passfastcgi_keep_conn off;# Apache mod_proxy_fcgi: remove enablereuse=on# from the ProxyPass or SetHandler proxy line
The cost is a new connection to PHP-FPM per request, which is how most servers already run. This blocks the demonstrated path only; it fixes none of the other PHP flaws.
06
Restart PHP-FPM, not only the web server
A forged request can leave changed PHP settings in a worker for later requests. A restart starts every worker clean:
Use the unit name for each version in use (php8.3-fpm, ea-php82-php-fpm and so on). Do this after the update, and after turning reuse off if that comes first.
07
Look for what a successful attempt would leave
The injected code runs as the pool user, so look for new PHP files and for programs started by FPM workers:
shell
$ find /home/*/public_html /var/www -type f -name"*.php"-newermt"2026-11-19"-not-path"*/wp-content/cache/*"-ls2>/dev/null|head -50$ for p in $(pgrep-f"php-fpm: pool");dops--ppid"$p"-o pid,user,lstart,args --no-headers;done
Access logs record REST requests but not their bodies, so they cannot show the smuggled request itself. Plugin and theme updates also create PHP files; compare anything unexpected with the plugin’s own release.
My server uses fastcgi_keep_conn for speed. Do I have to turn it off?
Not if PHP is on 8.5.13, 8.4.28, 8.3.37, 8.2.36 or a vendor package that fixes CVE-2026-129289, and PHP-FPM has been restarted since. Below that, yes: turn it off until PHP is updated. Connection reuse plus a vulnerable PHP-FPM is exactly the setup Wordfence used to run code on a stock WordPress 7.1.5 site.
Does updating WordPress fix CVE-2026-129289?
No. The flaw is in PHP-FPM. WordPress’s REST API supplies one of the conditions, but every WordPress version does, and there is nothing in WordPress to fix. The fix is a PHP package from whoever runs the server, then a restart of PHP-FPM.
Choose the response path
The web server reuses PHP-FPM connections on more hosts than you thought: choose the response path.
The servers under the sites
Get nginx, PHP-FPM and the rest of the stack checked on every host.
Best when several servers need the nginx package, HTTP/2 and QUIC listeners, FastCGI connection reuse and PHP-FPM builds verified from the running processes, the look-back done once, and a written result per host.
Get the finding classified and the site restored to a trusted state.
Best when a worker started a shell, an administrator appeared after a restore, wp-config.php went missing, or Search Console shows legal pages you never wrote, and you want every layer removed in one pass.