Repository navigation
Upgrade Alpine base packages so security fixes reach the image - #8
Merged
Merged
Conversation
The runtime stage only ran "apk add", which leaves the packages already in the alpine:3.24 base image at the versions that image was built with. Alpine had published fixes the image did not get: - zlib 1.3.2-r1 -> 1.4-r0 (CVE-2026-4738) - libssl3 / libcrypto3 3.5.9-r0 -> 3.5.9-r1 Run "apk upgrade" first. Trivy now reports no vulnerabilities at all. The scans in CI and before a release now fail on fixable findings of any severity. Trivy rated CVE-2026-4738 MEDIUM while Docker Scout rates it 9.4 critical, so the HIGH/CRITICAL filter let it through; with every package upgraded, any fixable finding means the image is not current.
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.
Problem
The published
v1.31.10image shipszlib 1.3.2-r1, affected by CVE-2026-4738 (Docker Scout: 9.4 critical). Alpine 3.24 already has the fix inzlib 1.4-r0, but the runtime stage only ranapk add, which keeps the packages that come with thealpine:3.24base image at the versions it was built with.libssl3/libcrypto3were one revision behind for the same reason.Fix
Dockerfile: runapk upgrade --no-cachebefore installing the runtime packages.Result (local build)
Trivy, all severities, fixed and unfixed: 0 vulnerabilities. Smoke test passes, including HTTP/3.
CVE-2026-107891 (musl)
Not changed here, because Alpine 3.24 has no newer musl:
1.2.6-r3is the current package, and its APKBUILD lists CVE-2026-107891 as fixed in1.2.6-r3. The CVE patch in 3.24-stable has the same code changes as the one in edge, where it is listed under1.2.6-r6. Docker Scout reporting1.2.6-r3as vulnerable is most likely based on the edge version number; Trivy does not report it.Releasing
A manual run of Release rebuilds the existing
v1.31.10tag, which does not contain this fix. After merging, publish with a revision tag: