PHP2Shell Vulnerability

Guten Morgen,
Wie können wir mit dem Nextcloudcontainer auf das CVE reagieren das heute Mittag veröffentlicht wird?
Rapid Response: php2shell, Leaked Critical PHP Vulnerabilities (CVE-2026-109618 & CVE-2026-109619) | Huntress

Schönen Tag.
Matthias

It’s not in our hands - the app is maintained by Nextcloud itself. I created the upstream issue for this: Provide new containers for php2shell vulnerabilities · Issue #221 · nextcloud/univention-app · GitHub

Jumping onto this thread: Is the Univention Portal affected by this vulnerability too? I still see references to simplesamlphp in /etc/apache2/sites-enabled/univention-saml.conf.

Thanks,
-daniel

Just saw your question and didn’t want to leave it unanswered: UCS 5.2 doesn’t use simplesamlphp any longer. But yes, under UCS 5.0-10 this is used in a component. I’m currently not deep enough in the triage of this to tell something about the severity afecting our product.

UCS 5.0 and UCS 4.4 have a very special PHP configuration for simplesamlphp.
In one hour we will know more about the details, and can try to figure out if that is affected as well - but that is likely the case.

UCS 5.2 doesn’t ship PHP installed by default - but customers of course could have it installed manually for additional services.

Thanks. It looks like the Simplesamlphp references I saw were kept from an older installation that used simplesaml and just didn’t get removed with the upgrade to 5.2.

Did you follow the migration guide 1. Introduction — Migration guide: SimpleSAMLPHP to Keycloak from our release notes? I ask because if yes, others could be affected as well.

FYI, we now track this via PHP remote code execution vulnerabilities in UCS CVE-2026-109618 and CVE-2026-109619 (php2shell) and update that article as more informaton becomes available.

[reached out to the colleague who did the upgrade, will update this post when I know more.]

Thanks for reporting them.
Any chance to get a fixed Version in a timely manner? Issues there regarding the nextcloud-univention-app are up to 8 Years old?

In UCS 5.0-10, SimpleSAMLphp does not use Apache’s mod_php or PHP-FPM. Instead, it uses traditional PHP-CGI through Apache’s mod_actions, mod_cgi, and mod_suexec. The Apache configuration explicitly assigns the php-cgi handler to PHP files and invokes /var/www/saml/php-cgi via ScriptAlias. This wrapper executes /usr/bin/php-cgi7.3 -c /etc/php/7.3/apache2, running under the dedicated samlcgi user and group through SuexecUserGroup.

The important security difference is the PHP process lifecycle. Unlike mod_php or PHP-FPM, where workers typically process multiple requests, traditional CGI starts a separate PHP process for each request and terminates it afterward. PHP’s internal global state therefore cannot persist across HTTP requests.

This distinction is particularly relevant for cross-request-use-after-free CVE-2026-109619 (GHSA-6wmf-4rv5-p3rp). The documented exploitation mechanism relies on stale global state surviving one request and being accessed by a subsequent request handled by the same PHP process. Since UCS’s SimpleSAMLphp CGI processes do not survive across requests, this specific cross-request use-after-free attack should not be exploitable through the SimpleSAMLphp configuration.

For CVE-2026-109618 (GHSA-w8hw-w9fx-j79w), further analysis is required.

2 Likes

Is there a list of the affected applications?

1 Like

yes, see the above link. In short for UCS 5.2:

  • nextcloud 32.0.13-0
  • egroupware 26.10.20261016
  • benno-mailarchiv 2.10.3
  • m23
1 Like

The AppCenter version of the following UCS 5.2 apps have just been released:

  • 5.0/egroupware=26.10.20261021
  • 5.2/nextcloud=33.0.10-0
4 Likes

The m23 app provided a php binary package - the UCS provided will automatically obsolete this.

root@master:~# apt-cache policy php8.2
php8.2:
  Installed: 8.2.35-1~deb12u1
  Candidate: 8.2.35-1~deb12u1
  Version table:
 *** 8.2.35-1~deb12u1 500
        500 https://updates.software-univention.de errata527/main amd64 Packages
        100 /var/lib/dpkg/status
     8.2.33-1~deb12u1 500
        500 https://updates.software-univention.de ucs527/main amd64 Packages
     8.2.26-1~deb12u1 500
        500 https://appcenter.software-univention.de/univention-repository/5.2/maintained/component m23_20251126182127/all/ Packages
1 Like

Hello everybode,

For all they’re using PHP on UCS 5.2 this article should help you:

Best regards,
MiracErde

installed nextcloud-app on UCS 5.2:

docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
f251e85860e5 docker.software-univention.de/nextcloud:33.0.10-0 “/usr/sbin/entrypoin…” 25 minutes ago Up 9 minutes 0.0.0.0:40000->80/tcp, :::40000->80/tcp eager_heisenberg
docker exec -it eager_heisenberg /bin/bash
root@nextc-78721607:/# php --version
PHP 8.3.6 (cli) (built: Oct 19 2026 15:16:58) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.6, Copyright (c) Zend Technologies
with Zend OPcache v8.3.6, Copyright (c), by Zend Technologies

php 8.3.6 does not fix php2shell

I’m sorry. From https://ubuntu.com/blog/php2shell-vulnerability-fixes-available:

Noble (24.04) php8.3 Fixed in 8.3.6-0ubuntu0.24.04.13

Benno-Mailarchive and Nextcloud for UCS 5.0 have been released:

Nextcloud: 5.0/nextcloud=32.0.13-1
Benno-Mailarchive: 5.2/benno-mailarchive=2.10.10

1 Like