A navy server rack with neatly routed blue network cables and teal status lights

Technology & security ยท

Red Hatโ€™s November PHP security bulletin covers seven flaws. Which affect your servers?

A website operator who responded to Novemberโ€™s PHP-FPM request-smuggling warning by disabling connection reuse has addressed one important risk. Six other vulnerabilities in the same Red Hat bulletin deserve attention. Two concern how PHP stores sessions, one can arise from a warning written to a log during startup, and three affect how PHP cleans up after a request or records a fatal error. Several can allow an attacker to run code with the permissions of the PHP process.

Red Hat published bulletin RHSB-2026-020 on 19 November, the day the PHP project released security updates for four branches. Red Hat rates six of the seven vulnerabilities Critical and one Important. It identifies affected products across Red Hat Enterprise Linux (RHEL) 7, 8, 9 and 10. Two of the Critical flaws are specific to PHP 8.5, which Red Hat says it does not ship in RHEL. That distinction matters on a server where a hosting control panel, a container or an application supplies its own copy of PHP. The operating systemโ€™s name alone cannot tell an administrator which interpreter serves a particular website.

Two ways a PHP session can become unsafe

A session lets a website remember information between requests. A visitor might see only a session cookie, while the server stores the corresponding account details, shopping basket or upload progress. Two of Novemberโ€™s flaws concern what happens when PHP reads that stored information back. They have different causes, even though the same temporary configuration change can reduce exposure to both.

CVE-2026-115560 affects deployments where components share session storage but disagree about the format of its contents. One PHP application or worker pool can write a record that another interprets differently. Under the conditions documented by the PHP project, that disagreement can lead to remote code execution. A practical example is a hosting account with two applications that use the same session directory. Checking each application separately may miss the problem. The administrator needs to identify every process that writes to that directory or reads from it, including command-line jobs. Applications that need different session formats should have separate stores.

CVE-2026-126714 concerns the integrity of the session file itself. If an attempted update writes only part of the new record, PHP can subsequently encounter a session containing damaged or unintended data. Where an attacker can influence the contents, the consequences can extend to code execution. A storage system that replaces a complete session record in one operation avoids this particular partial-write defect.

PHPโ€™s upload-progress feature matters because it can write to a session while an upload is in progress, before the application has begun processing the request. Red Hat advises administrators awaiting a fix to disable the feature in the effective server configuration wherever a process can write to the shared store. Changing the setting inside the application comes too late. For the partial-write flaw, administrators should also review any application feature that independently copies user-supplied data into a session. Disabling upload progress closes only one route by which that data can enter.

PHP-FPM request smuggling depends on the connection behind the web server

CVE-2026-129289 is the issue Vergento previously covered. PHP-FPM runs a pool of processes that execute PHP scripts on behalf of a web server. The vulnerable situation arises when a request body remains partly unread and the web server retains the FastCGI connection to PHP-FPM for another request. Under those conditions, PHP-FPM can misinterpret the remaining data, with consequences that include unauthorised code execution.

The connection to check is the one between the web server and PHP-FPM. Changing how long a visitorโ€™s browser stays connected addresses a different connection. Red Hat advises NGINX operators to leave fastcgi_keep_conn disabled and Apache operators using mod_proxy_fcgi to leave backend connection reuse disabled. Sites already closing the FastCGI connection after each request avoid the demonstrated attack path. They still need to assess the session and runtime flaws elsewhere in the bulletin.

A startup warning can expose a flaw in PHPโ€™s timezone cache

CVE-2026-129496 gives administrators a reason to revisit warnings they may have tolerated for months. When PHP writes certain startup diagnostics to its file-based error log, generating the log timestamp can leave PHP holding a reference to timezone information whose memory has already been released. A newly started worker can later use that invalid reference. The PHP project documents that the consequences can include remote code execution.

An application can appear healthy while its PHP workers start with a warning about a deprecated setting. For this vulnerability, the startup log therefore deserves as much attention as the applicationโ€™s own error log. Pending installation of the fix, Red Hat identifies two options. Administrators can correct the setting that generates the startup warning, or direct PHP errors to a destination such as syslog that avoids the affected file-timestamp code. Either change requires restarting the relevant PHP processes. Keeping error reporting available also lets the operator verify that the original warning has cleared.

An interrupted session shutdown can affect the next request

CVE-2026-129481, rated Important, concerns the end of a request. PHP normally closes the session and releases its resources before a worker accepts more work. A fatal error during application-defined cleanup can interrupt that process. If the same worker handles a subsequent request, it can access memory left in an unsafe state. The defect matters particularly to applications with custom cleanup routines, where a failure may occur after the visitor has already received a response.

While awaiting a package update, operators can review errors arising during session closure and correct failing callbacks. Red Hat also describes a temporary PHP-FPM setting that retires each worker after one request. That prevents the documented sequence from carrying over to a second request in the same process, but creating a fresh worker for every request can materially reduce capacity. On a busy service, test the performance impact before adopting that measure.

Two fatal-error flaws are specific to PHP 8.5

A backtrace records the sequence of function calls that led to an error. It helps a developer locate a fault, but PHP must itself handle the recorded information safely, including while a process is shutting down. CVE-2026-129182 concerns fatal-error backtrace data that can be populated again after PHP has already cleaned it up. CVE-2026-129474 concerns backtraces involving PHPโ€™s โ€œmagic methodsโ€, special methods that PHP invokes automatically during certain operations. Both involve access to memory after it has been released. The second advisory documents the potential for remote code execution.

The affected branch is PHP 8.5, and the upstream fix is 8.5.13. A site using only Red Hatโ€™s supplied PHP packages can set these two CVEs aside when assessing its RHEL installation. A site running its own PHP 8.5 build on the same host should include both. As an interim measure, Red Hat advises disabling fatal-error backtraces in the configuration used by the affected workers. Simply hiding errors from visitors does not help here because PHP can still construct the backtrace internally.

How to update and verify the PHP instance serving each site

For installations maintained directly from the PHP project, the following releases contain the 19 November fixes. An operator can update within the existing branch. The table gives the first upstream release containing the fixes for that branch.

Installed PHP branchFirst upstream release containing the November fixes
8.28.2.36
8.38.3.37
8.48.4.28
8.58.5.13

For Red Hat-supplied PHP, check the package advisory for the installed RHEL release and PHP stream. Red Hat can incorporate a security fix into its maintained package while retaining an earlier upstream version number. Record the complete installed package release and compare it with the applicable Red Hat erratum. The 19 November bulletin announced that Red Hat was expediting fixes. Before treating a particular system as patched, confirm the package actually available through its supported update channel. For containers built on RHEL or Red Hat Universal Base Image, check the base image, rebuild the application image and replace the running containers. Updating the host alone leaves the PHP copy inside an existing container untouched.

Verify the service that handles a real web request. On a machine hosting several sites, php -v identifies the command-line interpreter selected by the shell. A site may use a different PHP-FPM service, pool or container. Trace each site to its configured PHP backend, verify the installed package or image there, and restart or replace the affected workers. Then use an internal health check or administrative diagnostic to confirm the running version and test a normal sign-in, a session-backed action and, where relevant, a file upload. Those checks establish both that the new code is running and that the site still performs the operations these fixes affect.

For an organisation relying on a hosting provider, the most useful question is specific: โ€œWhich PHP package or image now serves our website, which vendor advisory confirms it contains the November fixes, and when were the workers replaced?โ€ That answer gives the site owner evidence about the running service. The bulletin establishes serious potential consequences under documented conditions. Whether a particular site was exposed, or experienced exploitation, remains a separate question for its configuration history and incident records.

Sources