Skip to content

bugfix: Drupal, Matomo and Mautic fail with a session error after the PHP security update - #273

Merged
csandanov merged 1 commit into
masterfrom
fix/session-upload-progress-default
Nov 19, 2026
Merged

csandanov merged 1 commit into
masterfrom
fix/session-upload-progress-default

Conversation

@csandanov

@csandanov csandanov commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Problem

After the PHP security update (PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36), Drupal, Matomo, Mautic and other applications built on Symfony stop working. Every page that starts a session fails with "Session ini settings cannot be changed at runtime when session.upload_progress.enabled is On".

Cause

To fix CVE-2026-115560, PHP now turns session upload progress off by default and refuses changes to session settings while a request is running if the feature is on. These applications adjust their session settings while handling each request. The images still turned session upload progress on, which overrides PHP's new default and triggers the error.

Solution

Session upload progress is now off by default, as in PHP itself. Applications that change their session settings work again. Sites that rely on session upload progress can turn it back on with PHP_SESSION_UPLOAD_PROGRESS_ENABLED=1, but then they must not change session settings at runtime. Drupal's upload progress bar uses the separate uploadprogress extension, which is still installed and is not affected.

Changes

  • PHP_SESSION_UPLOAD_PROGRESS_ENABLED now defaults to 0 instead of on for PHP 8.2–8.5.
  • The runtime configuration test checks the default, a runtime session change, and that the variable still enables the feature.

Validation

  • Reproduced the error on the published wodby/php:8.5-r17 image with ini_set('session.serialize_handler', ...).
  • The runtime configuration test passes on that image with the new template, and fails without it.
  • PHP's advisory for CVE-2026-115560 (GHSA-658j-r8rw-q6mx) describes the new default and the runtime restriction.

PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36 disable session upload progress by default
and throw an Error when an application changes session settings at runtime
while it is enabled. The image templates still enabled it, so Symfony-based
applications such as Drupal, Matomo and Mautic failed on the patched releases.

Default PHP_SESSION_UPLOAD_PROGRESS_ENABLED to 0, matching PHP. Applications
that need the feature can still enable it with the environment variable.
@csandanov
csandanov merged commit 5b60e1a into master Nov 19, 2026
2 checks passed
@csandanov
csandanov deleted the fix/session-upload-progress-default branch November 19, 2026 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant