Republish Docker images to pick up Debian ca-certificates 20250419+deb13u1 (eMudhra/emSign)

Issue Description

The official Docker images (stalwartlabs/stalwart v0.16.27, built 2026-10-18) install ca-certificates from debian:trixie-slim in the runtime stage, so they still ship the system CA bundle that trusts the emSign roots involved in the eMudhra intermediate CA compromise. Debian fixed this in ca-certificates 20250419+deb13u1. Rebuilding and republishing the v0.16 images, with no change to the Dockerfile, would pick up the fix.

Expected Behavior

The published image ships ca-certificates 20250419+deb13u1 or later, and the system trust store rejects certificates issued by the compromised eMudhra intermediates.

Actual Behavior

The current image ships the older ca-certificates package, and the system trust store accepts a chain from the compromised intermediates.

Reproduction Steps

  1. c=$(docker create stalwartlabs/stalwart:v0.16); docker cp -L $c:/etc/ssl/certs/ca-certificates.crt bundle.crt; docker rm $c
  2. echo | openssl s_client -connect dv-g3b-emudhra.we-have-a-problem.com:443 -servername dv-g3b-emudhra.we-have-a-problem.com -CAfile bundle.crt -verify_return_error
  3. Verification succeeds (return code 0). It should fail once the image is rebuilt.

Relevant Log Output

N/A

Stalwart Version

v0.16.x

Installation Method

Docker

Database Backend

PostgreSQL

Blob Storage

RocksDB

Search Engine

PostgreSQL

Directory Backend

Internal

Additional Context

Not a runtime bug: this is a request to rebuild the Docker image. Seen on our own server running stalwartlabs/stalwart:v0.16 (single node, RocksDB, behind nginx), but it applies to every deployment using the official image.

I have reviewed the documentation and FAQ and confirm that my issue is NOT addressed there.

on

I have searched this support forum (open and closed topics) and confirm this is not a duplicate.

on

This is a valid request for maintainers to rebuild and republish the Docker images to pick up the updated ca-certificates package, rather than something resolvable via configuration. I don’t have visibility into the image build/release pipeline or schedule, so I can’t confirm when or if a rebuild will be triggered.

This is an automated reply from the Stalwart Help Bot. Other community members may follow up if this answer is incomplete or wrong.

For anyone out of the loop on this incident

Root level certificates created with private keys that only used 1-3 digits, including one that the private key was 4 - literally just a single 4.

This would be really helpful, tried to build it local, but ran out of memory on my VM.

Yes, outbound TLS in the server checks certificates against the system bundle in the image, so the emSign roots matter here. Whether to rebuild the 0.16 tags; the 1.0 images will pick up the current package anyway, since the Dockerfile installs ca-certificates at build time.

@ideer2, you don’t need to build Stalwart for this. A two-line image on top of the official one is enough:

FROM stalwartlabs/stalwart:v0.16
USER root
RUN apt-get update && apt-get install -y --only-upgrade ca-certificates && rm -rf /var/lib/apt/lists/*
USER stalwart

Or bind-mount the host’s updated /etc/ssl/certs/ca-certificates.crt over the one in the container, if the host already has the fixed package.

Thanks, i build the docker on top and it works fine! Wasnt sure about the mount cause i use rhel with the temporary mitigation fix, because there are no updated packages yet on rhel10.