Repository navigation
Description
Steps to reproduce
- Install a module whose
org.nethserver.imageslabel references a third-party tag, e.g.ghcr.io/nethserver/roundcubemail:2.2.2→docker.io/mariadb:10.11.19 docker.io/roundcube/roundcubemail:1.7.5-apache - Wait for upstream to rebuild that tag in place. Docker Hub official images are routinely rebuilt under the same version tag when their base OS gets security fixes:
mariadb:10.11.19was rebuilt on 2026-10-27,roundcube/roundcubemail:1.7.5-apacheon 2026-11-09 - Update the module (UI, or
api-cli run update-modulewith the same or a newermodule_urlthat keeps the same dependency tags) - Compare the local digest with the one the tag resolves to now:
runagent -m roundcubemail2 podman image inspect --format '{{.RepoDigests}}' docker.io/mariadb:10.11.19curl -s https://hub.docker.com/v2/repositories/library/mariadb/tags/10.11.19 | jq '.images[] | select(.architecture=="amd64") | .digest'
Expected behavior
An update leaves the module running the image its tag currently resolves to, so upstream security rebuilds are delivered by the normal update path. Alternatively, if tags are meant to be immutable for reproducibility, org.nethserver.images pins them by digest, so every installation of a given module version runs identical bits.
Actual behavior
The rebuilt image is never fetched:
update-module/05pullimagesexits early with "The module URL ... is already installed" whenmodule_urlequalsIMAGE_URL.- Even with a new module release, the dependency images are fetched with
podman-pull-missing, which pulls only when no local image has that tag. A same-tag rebuild is skipped. - Only
"force": trueruns a plainpodman pull. Nothing in the UI or inapply-updatesreports that a forced update would change anything.
Observed on a node with roundcubemail 2.2.2:
| Image | Local digest (amd64) | Tag now resolves to (amd64) |
|---|---|---|
docker.io/mariadb:10.11.19 |
sha256:ab2006938ed3… (built 2026-08-24) |
sha256:6c65a843396d… |
docker.io/roundcube/roundcubemail:1.7.5-apache |
sha256:330fcb9bdce1… (built 2026-10-21) |
sha256:cbc4ffe3f9cd… |
This has a security impact. A Trivy scan of the local roundcubemail:1.7.5-apache shows 3 CRITICAL findings; the current upstream image under the same tag has 1. The fixes for libbrotli1 (1.1.0-2+deb13u1) and linux-libc-dev (6.12.115-2) were published, but an up-to-date NS8 node does not receive them.
It also makes "same module version" ambiguous: a fresh install today pulls the new digest, while an existing install of the same version keeps the old one indefinitely.
Possible fixes:
- Pin
org.nethserver.imagesby digest (image:tag@sha256:…), so installs are reproducible and image refreshes ship as module releases. - Or have
update-module/apply-updatescompare local and remote digests, and treat a difference as an available update. - Or at least expose an "update images" action in the UI that runs the forced path.
Components
- NethServer 8 core
ghcr.io/nethserver/core:3.25.0, Rocky Linux 9.8 - Module
ghcr.io/nethserver/roundcubemail:2.2.2, but the logic is in core (/usr/local/agent/actions/update-module/05pullimages,/usr/local/agent/bin/podman-pull-missing), so every module withorg.nethserver.imagesis affected
See also
- https://hub.docker.com/_/mariadb/tags?name=10.11.19
- https://github.com/docker-library/faq#why-does-my-security-scanner-show-that-an-image-has-cves
Found by an external image-drift check comparing running image digests with their tags' current registry digests.
Activity