Run apk upgrade in final image to patch musl and xz CVEs#70
Conversation
Resolves CVE-2025-26519 (musl qsort stack corruption), the musl iconv GB18030 DoS, and the xz index-decoding buffer overflow (CVE-2026-34743, fixed in xz-libs 5.8.3-r0). The compile stage already ran apk upgrade, but the runtime stage didn't, so the published image was shipping unpatched libs from the base. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Greptile SummaryThis PR adds Confidence Score: 5/5Safe to merge — minimal, targeted security patch with no logic changes and no new dependencies. The change is a two-line addition that mirrors the already-proven upgrade pattern in the compile stage. No logic is altered, no new packages are introduced, and the fix directly addresses the stated CVEs. No issues were identified. No files require special attention. Important Files Changed
Reviews (1): Last reviewed commit: "Run apk upgrade in final image to patch ..." | Re-trigger Greptile |
Summary
apk update && apk upgrade --no-cacheto thefinalstage so the runtime image picks up patched Alpine packages. Thecompilestage already does this, but thefinalstage didn't, so the published image shipped unpatchedmusl/xz-libsfrom the base.qsortstack corruption, High), musliconvGB18030 DoS, and CVE-2026-34743 (xz-libsindex-decoding buffer overflow, fixed in 5.8.3-r0).Verification
Built
--target finallocally and verified package versions:All target CVEs now have fixed versions installed.
Test plan
🤖 Generated with Claude Code