Skip to content

fix(docker): bump alpine runtime base to clear libcrypto3 CVE-2026-31789 - #83

Merged
ryanaidilp merged 1 commit into
developfrom
fix/bump-alpine-base-cve
Jun 16, 2026
Merged

ryanaidilp merged 1 commit into
developfrom
fix/bump-alpine-base-cve

Conversation

@ryanaidilp

Copy link
Copy Markdown
Contributor

Summary

  • Bumps runtime stage FROM alpine:3.21 → FROM alpine:3.22 to clear the CRITICAL libcrypto3 CVE-2026-31789 (OpenSSL heap buffer overflow on 32-bit systems) present in the stale alpine:3.21.6 base of the current deployed image.

Trivy scan results

Before (ghcr.io/banua-coder/pico-api-go:latest — built on alpine 3.21.6):

Severity Count Notable CVEs
CRITICAL 2 CVE-2026-31789 (libcrypto3 + libssl3)
HIGH 11 CVE-2026-28387/28388/28389/28390 (OpenSSL), CVE-2026-40200 (musl), CVE-2026-22184 (zlib)

After (alpine:3.22 — verified on VPS via trivy image alpine:3.22):

Severity Count Notable CVEs
CRITICAL 0 — CVE-2026-31789 absent
HIGH 2 CVE-2026-45447 (different OpenSSL issue, fixedVersion = 3.5.7-r0)

CVE-2026-31789 is fully cleared. Reduction: 2 CRITICAL + 11 HIGH → 0 CRITICAL + 2 HIGH (OS layer).

Test plan

  • CI builds the Docker image on this branch (or manually: docker build -t pico-api-go:test .)
  • Run trivy image pico-api-go:test --severity HIGH,CRITICAL and confirm CVE-2026-31789 is absent and CRITICAL count is 0
  • Merge to develop → tag v<next> triggers deploy to VPS

Fixes bead d8a7.



Bumps the runtime stage FROM alpine:3.21 → alpine:3.22 to clear the
CRITICAL libcrypto3/libssl3 CVE-2026-31789 (heap buffer overflow) and
all associated HIGH-severity OpenSSL/musl/zlib CVEs present in the
stale alpine:3.21.6 base baked into the current image.

Trivy before (ghcr.io/banua-coder/pico-api-go:latest, alpine 3.21.6):
  CRITICAL: 2 (CVE-2026-31789 libcrypto3 + libssl3)
  HIGH:     11 (alpine OS layer)

Trivy after (alpine:3.22 base):
  CRITICAL: 0
  HIGH:     2 (CVE-2026-45447, different issue, fixed version available)
  — CVE-2026-31789 is absent from alpine:3.22

Fixes: d8a7
@github-actions

Copy link
Copy Markdown
Contributor

📊 Go Coverage Report

Metric Value
Coverage 85.7% ✅

Threshold: 80%

Details

Run go tool cover -func=coverage.out locally to see detailed coverage.

@ryanaidilp
ryanaidilp merged commit 0959686 into develop Jun 16, 2026
4 checks passed
@github-actions
github-actions Bot deleted the fix/bump-alpine-base-cve branch June 16, 2026 02:45
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