Skip to content

fix(cli): upgrade all Alpine packages in the dir-ctl image - #2522

Merged
muscariello merged 1 commit into
mainfrom
fix/dir-ctl-openssl
Nov 20, 2026
Merged

muscariello merged 1 commit into
mainfrom
fix/dir-ctl-openssl

Conversation

@muscariello

Copy link
Copy Markdown
Member

Closes the 10 open trivy-dir-ctl code-scanning alerts (#1297–#1306): five OpenSSL CVEs, each reported against both libcrypto3 and libssl3 3.5.9-r0 in the dir-ctl image.

CVE Alerts
CVE-2026-88822 #1298, #1303
CVE-2026-88823 #1299, #1304
CVE-2026-95691 #1300, #1305
CVE-2026-95692 #1301, #1306
CVE-2026-107496 #1297, #1302

Cause

Alpine fixed these in 3.5.9-r1, and its v3.24/main repository ships that for both x86_64 and aarch64. The alpine:3.24 image itself hasn't been rebuilt: the current 3.24.4 index is still the digest cli/Dockerfile pins (f59abe65…), with 3.5.9-r0, so a digest bump wouldn't help. The runtime stage only ran apk upgrade --no-cache zlib, so the fix never reached the image.

Change

apk upgrade --no-cache zlib becomes apk upgrade --no-cache, with a comment saying why. Comparing the pinned base's 16 packages with the current v3.24/main index, the upgrade changes exactly:

  • libcrypto3 3.5.9-r0 → 3.5.9-r1
  • libssl3 3.5.9-r0 → 3.5.9-r1
  • zlib 1.3.2-r1 → 1.4-r0, as the old line already did

The next fix Alpine publishes to the repository before rebuilding the base image will also get in without another Dockerfile change. cli/Dockerfile is the only Alpine-based image in the repo.

Verification

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.

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]>
@muscariello
muscariello requested a review from a team as a code owner November 20, 2026 10:17
@github-actions github-actions Bot added the size/XS Denotes a PR that changes 0-49 lines label Nov 20, 2026
@muscariello
muscariello added this pull request to the merge queue Nov 20, 2026
@codecov

codecov Bot commented Nov 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Merged via the queue into main with commit 0798676 Nov 20, 2026
35 checks passed
@muscariello
muscariello deleted the fix/dir-ctl-openssl branch November 20, 2026 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Denotes a PR that changes 0-49 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add an MCP search and export workflow for the local Directory

2 participants