Skip to content

fix: upgrade Alpine packages in exercise 16's solution - #51

Merged
mablanco merged 1 commit into
mainfrom
fix/exercise-16-apk-upgrade
Nov 16, 2026
Merged

mablanco merged 1 commit into
mainfrom
fix/exercise-16-apk-upgrade

Conversation

@mablanco

Copy link
Copy Markdown
Owner

Every Dependabot pull request (#47, #49, #50) fails the Exercise 16 job, which none of them touch: the reference solution now has one critical vulnerability with a fix available.

Cause

zlib 1.3.2-r1 in the base image, python:3.15.2-alpine3.24, has CVE-2026-4738 (critical), fixed in 1.4-r0. The fix is in Alpine's package repositories, but not yet in any published image: alpine:3.24.4, the latest, still ships 1.3.2-r1. A new base image will only come with the next Alpine point release.

Change

  • 16/sol/Dockerfile runs apk upgrade --no-cache before installing the app.
  • The README explains that fixes can reach the distribution's repositories before any base image, and adds a hint about it. It's a good case for this exercise, which is about images going stale.

Tests

16/sol/test.sh passes locally: the starting image has 1444 critical or high vulnerabilities with a fix available, the solution none, and the app answers.

After merging, #47, #49 and #50 need a rebase (@dependabot rebase) to pick up the fix.

zlib 1.3.2-r1 (CVE-2026-4738, critical) ships in every published Alpine
3.24 image, including python:3.15.2-alpine3.24 and alpine:3.24.4, while
the fixed 1.4-r0 is only in Alpine's repositories. The solution now
upgrades its system packages, and the README explains why.
@mablanco
mablanco merged commit 853329e into main Nov 16, 2026
17 checks passed
@mablanco
mablanco deleted the fix/exercise-16-apk-upgrade branch November 16, 2026 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant