Repository navigation
fix(cli): upgrade all Alpine packages in the dir-ctl image - #2522
Merged
Merged
Conversation
The dir-ctl image's scan reports CVE-2026-88822, CVE-2026-88823, CVE-2026-95691, CVE-2026-95692 and CVE-2026-107496 in libcrypto3 and libssl3 3.5.9-r0. Alpine fixed them in 3.5.9-r1, which its v3.24 repository ships for x86_64 and aarch64, but alpine:3.24 itself has not been rebuilt: the current 3.24.4 index is still the pinned digest, with 3.5.9-r0. The runtime stage only upgraded zlib, so the fix never reached the image. Run a full 'apk upgrade' instead. Against the current v3.24 index it changes libcrypto3 and libssl3 to 3.5.9-r1 and zlib to 1.4-r0 (as before), and it picks up the next repository fix without another Dockerfile change. Signed-off-by: Luca Muscariello <[email protected]>
tkircsi
approved these changes
Nov 20, 2026
muscariello
enabled auto-merge
November 20, 2026 10:25
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
Closes the 10 open
trivy-dir-ctlcode-scanning alerts (#1297–#1306): five OpenSSL CVEs, each reported against bothlibcrypto3andlibssl33.5.9-r0 in thedir-ctlimage.Cause
Alpine fixed these in 3.5.9-r1, and its
v3.24/mainrepository ships that for bothx86_64andaarch64. Thealpine:3.24image itself hasn't been rebuilt: the current 3.24.4 index is still the digestcli/Dockerfilepins (f59abe65…), with 3.5.9-r0, so a digest bump wouldn't help. The runtime stage only ranapk upgrade --no-cache zlib, so the fix never reached the image.Change
apk upgrade --no-cache zlibbecomesapk upgrade --no-cache, with a comment saying why. Comparing the pinned base's 16 packages with the currentv3.24/mainindex, the upgrade changes exactly:libcrypto33.5.9-r0 → 3.5.9-r1libssl33.5.9-r0 → 3.5.9-r1zlib1.3.2-r1 → 1.4-r0, as the old line already didThe next fix Alpine publishes to the repository before rebuilding the base image will also get in without another Dockerfile change.
cli/Dockerfileis the only Alpine-based image in the repo.Verification
Build / Image (dir-ctl)in this PR's CI builds the image. I couldn't build it locally, because there's no Docker daemon here.latestimage built frommaincarries 3.5.9-r1. The nextContainer Security Scanrun (nightly 03:00 UTC, or dispatched) should reporttrivy-dir-ctl= 0 and close [Feature]: Add an MCP search and export workflow for the local Directory #1297–chore(deps): update github actions #1306.Not in this PR
The other open alerts need upstream releases:
trivy-zot(8): zot v2.1.23 is still the latest release.trivy-postgresql(1): postgis 3.6.4, still in Bitnami's newest digest.