PHP critical security release: CVE-2026-129289 FPM request smuggling and six more critical flaws explained
CVE-2026-129289 in PHP-FPM and six more critical flaws: fixed versions on Ubuntu, Debian and Docker, which configs are exposed, how to check and patch.
PHP’s critical security release landed on 19 November 2026: PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36 fix 18 CVEs between them, seven rated critical (CVSS 4.0 9.2). The headline bug is CVE-2026-129289, a PHP-FPM request smuggling flaw that the advisory says can give an unauthenticated attacker code execution with one request and no memory corruption, if the web server reuses FastCGI connections. PHP 8.6.0, released the same day, carries the same fixes.
As the PHP security team warned on 18 November, every critical issue needs a non-default configuration or an uncommon setup. I found no report of exploitation in the wild for any of them at the time of writing. This comes four weeks after PHP2Shell, which is still being exploited.
What happened
The seven critical CVEs, per the GitHub advisories:
| CVE | Bug | Branches | Key condition |
|---|---|---|---|
| CVE-2026-129289 | PHP-FPM request smuggling via unread body | 8.2 to 8.5 | Front end reuses FastCGI connections |
| CVE-2026-115560 | Session serializer mismatch | 8.2 to 8.5 | Upload progress on, mixed session.serialize_handler |
| CVE-2026-126714 | Partially overwritten session files | 8.2 to 8.5 | files handler, interrupted write, gadget chain |
| CVE-2026-129496 | Timezone cache use-after-free | 8.2 to 8.5 | Startup diagnostic, file-based error_log |
| CVE-2026-129481 | UAF after interrupted session shutdown | 8.3 to 8.5 | Fatal error in session cleanup callback |
| CVE-2026-129474 | UAF in magic method backtraces | 8.5 only | fatal_error_backtraces=1, zend.exception_ignore_args=0 |
| CVE-2026-129182 | Stale fatal error backtrace after shutdown | 8.5 only | Specific path-level INI overrides |
The high-rated fixes include CVE-2026-129291 (PHP-FPM epoll use-after-free, local privilege escalation), CVE-2026-128090 (PHAR OpenSSL signature downgrade), CVE-2026-128064 (mixed-case HTTPS and FTPS URLs sent in plaintext) and CVE-2026-127960 (denial of service through folded HTTP response headers).
The attack chain, step by step
CVE-2026-129289. Based on PHP’s advisory:
- The attacker sends a malformed
multipart/form-databody that makes PHP’s multipart parser stop at a predictable position. - The application opens
php://inputbut does not read it to the end. The advisory notes frameworks that create the input stream before routing or authentication do this even on endpoints that ignore the body. - At shutdown, PHP treats the open stream as proof the body was handled and skips discarding the unread bytes. This lazy handling dates back to PHP 5.6.0.
- With
FCGI_KEEP_CONN, PHP-FPM keeps the connection and parses those leftover bytes as a new FastCGI request the front end never authorised. - The forged request sets
SCRIPT_FILENAME,REMOTE_ADDRandPHP_ADMIN_VALUE. Withallow_url_include=1andauto_prepend_file=php://input, its own body runs as PHP, and the changed settings can persist for later requests on that worker.
Exposed front ends: nginx with fastcgi_keep_conn on, Apache mod_proxy_fcgi with enablereuse=on, and HAProxy FastCGI backends that keep connections. LSAPI shares the cleanup bug, but the advisory does not establish code execution there. Standard configurations that close the connection after each request are not affected by the demonstrated attack.
The session bugs. CVE-2026-115560 and CVE-2026-126714 both end in PHP unserializing attacker-shaped session data. The reporters reached command execution with Guzzle and Monolog gadgets for CVE-2026-115560. The Hacker News reports that Depthfirst calls CVE-2026-126714 “phpAfterShell”. Both advisories point at session.upload_progress as an input path, the same feature attackers used for PHP2Shell.
Why it worked
Shared workers keep state between strangers. CVE-2026-129496, CVE-2026-129481 and CVE-2026-129182 all follow PHP2Shell’s pattern: one request leaves freed memory referenced, and the next request on the same worker uses it. PHP calls CVE-2026-129481 an incomplete fix for CVE-2026-109619, and CVE-2026-129182 covers new paths to a bug 8.5.12 fixed as part of it.
The backend trusts the front end. CVE-2026-129289 bypasses routing and IP-based controls because PHP-FPM believes anything on the FastCGI socket.
How to check if you are affected
- Version:
php -vand, for FPM,php-fpm -v(on Debian/Ubuntuphp-fpm8.3 -vand so on). Fixed: 8.5.13, 8.4.28, 8.3.37, 8.2.36 or 8.6.0. On distro builds, check the package version withdpkg -l 'php*'orrpm -q php, because backports keep the upstream number. - Connection reuse (CVE-2026-129289):
sudo nginx -T 2>/dev/null | grep -n fastcgi_keep_connandgrep -rn enablereuse /etc/apache2 /etc/httpd 2>/dev/null. - Session settings:
php -i | grep -E 'session.upload_progress.enabled|session.serialize_handler|session.save_handler'. The CLI can differ from FPM, so also checkphpinfo()through the web server and your pool files forphp_admin_value. - Logging (CVE-2026-129496):
php -i | grep -E '^error_log|date.timezone', plus any startup warnings in that log. - PHP 8.5 only:
php -i | grep -E 'fatal_error_backtraces|zend.exception_ignore_args'.php.ini-productionsetszend.exception_ignore_args=1, which blocks the CVE-2026-129474 path. - Packages: see “Fixed versions on Ubuntu, Debian and Docker” below for exact package versions and image tags.
Fixed versions on Ubuntu, Debian and Docker
Checked on 21 November 2026 against the Ubuntu CVE pages, the Debian Security Tracker, the PHP changelog and Docker Hub. Distros backport fixes, so php -v may still show an older upstream number. Compare the package version instead.
Ubuntu (CVE-2026-129289 and CVE-2026-126714 show the same fixed versions; Ubuntu priority “Medium”, CVSS 4.0 9.2):
| Ubuntu release | Package | Fixed version |
|---|---|---|
| 26.10 | php8.5 | 8.5.9-0ubuntu2.2 |
| 26.04 LTS | php8.5 | 8.5.4-0ubuntu1.6 |
| 24.04 LTS | php8.3 | 8.3.6-0ubuntu0.24.04.14 |
| 22.04 LTS | php8.1 | 8.1.2-1ubuntu2.29 |
| 20.04 LTS (Ubuntu Pro) | php7.4 | 7.4.3-4ubuntu2.29+esm6 |
| 18.04 LTS (Ubuntu Pro) | php7.2 | 7.2.24-0ubuntu0.18.04.17+esm15 |
| 16.04 LTS (Pro, Legacy Support) | php7.0 | 7.0.33-0ubuntu0.16.04.16+esm23 |
| 14.04 LTS (Pro, Legacy Support) | php5 | 5.5.9+dfsg-1ubuntu4.29+esm19 |
The Ubuntu CVE pages did not link a USN for PHP when I checked. USN-9159-1 is often searched together with these CVEs, but it is the nginx notice (19 November), covered in the NGINX HTTP/2 RCE article.
Debian (Security Tracker):
- trixie (13): php8.4
8.4.28-1~deb13u1, DSA-6641-1. The older8.4.27-1~deb13u1is vulnerable. - bookworm (12): php8.2
8.2.36-1~deb12u1, DLA-4916-1. - sid:
8.4.28-3is fixed; forky8.4.27-1was still listed as vulnerable for CVE-2026-129289. - DSA-6641-1 lists 14 CVEs: CVE-2026-115560, CVE-2026-126714, CVE-2026-127960, CVE-2026-128064, CVE-2026-128090, CVE-2026-129289, CVE-2026-129291, CVE-2026-129292, CVE-2026-129481, CVE-2026-129496, CVE-2026-129501, CVE-2026-129506, CVE-2026-129538 and CVE-2026-15353. The two PHP 8.5-only bugs (CVE-2026-129474, CVE-2026-129182) are marked not affected or already fixed there.
Docker official php images: Docker Hub carries tags for the fixed releases, for example 8.2.36-fpm-bookworm, 8.3.37-fpm-bookworm, 8.4.28-fpm-bookworm and 8.5.13-fpm-bookworm. The 8.4.28 line also has fpm-trixie, fpm-alpine and fpm-alpine3.24 tags (pushed 20 November). Rebuild on one of these tags. Debian’s CVE-2026-129291 entry notes that catch_workers_output is enabled in the official PHP-FPM Docker images, which matters for that local privilege escalation.
Upstream fixed versions: 8.5.13, 8.4.28, 8.3.37, 8.2.36 and 8.6.0.
Every CVE ID in this release, in plain text
Per the PHP changelog for 8.4.28 and the Debian tracker descriptions (the two PHP 8.5-only critical bugs come from the GitHub advisories):
- CVE-2026-129289: PHP-FPM request smuggling through an unread HTTP request body.
- CVE-2026-115560: session serializer mismatch can lead to remote code execution.
- CVE-2026-126714: partially overwritten session files can lead to remote code execution (nicknamed “phpAfterShell” by Depthfirst, per The Hacker News).
- CVE-2026-129496: timezone cache use-after-free can lead to remote code execution.
- CVE-2026-129481: use-after-free after interrupted session shutdown.
- CVE-2026-129474: use-after-free in magic method backtraces (PHP 8.5 only).
- CVE-2026-129182: use-after-free via a repopulated fatal error backtrace after shutdown (PHP 8.5 only).
- CVE-2026-129291: PHP-FPM epoll use-after-free, local privilege escalation.
- CVE-2026-128090: PHAR OpenSSL signature bypass through algorithm downgrade.
- CVE-2026-128064: mixed-case HTTPS and FTPS URLs are fetched in plaintext.
- CVE-2026-127960: denial of service through folded HTTP response headers.
- CVE-2026-129292: PHP-FPM status endpoint XSS through unescaped user and script fields.
- CVE-2026-129501: double free during DOM XML serialization.
- CVE-2026-129506: SOAP use-after-free when processing DTD entity references.
- CVE-2026-129538: PHP-CGI out-of-bounds read and write during PATH_INFO correction.
- CVE-2026-15353: SOAP information disclosure through malformed array dimensions.
What defenders should do
- Upgrade and restart every worker. Rebuild containers on the new image tags.
- If you cannot patch today: turn off
fastcgi_keep_connorenablereuse; setsession.upload_progress.enabled=0in php.ini or the pool (notini_set()); fix startup warnings or log to syslog; on 8.5 setfatal_error_backtraces=0. The fixed releases also disable upload progress by default, but an explicit setting overrides that. - Never expose PHP-FPM listeners to untrusted networks.
My take
PHP2Shell is the reason to move fast. Netskope reports intense exploitation, an ARTEX exploit skill, and about 27 million services still vulnerable on Censys’ tracker as of 18 November, roughly 22.8 million on unpatchable 8.1 and older. Attackers chained it with the Check Point zero-day CVE-2026-123039 a week after the fix.
Both PHP and NGINX arrive as Linux distro packages with backported versions, so patch them together: the fastcgi_keep_conn check overlaps with the NGINX HTTP/2 RCE patching (Ubuntu fixed packages for that one are in USN-9159-1), so do both in one change window.
Questions for this week: which pools reuse FastCGI connections, who still has upload progress enabled, and how many PHP 8.1 hosts are left?
Sources
- News Archive 2026: Upcoming Critical PHP Security Release; PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36 Released · php.net, 18-19 November 2026
- PHP 8 ChangeLog (Version 8.5.13, 8.4.28, 8.3.37, 8.2.36) · php.net, 19 November 2026
- GHSA-qc49-hpvq-g2w6: PHP-FPM request smuggling through an unread HTTP request body (CVE-2026-129289) · PHP security advisories on GitHub, 19 November 2026
- GHSA-658j-r8rw-q6mx: Session serializer mismatch can lead to remote code execution (CVE-2026-115560) · PHP security advisories on GitHub, 19 November 2026
- GHSA-fm2m-fjf5-v3cp: Partially overwritten session files can lead to remote code execution (CVE-2026-126714) · PHP security advisories on GitHub, 19 November 2026
- GHSA-gr4f-wgx5-jpfv: Timezone cache use-after-free can lead to remote code execution (CVE-2026-129496) · PHP security advisories on GitHub, 19 November 2026
- GHSA-8mjj-2r7p-4hg2: Use-after-free in magic method backtraces can lead to remote code execution (CVE-2026-129474) · PHP security advisories on GitHub, 19 November 2026
- GHSA-2fjv-p558-g82m: Use-after-free via repopulation of last_fatal_error_backtrace (CVE-2026-129182) · PHP security advisories on GitHub, 19 November 2026
- GHSA-g3vh-838c-65v7: Use-after-free after interrupted session shutdown (CVE-2026-129481) · PHP security advisories on GitHub, 19 November 2026
- CVE-2026-129289 · NVD
- PHP Fixes 7 Critical Flaws, Including Bugs That Could Allow Remote Code Execution · The Hacker News, 19 November 2026
- DSA-6641-1 php8.4 security update · Debian Security Tracker
- CVE-2026-129289 (fixed Ubuntu packages) · Ubuntu Security, 19 November 2026
- CVE-2026-126714 (fixed Ubuntu packages) · Ubuntu Security, 19 November 2026
- CVE-2026-129289 (DSA-6641-1, DLA-4916-1) · Debian Security Tracker
- php (official image tags) · Docker Hub
- USN-9159-1: nginx vulnerabilities · Ubuntu Security Notices, 19 November 2026
- ARTEX Now Ships a PHP2Shell Exploit Skill · Netskope Threat Labs, 18 November 2026