Skip to content

Bump yq, stern and grpcurl to releases built with patched toolchains - #8

Open
ngpayyappilly wants to merge 1 commit into
mainfrom
claude/bump-tool-versions
Open

ngpayyappilly wants to merge 1 commit into
mainfrom
claude/bump-tool-versions

Conversation

@ngpayyappilly

Copy link
Copy Markdown
Owner

Why

The Trivy gate in #7 failed on its first run, and the findings are real and already present on main. Fixable CRITICAL vulnerabilities in the pinned Go binaries:

Binary Finding
yq 4.47.1 stdlib go1.24.5: CVE-2025-68121 (crypto/tls session resumption)
stern 1.33.0 stdlib go1.25.0: CVE-2025-68121
grpcurl 1.9.3 grpc-go 1.61.0: CVE-2026-33186 (authorization bypass); stdlib go1.21.1: CVE-2024-24790, CVE-2025-68121

kubectl and the apt packages were clean.

Change

Tool From To Built with
yq v4.47.1 v4.54.3 go1.27.3
stern 1.33.0 1.35.0 go1.27.2
grpcurl 1.9.3 1.9.4 go1.25.0, grpc-go 1.83.2

yq and stern fully clear their findings. grpcurl 1.9.4 fixes the grpc-go authorization bypass, but upstream still builds it with go1.25.0, which is older than the 1.25.7 fix, so CVE-2025-68121 remains for grpcurl only. I read the toolchain versions from each release binary's build info (go version -m, amd64 and arm64 for grpcurl), without executing them.

Testing

  • Re-ran the three checksum-verified RUN blocks against the real new release assets on amd64 and arm64: all verify OK and install.
  • stern --version prints version: 1.35.0 and grpcurl -version prints grpcurl v1.9.4, so the smoke test's version assertions (once Rewrite smoke test: single container, execution and version checks #6 is merged) can match. The current CI smoke test only checks the binaries run.
  • No Docker build locally (no daemon); CI will do the real build.

Open decision: grpcurl's remaining CVE

Once #7 (Trivy gate) is rebased on this, the gate will still fail on grpcurl's stdlib CVE-2025-68121. Options:

  1. Time-boxed .trivyignore entry with justification and expiry (grpcurl is a client used interactively, and the issue is TLS session resumption), then bump when upstream rebuilds. Quick, but it is an accepted risk.
  2. Build grpcurl from source in a multi-stage build with a current Go toolchain, cross-compiled with --platform=$BUILDPLATFORM so the multi-arch publish does not run a Go build under QEMU. Removes the finding properly at the cost of more Dockerfile and a Go image dependency.

I would lean towards option 2 for a tool people may point at production endpoints, but it deserves its own PR.

Part of an SRE review series (supply chain).


Generated by Claude Code

The Trivy scan (PR #7) found fixable CRITICAL vulnerabilities in the
pinned Go binaries:
  yq 4.47.1      stdlib go1.24.5  CVE-2025-68121
  stern 1.33.0   stdlib go1.25.0  CVE-2025-68121
  grpcurl 1.9.3  grpc-go 1.61.0   CVE-2026-33186 (authz bypass)
                 stdlib go1.21.1  CVE-2024-24790, CVE-2025-68121

yq 4.54.3 (go1.27.3) and stern 1.35.0 (go1.27.2) clear them. grpcurl
1.9.4 updates grpc-go to 1.83.2 but upstream still builds it with
go1.25.0, so CVE-2025-68121 remains for grpcurl only.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014iDTyB5N8EdZyyZo4ymUVR

This branch has not been deployed

No deployments
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