On 19 November 2026 the PHP project released PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36, each announced as "a security release", on the same day as PHP 8.6.0. This post lists what the release fixes, who is actually exposed to the critical issues, and then goes deep on one bug that is easy to overlook because it is rated "only" high: CVE-2026-128064, where HTTPS:// URLs go out as plaintext.

Checked on 23 November 2026 against the php.net announcements, the PHP 8 ChangeLog and the security advisories of php/php-src on GitHub. The code excerpts below come from the php-src tags php-8.5.12 and php-8.5.13. The October release with the two "PHP2Shell" vulnerabilities is covered in my post on the critical PHP security release of 21 October 2026; its upgrade steps apply here unchanged.

What was released

On 18 November the PHP security team announced the releases a day in advance, for 19 November between 14:00 and 14:30 UTC. Unlike in October, these were the regular four-week releases. The announcement rated the highest severity as critical and added: "The issues rated CRITICAL require either non-default configuration or uncommon setups." The release announcements themselves name no CVEs; the details are in the ChangeLog and the linked GitHub advisories.

The 8.5.13 section of the ChangeLog lists 18 CVE IDs: 17 GitHub security advisories, all published on 19 November, plus an upgrade of the bundled uriparser library to 1.0.3 (CVE-2026-48841), which has no advisory of its own. Reports elsewhere give different totals, so I counted from the ChangeLog and took each severity and CVSS v4.0 score from the advisory itself. Not every CVE affects every branch; the "Affected" column is from the advisories.

CVE What it is Severity (CVSS v4.0) Affected
CVE-2026-129289 PHP-FPM request smuggling through an unread HTTP request body Critical (9.2) 8.2 to 8.5
CVE-2026-129474 Use-after-free in magic method backtraces can lead to remote code execution Critical (9.2) 8.5 only
CVE-2026-129182 Use-after-free via the last_fatal_error_backtrace global after shutdown (incomplete fix of CVE-2026-109619) Critical (9.2) 8.5 only
CVE-2026-129496 Timezone cache use-after-free can lead to remote code execution Critical (9.2) 8.2 to 8.5
CVE-2026-129481 Use-after-free after interrupted session shutdown (incomplete fix of CVE-2026-109619) Critical (9.2) 8.3 to 8.5
CVE-2026-126714 Partially overwritten session files can lead to remote code execution Critical (9.2) 8.2 to 8.5
CVE-2026-115560 Session serializer mismatch can lead to remote code execution (announced on 23 October) Critical (9.2) 8.2 to 8.5
CVE-2026-129291 PHP-FPM epoll use-after-free can lead to local privilege escalation High (8.8) 8.1.20+, 8.2.7+, 8.3, 8.4, 8.5; no fixed 8.1 release
CVE-2026-127960 Denial of service through folded HTTP response headers in the HTTP stream wrapper High (8.7) 8.1.32+, 8.2.28+, 8.3.18+, 8.4.5+, 8.5; no fixed 8.1 release. The advisory's text names 8.3.19 as the first affected 8.3 version, its version table 8.3.18
CVE-2026-128064 Mixed-case HTTPS and FTPS URLs can expose data in plaintext (details below) High (8.2) 8.2 to 8.5
CVE-2026-128090 PHAR OpenSSL signature bypass via algorithm downgrade High (7.7) 8.2 to 8.5
CVE-2026-129538 PHP-CGI out-of-bounds read and write during PATH_INFO correction Moderate (6.9) 8.2 to 8.5; php-cgi with cgi.fix_pathinfo=1, the default
CVE-2026-129501 Double free during DOM XML serialization Moderate (6.3) 8.4 and 8.5
CVE-2026-129292 PHP-FPM status endpoint XSS via unescaped user and script fields Moderate (5.3) 8.2 to 8.5
CVE-2026-15353 SOAP information disclosure through malformed array dimensions Moderate (6.3) 8.2 to 8.5
CVE-2026-129506 SOAP use-after-free when processing DTD entity references Moderate (6.3) 8.2 to 8.5
CVE-2026-129438 Incorrect RFC 3986 URI serialization for oversized input Moderate (6.3) 8.5 only
CVE-2026-48841 Bundled uriparser upgraded to 1.0.3 (ext/uri) no advisory listed for 8.5.13

That makes 7 critical, 4 high and 6 moderate advisories. Three of the advisories affect only PHP 8.5, and the uriparser update is listed for 8.5.13; the older branches get the fixes that apply to them. PHP 8.6.0 contains the same security fixes as 8.5.13 according to its ChangeLog section. PHP 8.1 and older get no release; two of the advisories above list 8.1 versions as affected without a fix.

The critical issues: who is actually exposed

All seven critical advisories have the same score, but very different preconditions. The pre-announcement was right that none of them hits a plain default setup. This is what each advisory says you need to be exposed, and the stop-gap it names until you have updated.

CVE-2026-129289: request smuggling into PHP-FPM

PHP can fail to discard unread bytes of a request body before a persistent FastCGI connection is reused. According to the advisory, an unauthenticated attacker can then run attacker-controlled PHP code as the FPM worker. Two things must come together:

  • A front end that keeps backend connections open: nginx with fastcgi_keep_conn on, Apache mod_proxy_fcgi with enablereuse=on, or HAProxy FastCGI applications that retain backend connections. LSAPI has the same cleanup error, but not the demonstrated code execution path.
  • An application that opens php://input without reading it to the end.

Configurations that close the FastCGI connection after each request are not affected by the demonstrated attack. A quick check on your web servers:

# nginx: is FastCGI connection reuse switched on anywhere?
grep -rn 'fastcgi_keep_conn' /etc/nginx/

# Apache: connection reuse for mod_proxy_fcgi
grep -rniE 'enablereuse\s*=\s*on' /etc/apache2/ /etc/httpd/ 2>/dev/null

Until you have updated, the advisory recommends switching connection reuse off. Reading php://input to the end reduces the risk, but it says that is not reliable as the only mitigation. And as always: do not expose PHP-FPM listeners to untrusted networks.

CVE-2026-115560 and CVE-2026-126714: sessions

  • CVE-2026-115560 is the one php.net warned about on 23 October. With session upload progress enabled, data written with the php_binary or php_serialize serializer can later be read with the php serializer, and part of a key is then parsed as serialized objects. The mismatch can come from changing session.serialize_handler at runtime, or from separate applications, pools or CLI processes that share a session directory. Remote code execution needs a usable gadget chain in the application.
  • CVE-2026-126714: the default files session handler overwrote session files without truncating them first. If an attacker controls session contents and can interrupt a write, the file can end up as a mix of new and old data that is parsed as serialized objects. The advisory says this code dates back to PHP 4.1.0, based on code inspection.

Stop-gap for both: set session.upload_progress.enabled=0 in php.ini or the FPM pool (not via ini_set(), which is too late), and restart the workers. For CVE-2026-126714 that only removes one input path; a session backend that replaces records atomically avoids the defect.

One behaviour change to know before you deploy: according to the advisory, the fix for CVE-2026-115560 disables session upload progress by default and rejects runtime changes to session settings, including session.serialize_handler, while upload progress is enabled. If your application shows upload progress bars based on $_SESSION, test that after the update.

CVE-2026-129474 and CVE-2026-129182: PHP 8.5 only

Both involve fatal error backtraces, which PHP 8.5 introduced and enables by default (fatal_error_backtraces=1). CVE-2026-129474 also needs zend.exception_ignore_args=0; the advisory points out that php.ini-production sets it to 1, which blocks the demonstrated attack. CVE-2026-129182 needs specific per-directory INI combinations (max_memory_limit or zlib.output_compression with output_handler), and the advisory says remote code execution through it has not been demonstrated. On 8.5, fatal_error_backtraces=0, set administratively, is the stop-gap for both.

CVE-2026-129496 and CVE-2026-129481

  • CVE-2026-129496 (timezone cache): needs a non-thread-safe build, PHP errors logged to a file through error_log, a startup diagnostic (for example an invalid date.timezone or a deprecated session setting), and an early request diagnostic in a fresh worker. Code execution was only shown under additional assumptions. Fix the startup warnings in your configuration and restart, or log to syslog.
  • CVE-2026-129481 (session shutdown): needs an application that stores a stream with a user-defined stream wrapper in the session and whose close callback can raise a fatal error. Code execution has not been demonstrated through this path. PHP 8.2 is not affected.

