Skip to content
Putting technology to work.
Insights to guide decisions and action.

Search articles

PHP's November fixes: changing session settings now throws an Error

Table of contents · 7 items

Following the emergency update on October 21, PHP released another security update for all supported branches on November 19. The announcement the day before rated the highest severity as CRITICAL and stated, "The issues rated CRITICAL require either non-default configuration or uncommon setups." In other words, the CRITICAL issues apply only with non-default settings or uncommon configurations.

This means that, this time, you can decide how urgently to update by looking at your server settings. However, two of the CRITICAL issues stem from incomplete fixes in October, so servers that were already updated in October are also affected. At the same time, this update includes a change to the default value of a session setting. On servers that explicitly set that setting to On in php.ini, after the update the application will stop with an Error if it changes session settings at runtime. This change is not mentioned in NEWS, which summarizes the changes in each version (it is reflected in the setting's description in the PHP manual).

In this article, we lay out which settings the seven CRITICAL issues apply to and how behavior changes with the update, based on PHP's official announcements, the ChangeLog, the CVE records and the fix commits. In the second half, we show the results we confirmed on PHP in our editorial test environment.

Versions and issue counts

According to the announcements on php.net, all four versions are "This is a security release."

Release lineFixed versionVulnerabilities listed in the ChangeLogOf which CRITICAL
8.58.5.13177
8.48.4.28145
8.38.3.37135
8.28.2.36124

The counts are the number of GHSA identifiers in the ChangeLog, and the severities are from the CVE records registered by PHP (CVSS 4.0). The counts differ by branch because some issues exist only in newer branches. According to the affected versions in the CVE records, there are 3 issues only in 8.5 (2 of them CRITICAL), 1 issue in 8.4 and later, and 1 issue in 8.3 and later (CRITICAL). According to PHP's official support schedule, security fixes for 8.2 end on December 31, 2026. No fixes have been released for 8.1 or earlier. Two of the advisories (CVE-2026-127960 and CVE-2026-129291, both HIGH) list some 8.1 versions as affected and give the fixed version as "none."

PHP 8.6.0 was also released on the same day, November 19. The NEWS for 8.6.0 lists the same 17 fixes. We cover migrating to 8.6 in our article on migrating to PHP 8.6.

The seven CRITICAL issues and the settings they affect

Based on the descriptions in the CVE records, the conditions under which each issue applies are as follows.

IssueAffected branchesConditions (from the CVE record descriptions)
PHP-FPM request smuggling (CVE-2026-129289)AllThe web server is configured to reuse backend connections (fastcgi_keep_conn on in nginx, enablereuse=on in Apache), and the app does not read php://input to the end
Partial overwrite of session files (CVE-2026-126714)AllWith the default files storage, an attacker can influence session data (such as via upload progress) and interrupt the write. The app contains a chain of classes that can be exploited
Session serializer mismatch (CVE-2026-115560)Allsession.upload_progress.enabled is On, and the app changes session.serialize_handler at runtime or shares the same session storage with an app that uses a different serializer
Use-after-free in the timezone cache (CVE-2026-129496)AllA non-thread-safe build writes startup warnings (such as an invalid date.timezone) to a file via error_log
Interrupted session shutdown handling (CVE-2026-129481)8.3 and laterDuring cleanup at shutdown, a user-defined stream wrapper or similar causes a fatal error, and the script is not cached in OPcache
Magic method backtraces (CVE-2026-129474)8.5 onlyA fatal error such as hitting the memory limit occurs during a call such as __call(), and zend.exception_ignore_args is disabled (it is enabled in php.ini-production)
Logging of fatal errors during shutdown (CVE-2026-129182)8.5 onlyPer-path settings change max_memory_limit or similar, using Apache per-directory configuration or FPM's PHP_VALUE

Two issues were missed by the October fixes

Two of the seven issues are follow-ups to CVE-2026-109619, which was fixed on October 21 (the issue covered in our article on PHP's emergency update in October). The advisory for CVE-2026-129481 states, "This is an incomplete fix for CVE-2026-109619 (GHSA-6wmf-4rv5-p3rp)." The advisory for CVE-2026-129182 likewise says the fix for CVE-2026-109619 in 8.5.12 "did not stop later shutdown work from setting it again," and lists all 8.5 versions before 8.5.13 as affected. Servers that applied the October update also need this update.

The October mitigation, session.upload_progress.enabled=0, does not work against these two issues either. The advisory for CVE-2026-129481 states, "Disabling session upload progress does not address this path."

Issues related to sessions

Three of the seven issues involve the session feature. Two of those use session upload progress (a feature that writes the progress of file uploads to the session) as their path. Outside the CRITICAL issues, there is an issue where a URL containing uppercase letters, such as HTTPS://, is sent unencrypted when passed to file_get_contents() or similar functions (CVE-2026-128064, HIGH), which affects code that calls external APIs.

What the update changes: upload progress is Off by default

The fix for CVE-2026-115560 (php-src commit 548bd27) contains two changes. The advisory (GHSA-658j-r8rw-q6mx) also explains, "The fix disables session upload progress by default and rejects runtime changes to session settings, including session.serialize_handler, while upload progress is enabled."

  1. Changed the built-in default of session.upload_progress.enabled from On to Off
  2. When this setting is On, operations that change session.* settings at runtime now raise an Error

The commit messages are "session.upload_progress.enabled is off by default" and "Also prevent changes to session INI settings at runtime when session.upload_progress.enabled is On." The same change is included in all of the 8.2.36, 8.3.37, 8.4.28, 8.5.13 and 8.6.0 tags.

There are two points to watch out for. First, the Session section of the 8.5.13 NEWS lists only the CVE titles and does not mention the change in the default value. Second, the description in the 8.5.13 php.ini-production still says "Default Value: On" (the setting line itself is commented out). The 8.6.0 template is the same. If you read only the descriptive text, you will not notice the change. On November 25, a pull request (php/php-src #25743) was opened to correct this description to "Default Value: Off," but as of November 26 it has not been merged. The setting's description in the PHP manual (Runtime Configuration) already reflects the change: "Prior to PHP 8.2.36, 8.3.37, 8.4.28, 8.5.13, and 8.6.0, the default value was On."

The impact depends on how php.ini is written. The advisory also warns that an explicit setting takes precedence over the new default: "Check for existing configuration that explicitly enables it, because an explicit setting overrides the new default."

  • php.ini has no line for the setting (still commented out): after the update it becomes Off. If you use a feature that reads upload progress from the session, that feature will stop working
  • It is set to On in php.ini, .user.ini or an FPM pool configuration: it stays On, and if the app calls ini_set('session.name', ...) or similar at runtime, an Error is raised
  • It was set to Off as a mitigation during the October update: the October 21 announcement listed session.upload_progress.enabled=0 as one of the mitigations for CVE-2026-109619. If you have kept this setting, you are not affected by this change in the default value. However, as described in the previous section, you still need the update itself

CVE-2026-115560 is the issue announced in advance in php.net's "Informational advisory: Session upload progress" on October 23. That announcement recommended setting session.upload_progress.enabled=0 until the next scheduled release, described the conditions for the issue as "An application must set session.serialize_handler to php_binary or php_serialize in its configuration and then switch it to php at runtime with ini_set() before calling session_start()," and stated, "Applications that never change the serialize handler at runtime can keep the feature enabled."

The November 19 advisory broadens this condition. It says that even without changing the serializer at runtime, an app is affected if it shares the same session storage with another app, FPM pool or command-line process that uses a different serializer as a fixed setting ("An application that never changes its serializer at runtime can still be affected if another application or process writes incompatible data into the same session store."). It further states that this sharing pattern is not fixed by the update ("The fix does not enforce matching serializers across separate configurations."). If you keep upload progress On, either align session.serialize_handler across every configuration that reads and writes the same storage, or separate the storage.

Results from our editorial test environment

We checked this on November 25, 2026, in our editorial test environment (Ubuntu 24.04.5 LTS, packaged php8.3-cli 8.3.6-0ubuntu0.24.04.14). Distribution of this package began on November 20 (UTC), and Ubuntu announced it in its security notice of November 23 (USN-9185-1). The package changelog (dated November 19, 2026) lists 13 fixes including CVE-2026-115560, and also includes the change to the upload progress default as "Session.upload_progress.enabled is off by default."

Using the built-in web server (php -S), we ran a script that performs the following operations and compared the results with -d session.upload_progress.enabled=0 and =1.

A chart comparing the results of the same four operations with session.upload_progress.enabled set to 0 and 1. Checked with php8.3 8.3.6-0ubuntu0.24.04.14 on Ubuntu 24.04. With 0, ini_set('session.name'), ini_set('session.gc_maxlifetime'), session_set_cookie_params() and session_name() all succeeded. With 1, all four raised an Error with the message "Session ini settings cannot be changed at runtime when session.upload_progress.enabled is On." session_start() succeeded in both cases

The message when it is On is as follows.

Error: Session ini settings cannot be changed at runtime when session.upload_progress.enabled is On

Not only ini_set() but also session_set_cookie_params() and session_name() raised an Error, because both change session settings internally. session_start() succeeded when called without changing the setting.

Some frameworks also change session settings at runtime. For example, Cake\Http\Session::options() in CakePHP 5.4.5 applies each item in its configuration array with ini_set(). Our reading is that on servers where the setting stays On, this kind of processing may stop working after the update (we have not verified the behavior in CakePHP).

In the same environment, we also sent four URLs, https:// (lowercase), HTTPS://, Https:// and hTTPs://, with file_get_contents() to a local server that does not speak TLS. For all four forms, the server logged "Unsupported SSL request," meaning PHP had started a TLS connection. This suggests that the uppercase URL issue (CVE-2026-128064) is also fixed in this package. We did not compare it with the package before the fix. The version still displays as 8.3.6. The fact that you cannot judge OS packages by their version number was also covered in our article on PHP's emergency update in October.

What to check before updating

The order we suggest is as follows.

  1. Find the upload progress setting. Search php.ini, the files under conf.d, .user.ini, .htaccess and the FPM pool configurations
grep -rn "upload_progress" /etc/php/ 2>/dev/null
find /var/www -name ".user.ini" -o -name ".htaccess" | xargs grep -ln "upload_progress" 2>/dev/null
php -i | grep "session.upload_progress.enabled"
  1. If it is On, check whether you use it. If no code reads upload progress from $_SESSION, set it to Off and update. If you do use it, find code that changes session.* at runtime (ini_set('session., session_set_cookie_params(, session_name() and move those settings into php.ini
  2. Check whether the CRITICAL conditions apply. Check nginx's fastcgi_keep_conn and Apache's enablereuse, code that changes session.serialize_handler at runtime, other apps and pools that share the same session storage, and where error_log writes and whether there are startup warnings. If any apply, update before doing anything else. Even if none apply, still carry out the update in step 4
  3. Upgrade to the fixed version and review the values with php -i. For OS packages, check the package changelog, not the version number, to confirm it includes the CVE numbers from this release

On shared hosting and managed hosting, the provider updates PHP. Even in that case, users can carry out checks 1 and 2 themselves. For what happens while waiting for the provider's update, our record of how managed hosting providers responded to the October update is also a useful reference.

Scope of verification

On November 25, 2026, we checked the php.net announcements (the November 18 pre-announcement and the November 19 announcements for 8.2.36, 8.3.37, 8.4.28, 8.5.13 and 8.6.0) and the ChangeLog (ChangeLog-8) in the php.net source repository (php/web-php). We checked the severity, affected versions and conditions of the 17 issues in the CVE records (CVEProject/cvelistV5, registered by php). We checked ext/session/session.c, php.ini-production and NEWS for each tag in php/php-src, as well as the diffs and tests of the fix commits. On November 26, we reopened the php.net announcements and ChangeLog on php.net, and checked the 17 advisories in the php/php-src repository (published between 14:05 and 14:08 UTC on November 19; not yet listed in the GitHub Advisory Database as of November 26), the CVE records (cve.org API), the setting's description in the PHP manual, php/php-src #25743 and Ubuntu security notice USN-9185-1 (document research). In addition, in our editorial test environment (Ubuntu 24.04.5 LTS, php8.3-cli 8.3.6-0ubuntu0.24.04.14), we checked the package changelog, the upload progress value and the results of each operation, and the handling of HTTPS URLs containing uppercase letters (hands-on testing). We did not reproduce the seven CRITICAL issues. We have not checked the behavior when building php.net's fixed versions from source, the behavior with PHP-FPM or the Apache module, packages for other operating systems such as RHEL-based distributions, or the responses of individual shared hosting providers.

To review how you update and maintain sites and business systems running on PHP, contact us through Consultation on development, AI, and automation.

References

Share this articleXFacebook
Kakeru Suzuki

Fascinated by the possibilities of technology, has had a deep interest in programming and digital art since student days

Turn this article's theme into your company's next step

Starting from what you want to achieve with your website.

We organize user goals, required features, and ongoing maintenance structures to determine the first steps in development and improvement.

  • Website objectives
  • Features and usability
  • Post-launch operations
Consult on web development and improvements

You can consult with us from the initial conceptual stage. Details from this article will be carried over to the inquiry form.

Receive the latest articles via email · Read the web production guide
Free download

Complete Guide to Web Production: Costs, Vendor Selection & Traffic Acquisition [2026 Edition]

We have compiled cost benchmarks, vendor selection criteria, and traffic acquisition strategies into a PDF.

The PDF and newsletter emails are currently in Japanese.

You will also be subscribed to our newsletter. You can unsubscribe at any time.