CVE
CVE-2026-129289, CVE-2026-126714, CVE-2026-115560, CVE-2026-129496, CVE-2026-129474, CVE-2026-129182, CVE-2026-129481, CVE-2026-129291, CVE-2026-128090, CVE-2026-128064, CVE-2026-127960
CWE
CWE-444, CWE-502, CWE-367, CWE-416, CWE-347, CWE-319
Affected Surface
- 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 (PHP-FPM, Apache mod_php, CGI and LSAPI, depending on the bug). PHP 8.6.0 ships with the fixes
- PHP-FPM behind nginx with `fastcgi_keep_conn on`, Apache `mod_proxy_fcgi` with `enablereuse=on`, HAProxy FastCGI with kept backend connections, and LSAPI (CVE-2026-129289)
- Any PHP install using the default `files` session handler (CVE-2026-126714) or with `session.upload_progress.enabled` on and mixed `session.serialize_handler` values over one session store (CVE-2026-115560)
- PHP-FPM pools with `catch_workers_output = yes` on the epoll backend, where a worker can escalate to the FPM master, usually root (CVE-2026-129291). PHP 8.1.20 to 8.1.34 are affected and get no fix
- End-of-life PHP 8.1 and older, which get no upstream fixes for this release
TL;DR
PHP shipped 8.5.13, 8.4.28, 8.3.37 and 8.2.36 on 19 November 2026, the day after a pre-announcement that the release would be rated critical. The php-src repository published 17 security advisories between 14:05 and 14:08 UTC. Seven are critical (CVSS 4.0 score 9.2). Counting the bundled uriparser 1.0.3 update on 8.5 (CVE-2026-48841), that’s 18 CVEs. PHP 8.6.0, which went GA the same day, already contains the fixes.
PHP says the critical bugs need “non-default configuration or uncommon setups”. That’s true, but some of those setups are common in production:
- CVE-2026-129289, PHP-FPM request smuggling. If nginx, Apache or HAProxy keeps FastCGI connections to PHP-FPM open, and the app opens
php://inputwithout reading all of it, one unauthenticated HTTP request can carry a second, forged FastCGI request. That request picks its ownSCRIPT_FILENAME,REMOTE_ADDRandPHP_ADMIN_VALUE, so the attacker can turn onauto_prepend_file=php://inputand run their own PHP. No memory corruption or race is involved. The bug dates back to PHP 5.6.0. - CVE-2026-126714, phpAfterShell. Depthfirst found that the default
filessession handler rewrites session files in place. If a worker dies partway through, the file holds the start of the new session and the end of the old one. With the right length fields, that hybrid file deserializes attacker-chosen objects on the nextsession_start(). Depthfirst reached code execution by chaining it with a memory-corruption bug in a built-in PHP class, which it hasn’t disclosed yet. - CVE-2026-115560, the upload-progress serializer mismatch PHP warned about on 23 October, now has a fix. As part of it,
session.upload_progress.enablednow defaults to off in every fixed branch. - Four more critical use-after-free bugs hit the timezone cache (all branches), magic-method backtraces and the fatal-error backtrace global (8.5 only), and session shutdown (8.3+).
- On the high-severity list are a PHP-FPM master privilege escalation (CVE-2026-129291) and a Phar signature downgrade (CVE-2026-128090).
PHP reports no exploitation. No CVE from this release is in CISA KEV, EPSS had no scores on 19 November, and a GitHub search found no public PoC repositories. Remember that PHP2Shell went from patch to KEV in five days in October.
What to do now:
- Upgrade to 8.5.13, 8.4.28, 8.3.37 or 8.2.36 (or 8.6.0), or to your distribution’s fixed package. Then restart PHP-FPM, Apache or the container, because a running master keeps the old binary.
- Until then, turn off FastCGI connection reuse: remove
fastcgi_keep_conn onin nginx andenablereuse=onin ApacheProxyPasslines. - Set
session.upload_progress.enabled = 0inphp.inior the pool config (notini_set()or.user.ini) and restart workers. It covers the easiest path to CVE-2026-126714 and the demonstrated path to CVE-2026-115560, but not the rest. - On 8.5, set
zend.exception_ignore_args = 1andfatal_error_backtraces = 0for FPM and Apache. On any branch, setcatch_workers_output = noin FPM pools until you’ve upgraded. - If you run PHP 8.1 or older, these bugs won’t be fixed upstream. Move to a supported branch.
Affected packages and projects
| Ecosystem | Package | Affected versions | Fixed or safe version |
|---|---|---|---|
| PHP | php-src, most advisories (SAPI, session, date, phar, standard, SOAP, CGI) | below 8.2.36; 8.3.0 to 8.3.36; 8.4.0 to 8.4.27; 8.5.0 to 8.5.12 | 8.2.36, 8.3.37, 8.4.28, 8.5.13, 8.6.0 |
| PHP | CVE-2026-129474, CVE-2026-129182, CVE-2026-129438, CVE-2026-48841 (engine and ext/uri) | 8.5.0 to 8.5.12 only | 8.5.13, 8.6.0 |
| PHP | CVE-2026-129481 (session shutdown) | 8.3.0 and later | 8.3.37, 8.4.28, 8.5.13 |
| PHP | CVE-2026-129501 (Dom\XMLDocument serializer double free) | 8.4.0 and later | 8.4.28, 8.5.13 |
| PHP | CVE-2026-129291 (FPM epoll use-after-free) | 8.1.20 to 8.1.34, 8.2.7 to 8.2.35, all 8.3 to 8.5 before the fix | 8.2.36, 8.3.37, 8.4.28, 8.5.13. 8.1 unfixed |
| PHP | CVE-2026-127960 (folded header DoS) | 8.1.32 to 8.1.34, 8.2.28 and later, 8.3.18 and later, 8.4.5 and later, all 8.5 before the fix | 8.2.36, 8.3.37, 8.4.28, 8.5.13. 8.1 unfixed |
| Docker Hub | php official images | tags built before 19 November | 8.5.13-* from 15:28 UTC, 8.4.28-* from 15:23 UTC, 8.3.37-* from 16:03 UTC, 8.6.0-* from 16:06 UTC, 8.2.36-* from 18:58 UTC on 19 November |
| Debian | php8.4, php8.2 | trixie 8.4.24-1~deb13u1, bookworm 8.2.32-1~deb12u1, forky and sid 8.4.27-1 | trixie 8.4.28-1~deb13u1 (DSA-6641-1), bookworm 8.2.36-1~deb12u1 (DLA-4916-1). forky and sid unfixed on 19 November |
The full severity list from the advisories:
| CVE | Component | CVSS 4.0 | Issue |
|---|---|---|---|
| CVE-2026-129289 | FPM, LSAPI | 9.2 | Request smuggling through an unread request body |
| CVE-2026-115560 | Session | 9.2 | Serializer mismatch with upload progress leads to deserialization |
| CVE-2026-126714 | Session | 9.2 | Interrupted session file write leaves a deserializable hybrid (phpAfterShell) |
| CVE-2026-129481 | Session | 9.2 | Stale script filename after interrupted session shutdown (incomplete fix for CVE-2026-109619) |
| CVE-2026-129496 | Date | 9.2 | Timezone cache use-after-free during early request startup |
| CVE-2026-129474 | Engine | 9.2 | Use-after-free in __call()/__callStatic() backtrace arguments |
| CVE-2026-129182 | Engine | 9.2 | last_fatal_error_backtrace repopulated after shutdown |
| CVE-2026-129291 | FPM | 8.8 | Epoll use-after-free, worker to FPM master (local) |
| CVE-2026-127960 | Standard | 8.7 | Quadratic folded-header handling in the HTTP stream wrapper |
| CVE-2026-128064 | Standard | 8.2 | HTTPS:// and FTPS:// with an uppercase S skip TLS |
| CVE-2026-128090 | Phar | 7.7 | OpenSSL signature downgrade to a keyless hash |
| CVE-2026-129538 | CGI | 6.9 | Out-of-bounds read and write in PATH_INFO correction |
| CVE-2026-129506, CVE-2026-15353 | SOAP | 6.3 | DTD use-after-free; array dimension info leak |
| CVE-2026-129501 | DOM | 6.3 | Double free in XML serialization |
| CVE-2026-129438 | URI | 6.3 | Incorrect RFC 3986 serialization of oversized input |
| CVE-2026-129292 | FPM | 5.3 | Status page XSS |
Linux distributions backport fixes without changing the version string, so php -v alone doesn’t prove you’re fixed. Depthfirst makes the same point. Compare the package revision against your distribution’s advisory.
Technical analysis
The fixes were committed to the PHP-8.2 branch between 21 September and 15 November and merged forward. The links below point at the 8.2 commits. The 8.5 equivalents have different SHAs (for example, e0b8eb8ace for the FPM fix).
CVE-2026-129289: an unread body becomes a second FastCGI request
FastCGI lets the web server send many requests over one socket when it sets the FCGI_KEEP_CONN flag. Before PHP-FPM reads the next request, it has to throw away whatever is left of the current request’s body (the FCGI_STDIN records).
PHP reads php://input lazily. Opening the stream creates SG(request_info).request_body without reading anything. At request shutdown, sapi_deactivate_module() treated the existence of that stream as proof the body had been consumed, so it skipped the drain. The fix in 28014fd092 turns the else if into a plain if:
--- a/main/SAPI.c
+++ b/main/SAPI.c
@@ -498,7 +498,8 @@ SAPI_API void sapi_deactivate_module(void)
zend_llist_destroy(&SG(sapi_headers).headers);
if (SG(request_info).request_body) {
SG(request_info).request_body = NULL;
- } else if (SG(server_context)) {
+ }
+ if (SG(server_context)) {
if (!SG(post_read)) {
/* make sure we've consumed all request input data */
char dummy[SAPI_POST_BLOCK_SIZE];
Before, a request that opened php://input never reached the drain loop. Now the drain runs whenever post_read is false, whether or not a stream object exists.
The second half of the bug is in main/fastcgi.c. When the worker went back for the next request, it reset in_len (bytes still owed from the current STDIN record) to zero and started parsing from wherever the socket was. If the leftover body bytes happened to be a well-formed FastCGI BEGIN_REQUEST, PHP-FPM took them as a new request. The fix refuses to start a request while a record is half-read and clears the counter when the connection closes:
--- a/main/fastcgi.c
+++ b/main/fastcgi.c
@@ -1046,6 +1046,10 @@ static int fcgi_read_request(fcgi_request *req)
int len, padding;
unsigned char buf[FCGI_MAX_LENGTH+8];
+ if (UNEXPECTED(req->in_len != 0)) {
+ return 0;
+ }
+
req->keep = 0;
req->ended = 0;
req->in_len = 0;
@@ -1309,6 +1313,8 @@ void fcgi_close(fcgi_request *req, int force, int destroy)
req->nodelay = 0;
#endif
req->fd = -1;
+ /* a partially read STDIN record does not outlive its connection */
+ req->in_len = 0;
To control where body parsing stops, the attacker sends a malformed multipart/form-data body that makes PHP’s multipart parser bail out at a predictable offset. The regression test added with the fix (sapi/fpm/tests/unread-body-keep-conn.phpt) shows the shape. It builds an “outer” POST whose 12,000-byte multipart body has a complete FastCGI request spliced in at offset 5120:
$hidden = request(2, false, $hiddenParams, ''); // BEGIN_REQUEST + PARAMS + STDIN for request id 2
$body = str_pad("--B\r\nContent-Disposition: form-data\r\n\r\n", 12000, 'A');
$body = substr_replace($body, $hidden, 5120, strlen($hidden));
The script under test only does fopen('php://input', 'r'). With keep-alive on, an unpatched worker answers the hidden request too, using the hidden REMOTE_ADDR of 203.0.113.1. The test’s expected output after the fix is keep on: safe.
In a real attack the hidden request’s PARAMS would set PHP_ADMIN_VALUE to allow_url_include=1 and auto_prepend_file=php://input against any PHP file the attacker knows exists, which runs the hidden request’s own body as code. The advisory adds that those admin values can stick to the worker for later requests. The front end never sees the forged request, so it’s missing from the nginx or Apache access log, and so are front-end routing rules and IP allow lists.
Two conditions have to hold:
- Connection reuse. nginx
fastcgi_keep_conn on(usually paired with anupstreamblock andkeepalive), Apachemod_proxy_fcgiwithenablereuse=on, HAProxy’s FastCGI backends that keep connections, or LSAPI. Stock nginx and Apache configs close the connection after each request and aren’t affected by the demonstrated attack. For LSAPI, PHP only shows request desync, not code execution. - An app path that opens
php://inputand doesn’t read it to the end. The advisory warns this happens in frameworks that create the input stream before routing or authentication, even on endpoints that ignore the body.
CVE-2026-126714 (phpAfterShell): two valid sessions make a third
With session.serialize_handler=php, a session file is a list of key|serialized_value records with no overall length, checksum or commit marker. The string type s:<len>:"..." carries its own length, and that length decides where the decoder resumes.
Depthfirst noticed that the PHP2Shell fix only stopped objects from being created during the upload-progress callback. The callback still read the session, added a progress key built from the multipart field name and filename, serialized everything and wrote it back to the same file, before any application code ran. The vulnerable write path in ext/session/mod_files.c truncated only when the new data was shorter than the old file:
--- a/ext/session/mod_files.c
+++ b/ext/session/mod_files.c
@@ -236,9 +236,9 @@ static zend_result ps_files_write(ps_files *data, zend_string *key, zend_string
return FAILURE;
}
- /* Truncate file if the amount of new data is smaller than the existing data set. */
- if (ZSTR_LEN(val) < data->st_size) {
- php_ignore_value(ftruncate(data->fd, 0));
+ if (ftruncate(data->fd, 0) != 0) {
+ php_error_docref(NULL, E_WARNING, "ftruncate() failed: %s (%d)", strerror(errno), errno);
+ return FAILURE;
}
#ifdef HAVE_PWRITE
That’s the whole fix (41c0941ae2): always empty the file, and give up if that fails.
Depthfirst’s attack uses three requests on one session ID:
- A carrier upload writes session
C, whose progress entry holds a long string. Inside that string sits a serialized object, for exampleevil|O:8:"stdClass":1:{s:5:"proof";s:5:"pwned";}. As long as the outer length is intact it’s just text. - A replacement upload makes PHP write session
R, with a shorter string length placed just before where the object bytes sit inC. The attacker then kills the worker partway through the write. In Depthfirst’s tests that meant pushing the Apache cgroup to an out-of-memory kill, because PHP’s execution timeout only fired afterpwrite()had finished. - Any page that calls
session_start()readsR[0:k] || C[k:]. The shortened length ends early, the decoder treats the old object bytes as a new top-level record, and$_SESSION['evil']comes back as a real object.
The flock on the session file doesn’t help, since the kernel drops it when the process dies and leaves whatever bytes are on disk. Depthfirst got the planted object on the 11th attempt in a fresh run. It also found a second variant in the 8.4.28 and 8.5.13 release candidates, which had moved truncation to after the write: there, a worker killed between pwrite() and ftruncate() leaves R || C[|R|:]. The final releases revert that ordering (3298e10ac6 on 8.5) and apply the truncate-first fix.
Even without objects, the same splice can rewrite plain session values such as the logged-in user, roles or a CSRF token. With objects, the app’s own classes become a gadget surface. Depthfirst’s chain needed no app gadget at all. It used a memory-corruption bug in a PHP-native class’s unserializer, which it’s holding back for coordinated disclosure, and it hasn’t said whether this release fixes that bug.
CVE-2026-115560: the October upload-progress bug, now fixed
On 23 October PHP told users to set session.upload_progress.enabled=0 because of a third RCE path left open by the PHP2Shell releases. The full advisory explains it. Upload progress writes the attacker-supplied PHP_SESSION_UPLOAD_PROGRESS value into a session key. If the writer uses php_binary or php_serialize and a later reader of the same session uses php, a | inside the key makes the reader pass the rest of the key to unserialize(). The mismatch can come from ini_set('session.serialize_handler', 'php') before session_start(), or from two apps, pools or CLI jobs sharing one session directory. The reporters got command execution with Guzzle and Monolog 2.11.1 gadgets on 8.2.35, 8.3.36, 8.4.27 and 8.5.12.
The fix (3f70f66611) does two things. Session INI settings can’t change at runtime while upload progress is on, and the feature defaults to off:
+#define SESSION_CHECK_UPLOAD_PROGRESS_STATE \
+ if (PS(rfc1867_enabled) && stage == ZEND_INI_STAGE_RUNTIME) { \
+ zend_throw_error(NULL, "Session ini settings cannot be changed at runtime when session.upload_progress.enabled is On"); \
+ return FAILURE; \
+ }
...
STD_PHP_INI_BOOLEAN("session.upload_progress.enabled",
- "1", ZEND_INI_PERDIR, OnUpdateBool, rfc1867_enabled, php_ps_globals, ps_globals)
+ "0", ZEND_INI_PERDIR, OnUpdateBool, rfc1867_enabled, php_ps_globals, ps_globals)
The release notes don’t call out the new default. The shipped php.ini-production and php.ini-development still have the commented line ;session.upload_progress.enabled = On, which now describes a non-default value. If your distro, hosting panel or own php.ini sets it to On explicitly, it stays on, and PHP says the fix doesn’t enforce matching serializers across separate configurations. Apps that show upload progress bars will need the setting turned back on deliberately.
The other critical use-after-frees
All four are about state that outlives a request in a reused worker:
- CVE-2026-129496 (all branches). In non-thread-safe builds, a diagnostic written to a file-based
error_logduring startup (say, an invaliddate.timezoneor a deprecated session setting) allocates the timezone cache in startup memory that’s later freed. A request that triggers an early warning, such as going overmax_input_vars, then reads the freed hash table, which may already hold attacker request data. PHP reports an FPM worker crash with defaultmax_input_varsand normal nginx header limits, plus native command execution on Apache mod_php and in a local FPM proof. The fix (f986c5ca37) writes error-log timestamps in UTC outside an active request. Fixing startup warnings and restarting, or logging to syslog, avoids the demonstrated trigger. - CVE-2026-129474 (8.5 only). While PHP sets up a
__call()or__callStatic()call, a backtrace taken at that moment can collect stale, freed arguments. PHP 8.5 turns on fatal-error backtraces by default, and 8.5.12 added delayed handling of out-of-memory failures, so a request sized to hitmemory_limitwhile logging through a magic static method (a common facade pattern) can corrupt memory. PHP confirmed RCE. It needszend.exception_ignore_args=0, which is PHP’s built-in default, butphp.ini-productionsets it to 1. - CVE-2026-129182 (8.5 only) and CVE-2026-129481 (8.3+) are leftovers from the PHP2Shell fix for CVE-2026-109619. A fatal error during INI restore, or inside a stream wrapper’s
stream_close()during session shutdown, recreates or keeps a pointer into the freed request heap. The next request on that worker touches it. PHP has shown crashes for both but no RCE yet. For CVE-2026-129481,pm.max_requests=1blocks the demonstrated sequence at a performance cost.
CVE-2026-129291: worker to FPM master
This one is local, but it matters on shared hosting and anywhere a PHP app compromise would otherwise stay as www-data. With catch_workers_output = yes, the FPM master watches worker stdout and stderr pipes with epoll. If a worker exits while a helper process still holds the write end, the master closed its read descriptor without removing the epoll registration, and a delayed cleanup a second later could act on a reused descriptor number. A later write to the old pipe hands the master a pointer into a freed worker record, and the master calls the callback stored there. PHP reproduced root command execution from a www-data worker on unmodified 8.5.12 Docker images on x86-64 and arm64. The fix (8c38b79144) removes the event while the descriptor is still valid and marks it closed:
if (child->fd_stdout != -1) {
+ if (in_event_loop) {
+ fpm_event_del(&child->ev_stdout);
+ }
close(child->fd_stdout);
+ child->fd_stdout = -1;
}
The official Docker php:*-fpm images ship catch_workers_output = yes in docker.conf, so containers built from them meet the main precondition. Running the FPM master as a non-root user limits the damage.
Smaller fixes worth reading
- CVE-2026-128090, Phar. The archive chooses its own signature type. Swap an OpenSSL signature for a SHA-256 hash anyone can compute and PHP never looks at
<archive>.pubkey. The fix (7050cf3380) rejects keyless signatures when a.pubkeyfile exists. This matters for self-updating CLI tools distributed as signed phars. - CVE-2026-128064, stream wrappers. TLS was chosen by checking for a lowercase
sat a fixed position, soHTTPS://orhttpS://sent requests in cleartext. That includes the body and auth headers on a 307 redirect from a real HTTPS endpoint. The fix (cb68a63e81) is a one-line case-insensitive compare:
- use_ssl = resource->scheme && (ZSTR_LEN(resource->scheme) > 4) && ZSTR_VAL(resource->scheme)[4] == 's';
+ use_ssl = zend_string_equals_literal_ci(resource->scheme, "https");
Exploitation status
On 19 November no advisory, vendor or researcher reported exploitation. The CVEs weren’t in KEV, EPSS returned no data and GitHub had no PoC repositories for CVE-2026-129289 or phpAfterShell. Depthfirst published a video of its full chain but kept the native-class bug private. The FPM smuggling bug needs no memory corruption and the regression test already shows how to build the payload, so expect a working exploit soon for anyone running connection reuse.
IOCs
These are vulnerabilities, not a malware campaign, so there are no domains, IPs or hashes. Signs worth hunting:
- PHP-FPM pool access-log entries (if
access.logis set) for scripts, client addresses or request counts that don’t appear in the nginx or Apache access log. A smuggled request reaches FPM without going through the front end. - Requests that combine
multipart/form-datawith a malformed boundary and an unusually large body sent to endpoints that don’t accept uploads. - Session files containing serialized objects (
O:<n>:") where your app only stores scalars and arrays, or containing a leftoverupload_progress_key next to object data. WARNING: [pool www] child <pid> exited on signal 11 (SIGSEGV)in the FPM log, Apachesegmentation faultlines, and FPM masters spawning shells.
Detection and remediation
# 1. Which PHP is serving web traffic? (CLI and FPM can differ)
php -v; php-fpm -v 2>/dev/null || php-fpm8.4 -v 2>/dev/null
dpkg -l 'php*-fpm' 'php*-cli' 'libapache2-mod-php*' 2>/dev/null | awk '/^ii/{print $2, $3}'
rpm -qa 'php*' 2>/dev/null; apk info -v 2>/dev/null | grep '^php'
# 2. CVE-2026-129289: is FastCGI connection reuse on?
sudo nginx -T 2>/dev/null | grep -nE 'fastcgi_keep_conn[[:space:]]+on'
sudo grep -rnE 'enablereuse=on' /etc/apache2 /etc/httpd 2>/dev/null
sudo grep -rnE 'proto[[:space:]]+fcgi|use-fcgi-app' /etc/haproxy 2>/dev/null
# 3. CVE-2026-129289: app code that opens php://input (review whether it reads to EOF)
grep -rnE "php://input|getContent\(|getBody\(" --include='*.php' src/ app/ vendor/ 2>/dev/null | head
# 4. Session and backtrace settings as FPM/Apache see them (run through the web SAPI, or check pool files)
php -i | grep -E 'session.upload_progress.enabled|session.save_handler|session.serialize_handler|zend.exception_ignore_args|fatal_error_backtraces'
sudo grep -rnE 'upload_progress|serialize_handler|catch_workers_output|exception_ignore_args|fatal_error_backtraces' /etc/php* /usr/local/etc/php* 2>/dev/null
grep -rnE "ini_set\(\s*['\"]session\.serialize_handler" --include='*.php' . 2>/dev/null
# 5. Containers
grep -rnE '^FROM[[:space:]]+(docker\.io/)?(library/)?php:' --include='Dockerfile*' .
docker run --rm --entrypoint php <image> -r 'echo PHP_VERSION, PHP_EOL;'
# 6. Phar trust anchors (CVE-2026-128090): find signed phars that rely on .pubkey
find / -name '*.phar.pubkey' -not -path '/proc/*' 2>/dev/null
# 7. Crashes and suspicious session contents
sudo grep -E 'exited on signal 11|SIGSEGV|segmentation fault' /var/log/php*-fpm.log /var/log/apache2/error.log 2>/dev/null
sudo grep -lE 'O:[0-9]+:"' "$(php -r 'echo ini_get("session.save_path") ?: sys_get_temp_dir();')"/sess_* 2>/dev/null | head
Temporary mitigations until you can upgrade. None of them replaces it:
# nginx: close the FastCGI connection after every request (CVE-2026-129289)
location ~ \.php$ {
fastcgi_keep_conn off; # the default; remove any "fastcgi_keep_conn on"
fastcgi_pass php-fpm:9000;
}
; php.ini or FPM pool (php_admin_value), then restart all workers
session.upload_progress.enabled = 0 ; CVE-2026-115560, easiest path to CVE-2026-126714
zend.exception_ignore_args = 1 ; CVE-2026-129474 (8.5)
fatal_error_backtraces = 0 ; CVE-2026-129474, CVE-2026-129182 (8.5)
; FPM pool file
catch_workers_output = no ; CVE-2026-129291
For Apache, drop enablereuse=on from ProxyPass ... fcgi:// lines. Never expose PHP-FPM or LSAPI ports to an untrusted network. If you store sessions in Redis or a database, CVE-2026-126714’s file-write bug doesn’t apply, but the other session bugs still do.
If you find signs of exploitation, assume the attacker had whatever the PHP worker could read: database credentials in config files, API keys in environment variables, signing keys and session secrets. Rotate those. For CVE-2026-129291 on an FPM master running as root, treat the host as compromised. Invalidate all sessions after upgrading, since a spliced session can carry forged login or role data.
Patch order: FPM front ends with connection reuse first, then anything with upload progress explicitly enabled, then 8.5 installs (three of the critical bugs are 8.5-only), then everything else.
Timeline
- PHP 5.6.0: lazy
php://inputhandling introduces the drain bug behind CVE-2026-129289. - 2026-10-21: PHP fixes PHP2Shell (CVE-2026-109618, CVE-2026-109619) in 8.5.12, 8.4.27, 8.3.36 and 8.2.35.
- 2026-10-23: PHP publishes an informational advisory for CVE-2026-115560 and recommends
session.upload_progress.enabled=0. - 2026-10-29: The CVE-2026-129289 fix is committed to the PHP-8.2 branch. The session fixes for CVE-2026-115560 and CVE-2026-126714 follow on 9 and 11 November, and the timezone cache fix on 15 November.
- 2026-11-17: The version bump for PHP 8.2.36 is committed. Depthfirst’s affected-version table reflects the php-src trees on this date.
- 2026-11-18: PHP pre-announces critical releases for 14:00 to 14:30 UTC on 19 November.
- 2026-11-19: PHP releases 8.5.13, 8.4.28, 8.3.37, 8.2.36 and 8.6.0. The php-src advisories go public from 14:05 to 14:08 UTC. Docker Hub’s official
phpimages are rebuilt between 15:23 and 18:58 UTC. Debian ships DSA-6641-1 (trixie) and DLA-4916-1 (bookworm). Depthfirst publishes phpAfterShell. Aikido, BleepingComputer and The Hacker News report on the release. None of the CVEs is in KEV.
From research to remediation
Check whether this pattern exists in your codebase
Turn this research into a remediation workflow. Use AI-native static analysis to find similar application vulnerabilities and generate review-ready fixes.
References
- PHP 8 ChangeLog: Version 8.5.13, 8.4.28, 8.3.37 and 8.2.36 (19 November 2026)
- PHP news: Upcoming Critical PHP Security Release (18 November 2026)
- GHSA-qc49-hpvq-g2w6 (CVE-2026-129289): PHP-FPM request smuggling through an unread HTTP request body
- GHSA-fm2m-fjf5-v3cp (CVE-2026-126714): Partially overwritten session files can lead to remote code execution
- GHSA-658j-r8rw-q6mx (CVE-2026-115560): Session serializer mismatch can lead to remote code execution
- GHSA-gr4f-wgx5-jpfv (CVE-2026-129496): Timezone cache use-after-free can lead to remote code execution
- GHSA-8mjj-2r7p-4hg2 (CVE-2026-129474): Use-after-free in magic method backtraces can lead to remote code execution
- GHSA-2fjv-p558-g82m (CVE-2026-129182): Use-after-free via repopulation of last_fatal_error_backtrace after shutdown
- GHSA-g3vh-838c-65v7 (CVE-2026-129481): Use-after-free after interrupted session shutdown
- GHSA-jm4m-qfqx-967m (CVE-2026-129291): PHP-FPM epoll use-after-free can lead to local privilege escalation
- GHSA-68fq-fh7h-f8gr (CVE-2026-128090): PHAR OpenSSL signature bypass via algorithm downgrade
- GHSA-f6gg-rchx-xw8j (CVE-2026-128064): Mixed-case HTTPS and FTPS URLs can expose data in plaintext
- GHSA-mmf9-xm3v-hg2x (CVE-2026-127960): Denial of service through folded HTTP response headers
- php/php-src commit 28014fd092: Fix GHSA-qc49-hpvq-g2w6, drain unread request bodies (PHP-8.2)
- php/php-src commit 41c0941ae2: Fix GHSA-fm2m-fjf5-v3cp, RCE via corrupted session file (PHP-8.2)
- php/php-src commit 3f70f66611: Fix GHSA-658j-r8rw-q6mx, session.upload_progress.enabled is off by default (PHP-8.2)
- php/php-src commit 8c38b79144: Fix GHSA-jm4m-qfqx-967m, FPM worker stdio pipe fd closed twice (PHP-8.2)
- Depthfirst (19 November 2026): phpAfterShell, from interrupted session writes to remote code execution
- Aikido (19 November 2026): PHP critical security release, 19 November (CVE-2026-129289)
- BleepingComputer: PHP security updates fix 18 flaws, including critical RCE bugs
- The Hacker News (19 November 2026): phpAfterShell explained
- Debian security tracker: CVE-2026-129289 (DSA-6641-1, DLA-4916-1)