Skip to content

fix(dev-image): pin a distroless base without the libzstd1 CVE - #1519

Merged
robinnsc merged 1 commit into
mainfrom
fix/dev-image-libzstd
Nov 26, 2026
Merged

robinnsc merged 1 commit into
mainfrom
fix/dev-image-libzstd

Conversation

@robinnsc

Copy link
Copy Markdown
Collaborator

What

Moves the runtime stage of Dockerfile.dev to the gcr.io/distroless/cc-debian13:nonroot index that the nonroot tag points to today (sha256:29ee7076…, Debian 13.8). One line.

Why

release-dev-image's vulnerability gate (trivy, --ignore-unfixed, HIGH and CRITICAL) fails on the current pin: its libzstd1 1.5.7+dfsg-1 has CVE-2026-124851, fixed in 1.5.7+dfsg-1+deb13u1. The runtime stage has no RUN step, so a rebuild keeps the old package. A v1.1.0 tag on the current pin could never ship a dev image, so this blocks the 1.1.0 release (#1514). #1089 made the same kind of move for a libssl3 CVE.

Packages that change against the old pin, the same on amd64 and arm64:

  • libzstd1 1.5.7+dfsg-1 → 1.5.7+dfsg-1+deb13u1 (the fix)
  • libc6 2.41-12+deb13u4 → 2.41-12+deb13u5
  • libssl3t64 3.5.7-1deb13u3 → 3.5.9-1deb13u1
  • base-files 13.8+deb13u7 → 13.8+deb13u8

The binary links only libc, libm and libgcc_s (aws-lc is built in), and the user (65532), SSL_CERT_FILE and the /etc files are unchanged.

Closes: n/a (blocks #1514)

Testing done

  • The new digest is the multi-platform index Google publishes for cc-debian13:nonroot, and cosign verify with the distroless project's identity (keyless@distroless.iam.gserviceaccount.com) passes for the index and its amd64 and arm64 entries.
  • The release gate's trivy image and flags: 0 findings on the new base (amd64 and arm64), and CVE-2026-124851 on the old base as a control.
  • The dev image built from this branch (amd64): extenddb version runs, ci/smoke-test-dev-container.sh passes, and the gate's scan of the saved image finds 0 HIGH or CRITICAL issues. arm64 was checked statically only: the same package list, loader and libraries.
  • No other file names either digest.

No PR workflow builds Dockerfile.dev; release-dev-image is the only one.

Checklist

  • I have read CONTRIBUTING.md
  • All tests pass (cargo test --workspace): not run, no Rust change
  • Code is formatted (cargo fmt --check): no Rust change
  • Clippy is clean (cargo clippy -- -W clippy::pedantic): no Rust change
  • I have added or updated tests for new functionality: no new functionality
  • I have updated documentation if behavior changed: no behavior change
  • Breaking changes are noted below (if any)
  • If this changes the wire protocol, Storage trait, auth model, on-disk
    format, or public CLI surface, an RFC has been accepted or is linked
    below. Otherwise, an ADR captures the decision (link below).

ADR / RFC: n/a

Breaking changes

None.


By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache License 2.0 and I agree to the Developer Certificate of
Origin (DCO). See CONTRIBUTING.md for details.

The vulnerability gate of release-dev-image (trivy, --ignore-unfixed,
HIGH and CRITICAL) fails on the pinned
gcr.io/distroless/cc-debian13:nonroot digest. Its libzstd1
1.5.7+dfsg-1 has CVE-2026-124851, fixed in 1.5.7+dfsg-1+deb13u1. The
runtime stage has no RUN step, so a rebuild keeps the old package, and
a v1.1.0 tag on the current pin could never ship a dev image.

The runtime stage now pins the index that cc-debian13:nonroot points
to today, sha256:29ee7076..., a Debian 13.8 base. The release builds
its linux/amd64 and linux/arm64 images. Against the old pin, four
packages move on both: libzstd1 to 1.5.7+dfsg-1+deb13u1, libc6 from
2.41-12+deb13u4 to 2.41-12+deb13u5, libssl3t64 from 3.5.7-1~deb13u3 to
3.5.9-1~deb13u1, and base-files to 13.8+deb13u8. The binary links only
libc, libm and libgcc_s, with aws-lc built in, and the user (65532),
SSL_CERT_FILE and /etc files are unchanged. docs/dev-image.md names the
base without a digest, so it does not change.

Signed-off-by: Scott Robinson <robinnsc@amazon.com>
@robinnsc
robinnsc force-pushed the fix/dev-image-libzstd branch from a3eb275 to 02d2701 Compare November 26, 2026 00:14
@robinnsc
robinnsc added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit 7746043 Nov 26, 2026
52 checks passed
@robinnsc
robinnsc deleted the fix/dev-image-libzstd branch November 26, 2026 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants