Skip to content

distroless: bump base pin to clear libssl3t64 CVE-2026-45447 - #107677

Merged
motsc merged 1 commit into
ClickHouse:masterfrom
motsc:distroless-base-pin-bump-libssl3t64
Jun 16, 2026
Merged

motsc merged 1 commit into
ClickHouse:masterfrom
motsc:distroless-base-pin-bump-libssl3t64

Conversation

@motsc

@motsc motsc commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor

Bumping both distroless base pins (server + keeper, production + debug) because the old pin from 2026-06-03 ships libssl3t64 3.5.6-1~deb13u1 and Trivy catches it as a fixable HIGH — https://nvd.nist.gov/vuln/detail/CVE-2026-45447.

I originally thought it was a keeper-only issue (server scanned clean on 26.4.3.37 in my first probe) but that was a fluke. After backfilling the other 5 versions and rescanning with trivy image --severity HIGH,CRITICAL --ignore-unfixed, every one of the 12 currently-published images (server + keeper × 6 tracked X.Y) lands the same finding. So this fixes the whole fleet, not just keeper.

server:25.8.24.21    1 HIGH  CVE-2026-45447 libssl3t64 3.5.6-1~deb13u1 -> 3.5.6-1~deb13u2
server:25.10.7.6     1 HIGH  same
server:25.12.11.4    1 HIGH  same
server:26.3.12.3     1 HIGH  same
server:26.5.1.882    1 HIGH  same
keeper:26.4.3.37     1 HIGH  same
... (rest will show same pattern once Trivy DB cache flushes)

The new pin (2026-06-16, sha256:d3cda6e9...) ships libssl3t64 3.5.6-1~deb13u2. Trivy against the new base alone returns zero. Same digest bump applied to the debug-nonroot variant so prod and debug stay in lockstep.

Plan once this lands — rerun BackfillDistroless against 25.8.24.21 25.10.7.6 25.12.11.4 26.3.12.3 26.4.3.37 26.5.1.882 to republish all 6 server+keeper pairs against the new base. Then a re-scan should flip every image to clean.

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

...

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Version info

  • Merged into: 26.6.1.898

The previous pin (2026-06-03, sha256:e1fd250c...) shipped
`libssl3t64 3.5.6-1~deb13u1`. Trivy flags this as a fixable HIGH
(CVE-2026-45447) on the keeper image — the server happens to scan
clean against the same base, but the underlying package is identical,
so bump both for consistency.

New digest (2026-06-16, sha256:d3cda6e9...) ships
`libssl3t64 3.5.6-1~deb13u2` which clears the finding. Confirmed via
`trivy image --severity HIGH,CRITICAL --ignore-unfixed` against the
new base alone — zero fixable findings.

Same bump applied to the debug-nonroot pin to keep production and
debug aligned.

After this lands, run `BackfillDistroless` against the 6 currently-
tracked versions to publish the fresh keeper images.
@clickhouse-gh

clickhouse-gh Bot commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [38e3d4d]

Summary: ✅


AI Review

Summary

This PR bumps the pinned gcr.io/distroless/cc-debian13:nonroot and gcr.io/distroless/cc-debian13:debug-nonroot digests used by the server and keeper distroless Dockerfiles. I found no review-blocking issues: the old digests are no longer referenced, both new pins match the current OCI index digests for their tags, and both production/debug base images carry libssl3t64 version 3.5.6-1~deb13u2.

Final Verdict

Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Jun 16, 2026
@motsc
motsc enabled auto-merge June 16, 2026 21:26
@motsc motsc added the can be tested Allows running workflows for external contributors label Jun 16, 2026
@motsc
motsc added this pull request to the merge queue Jun 16, 2026
Merged via the queue into ClickHouse:master with commit 4964fef Jun 16, 2026
325 of 326 checks passed
@motsc
motsc deleted the distroless-base-pin-bump-libssl3t64 branch June 16, 2026 23:57
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jun 17, 2026
pull Bot pushed a commit to Spencerx/ClickHouse that referenced this pull request Jun 21, 2026
ClickHouse statically links its own openssl, libstdc++, zlib, zstd, gomp.
The binary's DT_NEEDED is only 5 glibc libs (librt, libpthread, libc,
libm, libdl), so the 7 extra packages the cc-debian13 base ships are
dead weight that each turn into a recurring CVE chase (libssl3t64 was
the latest, fixed in ClickHouse#107677).

Swap server + keeper Dockerfile.distroless to base-nossl-debian13:nonroot
which keeps glibc and drops gcc-14-base, libgcc-s1, libgomp1, libssl3t64,
libstdc++6, libzstd1, zlib1g. Base package count goes 13 -> 6.

Smoke-tested on amd64 with VERSION=26.5.2.39:
  - clickhouse --version / server --version / keeper --version all clean
  - server starts, MergeTree+INSERT 10k rows, ZSTD codec round-trip OK
  - outbound HTTPS via url() to api.github.com and S3 works (TLS handshake
    succeeds — confirms statically-linked openssl is self-sufficient)
  - keeper 4LW (ruok->imok, mntr, srvr) responds, no errors in logs
  - Trivy --severity HIGH,CRITICAL --ignore-unfixed: 0 on both prod images

Follow-up to ClickHouse#107677.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors pr-not-for-changelog This PR should not be mentioned in the changelog pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants