Newly built nextcloud fpm images contain non-patched vulnerable php version
The newly published images on docker hub seem to contain php version 8.5.11 which is not the patched version (which would be 8.5.12).
The base tag is php:8.5-fpm-trixie which might still be cached to 8.5.11 in build. But that's just a guess.
I checked 34.0.5-fpm on arm64 and 35.0.2-fpm on amd64. Links below.
https://hub.docker.com/layers/library/nextcloud/34.0.5-fpm/images/sha256-561dff3550d5ae9677b72aafd22ce76b659faeda1a23dec64c26b04c4eae7352
https://hub.docker.com/layers/library/nextcloud/35.0.2-fpm/images/sha256-ace00bf98af2158e5cd567ac5728f5183638cb207cafaf95f41c68f0fbaa9138
Checking with docker docker run -it --rm nextcloud:34.0.5-fpm php --version i get the output
PHP 8.5.11 (cli) (built: Oct 21 2026 00:25:43) (NTS)
Copyright (c) The PHP Group
Built by https://github.com/docker-library/php
Zend Engine v4.5.11, Copyright (c) Zend Technologies
with Zend OPcache v8.5.11, Copyright (c), by Zend Technologies
Please check and clarify weather this version is actually safe to use. I got the impression from the push times but the version output is worrying.
It looks like it was built on: 21.10. 03:43 UTC and just pushed 30 minutes ago
cc @J0WI @tianon
#2605
Confimed, just upgraded (from 17.30 UTC) all our installations and we're still on 8.5.11... vulnerable.
Both 35.0.2-fpm and 35.02-fpm-alpine still carry 8.5.11;
Docker hub claims that 1 hour ago 35.0.2-fpm was pushed...
Last pushed about 1 hour by doijanky
Where can we see if these pipelines are running?
I can confirm that all our nextcloud instances just updated as of 5 minutes ago, running nextcloud:34-apache, are still on php 8.5.11
32-apache also still on PHP 8.3.35 (vulnerable).
FYI, found the same observation in the server repo issue where it is already being discussed. Information might be added there, first.
https://github.com/nextcloud/server/issues/65754#issuecomment-6321999168
I'll take this opportunity to voice my frustration with the release flow for the Docker build. This has bugged me since I started using it but is more relevant than ever. Why can't server releases automatically trigger Docker builds? Whenever an update is available, I then have to go and check if Docker has caught up yet, and it often is not.
I agree, thats why I always build the docker image myself, so if you dont want to wait:
- Clone the repo
- Run
./docker/update.sh - Build the image
docker build -t nextcloud docker/35/apache- You may have to change the path if you use a different version
- Now you should have an image with the latest php version, but make sure to check it by running
php -vinside the new container
https://github.com/nextcloud/docker/issues/2605#issuecomment-6318638561
in this case, I bet it's because of the 'disconnect' between the community developped docker container, vs nextcloud and nextcloud aio.
"normally" i'd always put the Containerfile (Dockerfile) in the main repo and build in on every commit, but some organizations prefer to have the 'split-brain' and then you have to start dealing with downstream pipelines, or manual labor.
"It is what it is" as they say.
On the upside it seems to be properly patched for fpm-alpine;
Digest: sha256:3c648636e81e2fce3a33f2fd0b155166ee84edaaa3e8ca755fe5b398607e8efa
Status: Downloaded newer image for nextcloud:35-fpm-alpine
/var/www/html # php-fpm --version
PHP 8.5.12 (fpm-fcgi) (built: Oct 21 2026 15:50:10) (NTS)
But make sure you force pull or whatever, as the same tags have been pushed for existing images.
can confirm 35.0.2-apache is fine now, at least on amd64. pulled it about an hour ago and got php 8.5.12, both cli and the apache module (libphp.so). digest is sha256:3f05f4d5eded… if anyone wants to compare. just make sure you actually re-pull, the tag got pushed more than once
Can confirm as well! Pulled 34.0.5-apache and it successfully brought in PHP 8.5.12 on x86_64 (amd64). Everything is up and running smoothly. Thanks to everyone involved for pushing the updates so quickly!
Why has the minor version not been bumped? This would allow people to know what is actually running on their servers! What am I missing?
According to some posts on Twitter, PHP 8.5.12 is still vulnerable. Anyway the two initial CVEs are, in fact, fixed.
https://x.com/FelipeDaragon/status/2112955772174729264
https://github.com/xuehuolll/php2shell-CVE-2026-109618-109619/blob/main/analysis/11-official-patch.md
Why has the minor version not been bumped? This would allow people to know what is actually running on their servers! What am I missing?
@ineiti the version in the docker tag is the Nextcloud version which is independent from the php version used. Bumping the version tag used for docker now would create a conflict when Nextcloud release the next version.
[@ineiti](https://github.com/ineiti) the version in the docker tag is the Nextcloud version which is independent from the php version used. Bumping the version tag used for docker now would create a conflict when Nextcloud release the next version.
Then add a -1 or so: nextcloud:34.0.5-1-fpm - I think that's recognised by most version trackers.
Edit: adding a "-" is in fact considered a "pre-release" according to https://semver.org, and is sorted alphabetically, though I have no idea if tools such as 'renovate' implement this... So nextcloud:34.0.5-fpm is the "fpm" pre-release...
Which means that you could release
nextcloud:34.0.5-zphp-fpm
which would have precedence over -fpm...
I understand that this is not easily done with the current tagging schema. And there seems to be external factors like the build process of official docker images which cause premature pushs of versions. This is probably fine in most cases but the current situation is different.
There are probably many instances which automatically upgraded to the latest tag when it was pushed and assume that they are fine now while in fact their downloaded image still holds the vulnerable php version. I agree with @ineiti on bumping the patch versions once more to ensure that there are tags on which users can be sure to hold a non-vulnerable installation. To me it seems that the patch version of nextcloud was increased just for this incident so it should be possible to do that once more to get rid of this situation.
Sure, that's ugly but seems to be the only real fix in the current setup and I think it would be justified given the severity of the CVEs.
Please could someone provide a brief summary of which images are vulnerable, which are in the process of or will be rebuilt with the bumped interpreter, etc.? And pin that to the top please. So that as an administrator, if I have an image with nextcloud version X I know what my options are - presumably pull a new image for X >= Y, upgrade nextcloud to a newer version for X < Y for some version Y.