Repository navigation
fix(dev-image): pin a distroless base without the libzstd1 CVE - #1519
Merged
Merged
Conversation
robinnsc
requested review from
LeeroyHannigan,
amrith,
c33howard,
jcshepherd and
pdf-amzn
as code owners
November 25, 2026 23:22
robinnsc
requested review from
demohan,
eliseong,
hitesh96db and
navareamol
as code owners
November 25, 2026 23:22
6 of 8 tasks
hitesh96db
approved these changes
Nov 25, 2026
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
force-pushed
the
fix/dev-image-libzstd
branch
from
November 26, 2026 00:14
a3eb275 to
02d2701
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Moves the runtime stage of
Dockerfile.devto thegcr.io/distroless/cc-debian13:nonrootindex that thenonroottag 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: itslibzstd1 1.5.7+dfsg-1has CVE-2026-124851, fixed in1.5.7+dfsg-1+deb13u1. The runtime stage has noRUNstep, so a rebuild keeps the old package. Av1.1.0tag 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:
libzstd11.5.7+dfsg-1 → 1.5.7+dfsg-1+deb13u1 (the fix)libc62.41-12+deb13u4 → 2.41-12+deb13u5libssl3t643.5.7-1deb13u3 → 3.5.9-1deb13u1base-files13.8+deb13u7 → 13.8+deb13u8The binary links only libc, libm and libgcc_s (aws-lc is built in), and the user (65532),
SSL_CERT_FILEand the/etcfiles are unchanged.Closes: n/a (blocks #1514)
Testing done
cc-debian13:nonroot, andcosign verifywith the distroless project's identity (keyless@distroless.iam.gserviceaccount.com) passes for the index and its amd64 and arm64 entries.extenddb versionruns,ci/smoke-test-dev-container.shpasses, 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 PR workflow builds
Dockerfile.dev;release-dev-imageis the only one.Checklist
cargo test --workspace): not run, no Rust changecargo fmt --check): no Rust changecargo clippy -- -W clippy::pedantic): no Rust changeStoragetrait, auth model, on-diskformat, 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.