Of the high-rated issues, CVE-2026-129291 deserves a note for Docker users: it needs code execution inside an FPM worker and catch_workers_output enabled, which the advisory says the official Docker images do (the PHP default is no). The reporter got root from a www-data worker on unmodified 8.5.12 images. Escalation reaches root only if the FPM master runs as root.

CVE-2026-128064: HTTPS:// is not https://

This one gets the most space here because it is a logic error you can reproduce in one line, and because it hides in ordinary application code rather than in server configuration.

The cause in the source

PHP picks a stream wrapper for a URL case-insensitively. In php_stream_locate_url_wrapper() (main/streams/streams.c) the scheme is first looked up as written and, if that fails, again in lower case. So HTTPS:// reaches the HTTP wrapper, and FTPS:// the FTP wrapper.

The HTTP wrapper then accepts the scheme case-insensitively too, but decides about TLS differently. In php_stream_url_wrap_http_ex() (ext/standard/http_fopen_wrapper.c, 8.5.12):

/* excerpt from php_stream_url_wrap_http_ex(), PHP 8.5.12 */
if (!zend_string_equals_literal_ci(resource->scheme, "http") &&
    !zend_string_equals_literal_ci(resource->scheme, "https")) {
    /* ... */
}
/* ... */
use_ssl = (ZSTR_LEN(resource->scheme) > 4) && ZSTR_VAL(resource->scheme)[4] == 's';
/* ... */
if (use_ssl && resource->port == 0)
    resource->port = 443;
else if (resource->port == 0)
    resource->port = 80;

TLS is only switched on if the fifth character of the scheme is a lowercase s. With use_ssl false, the wrapper opens a tcp:// instead of an ssl:// connection, and without an explicit port it connects to port 80. The FTP wrapper (ftp_fopen_wrapper.c) has the same pattern with index 3: ZSTR_VAL(resource->scheme)[3] == 's'. Without it, PHP skips AUTH TLS and logs in over a plaintext control connection.

A detail that follows from this code and is useful for auditing: only the final S matters. Https:// or HTTPs:// still get TLS, HTTPS://, httpS://, FTPS:// and ftpS:// do not.

In 8.5.13 the line reads use_ssl = zend_string_equals_literal_ci(resource->scheme, "https"); (8.5.13 source).

Redirects make it worse

The HTTP wrapper follows redirects by itself: according to the HTTP context options, it follows 300, 301, 302, 303, 307 and 308 responses unless follow_location is set to 0, up to max_redirects (default 20). So code that only ever uses lowercase https:// is still exposed if a server it talks to answers with Location: HTTPS://....

The 8.5.12 redirect code shows what then travels in plaintext. The same-origin check compares the scheme with zend_string_equals_ci(), so https://api.example and HTTPS://api.example count as the same origin, and the wrapper does not strip Authorization and Cookie headers you passed in the context. On 307 and 308 it keeps the method and sends the content body again. The advisory describes exactly this case: a 307 from a valid HTTPS connection to an uppercase HTTPS URL sends the preserved POST body and the retained auth headers in cleartext.

To abuse that, an attacker needs to influence the redirect (a malicious or compromised endpoint, an open redirect on the target) and be able to read the network traffic. That fits the advisory's rating: CVSS v4.0 8.2 with "attack requirements: present", confidentiality high, no integrity or availability impact, CWE-319 (cleartext transmission of sensitive information). Red Hat scores it lower, with CVSS v3.1 5.9 on its CVE page. Neither the advisory nor Red Hat's page mentions exploitation in the wild. According to the advisory, mixed-case URLs have been affected since PHP 5.2.0 and redirects to them since PHP 4.3.0, both based on code inspection; I have not traced the introducing commits myself.

Which code paths are affected

The bug is in the PHP stream wrappers, so the question is which code hands a URL to them. I read the source of the code paths most PHP projects use for HTTP (branch or tag named in each row):

Code path Uses the stream wrapper? Affected by CVE-2026-128064?
file_get_contents(), fopen(), file(), readfile(), copy() with an http(s):// or ftp(s):// URL Yes, whenever allow_url_fopen is on (HTTP wrapper docs) Yes, for an uppercase final S in the URL or in a redirect target
SoapClient calls to the service endpoint No. ext/soap/php_http.c opens its own socket with php_stream_xport_create() No. It checks the scheme case-sensitively (zend_string_equals_literal(uri->scheme, "https")) and rejects anything that is not exactly http or https with "Unknown protocol", for redirects too. I have not checked how the WSDL itself is downloaded.
Guzzle with StreamHandler (guzzle 7.9 branch) Yes: fopen((string) $uri, 'r', false, $contextResource) in StreamHandler.php No, in the code I read. createStream() only accepts a scheme that is exactly http or https and throws otherwise, and the guzzlehttp/psr7 Uri lowercases the scheme in filterScheme() anyway (psr7 2.7 branch). The handler sets follow_location to 0, so the wrapper never follows a redirect on its own.
Guzzle with CurlHandler / CurlMultiHandler No, it uses the curl extension No. Guzzle prefers curl when the extension is loaded and uses StreamHandler only without curl, or for requests with the stream option (Proxy::wrapStreaming()) - with the scheme check described above.
Symfony HttpClient, NativeHttpClient (8.0 branch) Yes, it uses PHP streams No, in the code I read. HttpClientTrait::parseUrl() lowercases the scheme with strtolower() and only allows http and https (HttpClientTrait.php). NativeHttpClient sets follow_location to false and runs every Location through parseUrl() again.
Symfony HttpClient, CurlHttpClient No, it uses the curl extension No. HttpClient::create() picks it in most setups with the curl extension (on Windows only with a CA file configured); without curl it falls back to Amp if installed, otherwise NativeHttpClient (HttpClient.php).

So the HTTP clients most projects use are protected by their own URL normalisation, not by PHP. The exposed code is the direct call: the file_get_contents($webhookUrl) in a cron job, an SDK that fetches tokens with a stream context, a feed importer that takes URLs from a database, or an FTP export with copy(). That is where URLs come from configuration, environment variables or users, and where nobody normalises them.

Auditing a codebase

First, literal URLs with an uppercase final S in code and configuration. The pattern matches only the schemes that lose TLS:

grep -rnE '[Hh][Tt][Tt][Pp]S://|[Ff][Tt][Pp]S://' \
  --include='*.php' --include='*.yaml' --include='*.yml' \
  --include='*.json' --include='*.xml' --include='*.ini' --include='.env*' \
  --exclude-dir=node_modules .

Leave vendor/ in the search: a library with a hard-coded HTTPS:// is exactly what you want to find. Then check URLs stored in the database and in environment variables (webhook targets, feed URLs, API base URLs) with the same pattern, matched case-sensitively.

Second, the call sites that pass a variable URL to a stream function. These are the places that need a guard:

grep -rnE '(file_get_contents|fopen|file|readfile|copy)[[:space:]]*\([[:space:]]*\$' \
  --include='*.php' .

This search includes vendor/ again and has many false positives (local files), but it gives you the list to go through. Treat the function list as a starting point: any other function your code passes a URL to belongs on it.

The HTTP wrapper is restricted by allow_url_fopen (PHP manual); if your application does not need to open URLs with these functions, switching it off removes this path for HTTP URLs.

Workaround until you have updated

The advisory's workaround is to write HTTPS and FTPS schemes in lowercase before they reach a stream function, and, if redirects are allowed, to disable automatic redirects or validate and normalise every redirect target. A small guard does the first part:

function lowercase_url_scheme(string $url): string
{
    return preg_replace_callback(
        '~^([a-z][a-z0-9+.-]*):~i',
        static fn (array $m): string => strtolower($m[1]) . ':',
        $url,
        1
    ) ?? $url;
}

$body = file_get_contents(lowercase_url_scheme($url), false, $context);

For redirects, set 'follow_location' => 0 in the http context and handle the Location header yourself, passing it through the same guard. If you cannot change every call site, stream_context_set_default() can switch redirects off for all calls without an explicit context, but that changes behaviour for every library that relies on them, so test it first. For new code the simpler answer is an HTTP client that normalises URLs, as Guzzle and Symfony HttpClient do.

A minimal reproduction lab

You need a PHP CLI older than the fixed versions (for example 8.5.12) with the openssl extension, and netcat. The first part stays on your machine. In the first terminal, start a listener (OpenBSD netcat syntax; traditional netcat needs nc -l -p 8443):

nc -l 8443

In the second terminal, send a POST with a token and a body to an uppercase HTTPS:// URL on that port:

php -r '
$ctx = stream_context_create(["http" => [
    "method"  => "POST",
    "header"  => "Authorization: Bearer lab-token\r\nContent-Type: application/x-www-form-urlencoded",
    "content" => "password=lab-secret",
    "timeout" => 3,
]]);
file_get_contents("HTTPS://127.0.0.1:8443/login", false, $ctx);
echo PHP_VERSION, PHP_EOL;
'

Because the port is explicit, the wrapper connects to 8443 either way; only the transport changes. I ran exactly this on my development machine with PHP 8.4.24 (macOS, an affected version, since 8.4 is fixed in 8.4.28). With the uppercase HTTPS:// URL, netcat printed the complete request as readable text, token and password included:

POST /login HTTP/1.1
Host: 127.0.0.1:8443
Connection: close
Content-Length: 19
Authorization: Bearer lab-token
Content-Type: application/x-www-form-urlencoded

password=lab-secret

With lowercase https:// and otherwise the same command, netcat received a binary TLS handshake instead. The first bytes were 16 03 01, the start of a TLS ClientHello record, and the request never completed because nc does not speak TLS. I also tried the mixed spellings: Https:// got TLS, httpS:// went out as plaintext. That matches the code: only the case of the final "s" decides. On 8.5.13 or another fixed version, the uppercase URL should behave like the lowercase one; I have not yet rerun the lab on a patched build.

To see the switch to port 80 against a real host (this sends a real plaintext request over the internet, so only send harmless data), run sudo tcpdump -A -i any 'tcp port 80' and fetch HTTPS://example.com/ with file_get_contents(): the request appears in the capture in plaintext, where a correct HTTPS request would go to port 443.

How to upgrade

Install 8.5.13, 8.4.28, 8.3.37 or 8.2.36, or your distribution's package that contains the fixes, and restart every process that loaded the old binary: FPM, Apache with mod_php, queue workers, long-running application servers. Distributions often backport fixes into their own version numbers, so compare against their security tracker, not the php.net version. The step-by-step commands for Debian and Ubuntu, RHEL and its clones, Docker, shared hosting and Windows are in my October upgrade guide; nothing about them changed for this release.

Three points specific to this release:

  • Docker: pin the branch or patch version (see the October post on floating tags and 8.6.0). If you do want 8.6, my post on what can break when upgrading to PHP 8.6 lists the deprecations.
  • Session upload progress is off by default after the update (see above). Check your configuration if you rely on it, and keep session.serialize_handler identical in every pool and process that shares a session directory.
  • PHP 8.2 reaches the end of security support on 31 December 2026 (supported versions). Plan the move to 8.4 or 8.5 now.

Checklist

  • Update every PHP installation to 8.5.13, 8.4.28, 8.3.37, 8.2.36 or 8.6.0, rebuild images and restart all PHP processes.
  • Until then: check fastcgi_keep_conn and enablereuse, set session.upload_progress.enabled=0 where you do not need it, and on 8.5 set fatal_error_backtraces=0.
  • Run the two searches for CVE-2026-128064 and guard every stream call that takes a URL from configuration, the database or users.
  • Check stored URLs (webhooks, feeds, API base URLs) for an uppercase final S.
  • Plan the PHP 8.2 upgrade before 31 December 2026, and every installation on 8.1 or older.

Free: PHP Security Hardening Checklist

PHP-FPM configuration, file upload limits, driver patches and cryptographic API usage - the hardening steps that limit the damage of the next PHP vulnerability. Enter your email and get it straight to your inbox.

If you are still on PHP 8.2 or older and want help getting to a supported version, I do this as a project with your team: an assessment of what breaks, then the upgrade in your codebase with tests and CI, so the next security release is a routine update. Details are on my legacy PHP migration page.

Sources