Skip to content

security: Go 1.26.5 builder + apt upgrade the release stage (15 CVEs) - #108

Merged
blue4209211 merged 3 commits into
mainfrom
security/go-1.26.5-debian-refresh
Jul 17, 2026
Merged

security: Go 1.26.5 builder + apt upgrade the release stage (15 CVEs)#108
blue4209211 merged 3 commits into
mainfrom
security/go-1.26.5-debian-refresh

Conversation

@mayankpande88

@mayankpande88 mayankpande88 commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Description

Trivy on ghcr.io/nudgebee/forager:main-cca8173 (CI scan run nudgebee/nudgebee 29551177314) shows 2 CRITICAL / 4 HIGH / 9 MEDIUM fixable:

Findings Where Fix
11× libgnutls30 (incl. both CRITICALs), libgcrypt20, liblzma5 pinned debian:bookworm-slim release stage — digest snapshot drifted behind bookworm security releases apt-get upgrade behind a committed OS_PKG_EPOCH cache-bust (same pattern as the nudgebee service images)
2× Go stdlib (CVE-2026-39822 HIGH, CVE-2026-42505) forager binary built on Go 1.26.4 builder → golang:1.26.5-bookworm (digest-pinned) + GOTOOLCHAIN=local

Residual after this: the bookworm NOFIX floor only (no upstream fix published; it shrinks on rebuilds as debian publishes fixes, via the same upgrade layer).

Note: dependabot keeps bumping the golang:1.26 floating-tag digest — the explicit 1.26.5 pin supersedes that for the toolchain; dependabot will track 1.26.5-bookworm digests from here.

Type of change

  • Enhancement (non-breaking change which improves existing functionality)

How Has This Been Tested?

  • Manual testing — finding attribution verified from the CI Trivy artifacts (result.json, nudgebee/nudgebee run 29551177314); Dockerfile changes only, release binary and Oracle Instant Client handling untouched; CI build validates.

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code

Trivy on ghcr.io/nudgebee/forager:main-cca8173 shows 2 CRITICAL / 4 HIGH / 9
MEDIUM fixable:
- 13 are stale debian packages in the pinned bookworm-slim release stage
  (libgnutls30 x11 incl. the 2 CRITICALs, libgcrypt20, liblzma5) — the digest
  snapshot drifts behind bookworm security releases and nothing re-upgraded it.
  Add apt-get upgrade behind a committed OS_PKG_EPOCH cache-bust (same pattern
  as the nudgebee service images).
- 2 are the Go 1.26.4 stdlib pair (CVE-2026-39822 HIGH os.Root symlink
  traversal / CVE-2026-42505 crypto/tls ECH) in the forager binary. Pin the
  builder to golang:1.26.5-bookworm (digest) with GOTOOLCHAIN=local.

Residual after this is the bookworm NOFIX floor only (no upstream fix
published; shrinks via the same upgrade on rebuilds as debian publishes).

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Go base image in the Dockerfile to version 1.26.5 to address security vulnerabilities and introduces an OS package upgrade step to patch base packages in the release stage. Feedback is provided to set the DEBIAN_FRONTEND environment variable to noninteractive and run apt-get clean to prevent interactive prompts and reduce the final image size.

Comment thread Dockerfile
CI's vuln job resolves its Go toolchain from go.mod (setup-go
go-version-file), so govulncheck was analyzing with the 1.25.11 stdlib and
flagging the crypto/tls CVE fixed in 1.25.12. The Docker builder already
compiles with 1.26.5; this aligns the analysis toolchain onto a patched
stdlib as well.
@blue4209211
blue4209211 merged commit 2f95659 into main Jul 17, 2026
6 of 8 checks passed
@blue4209211
blue4209211 deleted the security/go-1.26.5-debian-refresh branch July 17, 2026 04:51
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.

2 participants