Back to Blog
PHP's November 2026 Security Release: Seven Critical Advisories, One to Check Today
The November 19 PHP security releases fix 17 advisories on the 8.5 branch, seven of them rated critical. Most need an unusual setup, but one PHP-FPM request smuggling bug only needs FastCGI keepalive. Here is how I sort them before patching.
Back
Engineering
Table of contents
On November 18 the PHP security team posted a short warning: security releases were coming the next day, the highest severity was CRITICAL, and the critical issues "require either non-default configuration or uncommon setups." On November 19 PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36 came out, together with PHP 8.6.0, whose changelog lists the same advisory fixes.
That second sentence of the warning is the useful one. A list of seven critical advisories looks scary, and you should patch anyway. But when you have a handful of servers and limited time today, it helps to know which bugs can actually reach your setup. So I went through the advisories on the php-src GitHub security page one by one.
The numbers
Counting the GHSA entries in the official changelog:
- 8.5.13 fixes 17 advisories. Seven are rated critical, five high, five medium.
- 8.4.28 fixes 14 and 8.3.37 fixes 13. Two of the critical ones only affect 8.5, and one session bug does not exist in 8.2.
- 8.2.36 fixes 12, four of them critical.
Keep in mind that PHP 8.2 reaches end of security support on December 31, 2026, according to the supported versions page. This is very likely one of its last releases.
The one I would check first: PHP-FPM request smuggling
GHSA-qc49-hpvq-g2w6 (CVE-2026-129289) is the critical advisory that worries me most, because it does not need a strange PHP configuration and it does not involve memory corruption.
If an application opens php://input and does not read it to the end, PHP could skip discarding the unread body at the end of the request. With a malformed multipart/form-data body, an attacker can leave bytes behind that PHP-FPM then parses as a brand new FastCGI request on the same connection. That forged request controls FastCGI parameters like SCRIPT_FILENAME, REMOTE_ADDR and PHP_ADMIN_VALUE, and the advisory describes using it to run attacker-controlled PHP as the worker. The advisory also notes that this can happen in frameworks that create an input stream before routing or authentication, even when the endpoint never uses the body.
The condition that matters is persistent backend connections. The advisory names nginx with fastcgi_keep_conn on, Apache mod_proxy_fcgi with enablereuse=on, HAProxy FastCGI backends that keep connections, and LSAPI. In nginx, fastcgi_keep_conn is off by default, and the advisory says standard nginx and Apache configurations that close the FastCGI connection after each request are not affected by the demonstrated attack.
Turning on fastcgi_keep_conn (usually together with an upstream keepalive block) is a common performance tweak. So before deciding you are safe, grep your config:
bash
grep -rn "fastcgi_keep_conn\|keepalive" /etc/nginx/
grep -rn "enablereuse" /etc/apache2/ /etc/httpd/ 2>/dev/nullIf it is on and you cannot upgrade today, the advisory's own mitigation is to turn backend connection reuse off until you can. And the usual rule still applies: never expose a PHP-FPM listener directly to an untrusted network.
The 8.5-only engine bugs
Two critical advisories exist only on PHP 8.5, because they come from fatal error backtraces, which were added in 8.5.0.
GHSA-8mjj-2r7p-4hg2 (CVE-2026-129474) is a use-after-free when a fatal error happens while PHP is entering a __call() or __callStatic() method. The demonstrated remote attack needs fatal_error_backtraces=1 (the 8.5 default) and zend.exception_ignore_args=0. The advisory points out that php.ini-production sets zend.exception_ignore_args=1, which blocks this path. It lists Laravel facades as a potentially relevant path, since they go through __callStatic(), but it is explicit that exploitation of a complete Laravel installation has not been demonstrated. The workaround if you cannot upgrade yet: set zend.exception_ignore_args=1 for the FPM workers (not just the CLI), or fatal_error_backtraces=0, and restart them.
GHSA-2fjv-p558-g82m (CVE-2026-129182) is a follow-up to a fix shipped in 8.5.12. It needs specific INI combinations during shutdown plus an early diagnostic in a later request. The advisory says RCE through these specific entry points has not been demonstrated.
If you are on 8.5 and your production php.ini came from php.ini-production, check the effective value rather than assuming:
bash
php-fpm8.5 -i | grep -E "exception_ignore_args|fatal_error_backtraces"(The binary name depends on your distro. On Docker images it is usually just php-fpm.)
Session bugs, and why most Laravel apps can relax a bit
Three critical advisories are in ext/session:
GHSA-fm2m-fjf5-v3cp: an interrupted write in the defaultfileshandler can leave a session file made of two different sessions, which can lead to deserializing attacker-controlled objects. Present since PHP 4.1.0, according to the advisory.GHSA-658j-r8rw-q6mx: session upload progress can write data with one serializer and read it back with another. This needs a serializer mismatch, for example two apps sharing the same session directory with differentsession.serialize_handlersettings.GHSA-g3vh-838c-65v7: a use-after-free when session shutdown is interrupted by a fatal error. 8.3 and later only. Code execution through it has not been demonstrated.
All three are about PHP's native session handling. Laravel does not use that. Its session layer is its own code, and the default driver in a fresh Laravel 13 app is database. So for a plain Laravel app, these advisories are much less relevant. I would still not wave them away on a shared server that also runs WordPress or older native-session PHP code next to your Laravel app. That mixed setup is exactly what the serializer mismatch bug needs. If you do not use upload progress, the advisories suggest disabling session.upload_progress.enabled as a temporary measure.
Timezone cache use-after-free
GHSA-gr4f-wgx5-jpfv (CVE-2026-129496) affects every supported branch. It needs a diagnostic written to PHP's file-based error_log during startup (the advisory gives an invalid date.timezone value and session configuration warnings as confirmed examples), followed by an early request diagnostic in a fresh worker, such as going over max_input_vars.
The fix is the upgrade, but the mitigation is also simple hygiene: fix whatever warning PHP prints on startup, then restart the master process and the workers. If php-fpm -t or your startup log shows deprecation warnings you have been ignoring for months, this is a good reason to clean them up.
The high ones that are easy to miss
A few high-severity advisories still matter even if your FPM setup is fine:
GHSA-f6gg-rchx-xw8j: the HTTP and FTP stream wrappers sent data without TLS when the scheme had an uppercaseS, likeHTTPS://. This also applied to redirect targets. If you callfile_get_contents()on URLs that come from users or from redirects, take this one seriously.GHSA-mmf9-xm3v-hg2x: a malicious HTTP server can burn CPU in the stream wrapper with a header folded over many lines.GHSA-68fq-fh7h-f8gr: an OpenSSL-signed Phar could be accepted after switching its signature type to a plain hash. This matters if you distribute or run signed.phartools.GHSA-jm4m-qfqx-967m: a PHP-FPM use-after-free that can lead to local privilege escalation.
On the stream wrapper bugs: Laravel's Http client sits on Guzzle, and Guzzle uses cURL when the extension is available. As far as I can tell from Guzzle's handler selection code, it only falls back to PHP streams when cURL is missing, or for requests using the stream option when allow_url_fopen is on. So most Laravel HTTP calls do not go through the affected code, but direct file_get_contents() calls in your own code or in packages might.
What I am doing
- Upgrade every PHP-FPM host to the fixed release for its branch. If you use distro packages (Ondřej's PPA, Debian, Remi, Alpine), check that the package version actually contains these fixes. Distros sometimes backport patches without bumping to the upstream version number, so read their changelog rather than trusting
php -valone. - Before that is done, grep for
fastcgi_keep_connandenablereuse. That is the only critical bug here that a normal-looking production setup can hit. - On 8.5 hosts, confirm
zend.exception_ignore_args=1in the effective FPM config. - Clean up startup warnings and restart workers.
- If anything still runs 8.2, start planning the upgrade now. Support ends in about five weeks.
I have not tried to reproduce any of these, and I am relying on the advisories' own descriptions of what was and was not demonstrated. Several of them say exploitability depends on the application. Not demonstrated just means nobody has shown it yet. I'd still patch.
Sources
- PHP news: November 2026 releases
- PHP 8 ChangeLog (8.6.0, 8.5.13, 8.4.28, 8.3.37, 8.2.36)
- PHP: Supported Versions
- GHSA-qc49-hpvq-g2w6: PHP-FPM request smuggling through an unread HTTP request body
- GHSA-8mjj-2r7p-4hg2: Use-after-free in magic method backtraces can lead to remote code execution
- GHSA-2fjv-p558-g82m: Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown
- GHSA-fm2m-fjf5-v3cp: Partially overwritten session files can lead to remote code execution
- GHSA-658j-r8rw-q6mx: Session serializer mismatch can lead to remote code execution
- GHSA-g3vh-838c-65v7: Use-after-free after interrupted session shutdown
- GHSA-gr4f-wgx5-jpfv: Timezone cache use-after-free can lead to remote code execution
- GHSA-f6gg-rchx-xw8j: Mixed-case HTTPS and FTPS URLs can expose data in plaintext
- GHSA-mmf9-xm3v-hg2x: Denial of service through folded HTTP response headers
- GHSA-68fq-fh7h-f8gr: PHAR OpenSSL signature bypass via algorithm downgrade
- GHSA-jm4m-qfqx-967m: PHP-FPM epoll use-after-free can lead to local privilege escalation
- nginx: ngx_http_fastcgi_module (fastcgi_keep_conn)
- Laravel 13 skeleton: config/session.php
- Guzzle: default handler selection (src/Utils.php)
Comments
No comments yet
Loading comments...