Skip to content

[CVE] Bump Go to 1.26.6 (release-v1.42) - #5202

Open
dimitri-nicolo wants to merge 1 commit into
tigera:release-v1.42from
dimitri-nicolo:dimitri-bump-go-1.26.6-v1.42
Open

[CVE] Bump Go to 1.26.6 (release-v1.42)#5202
dimitri-nicolo wants to merge 1 commit into
tigera:release-v1.42from
dimitri-nicolo:dimitri-bump-go-1.26.6-v1.42

Conversation

@dimitri-nicolo

Copy link
Copy Markdown
Contributor

Clears the two stdlib findings against the operator image from the 2026-08-14 scan of v1.42.4-40-g0d01e49fe7a5.

The operator binary is built by the calico/go-build image selected by GO_VERSION, so its stdlib version is whatever that pin says. At 1.26.5:

CVE
CVE-2026-39821 8.2 idna.ToASCII/ToUnicode accept Punycode labels that decode to an ASCII-only label, so code that does a privilege check on the ASCII hostname can be bypassed (xn--example-.com passes, then decodes to example.com).
CVE-2026-46600 7.5 Parsing an invalid SVCB or HTTPS resource record panics when a parameter value overflows the message buffer.

Both are fixed in Go 1.26.6.

Changes

  • Makefile: GO_VERSION?= 1.26.5 -> 1.26.6
  • go.mod, api/go.mod: go directive 1.26.5 -> 1.26.6

The go directives move with GO_VERSION, matching the previous bump (7d0d1ac). No dependency changes, so go.sum is untouched.

calico/go-build already publishes 1.26.6-llvm21.1.8-k8s1.36.3, which matches this branch's LLVM_VERSION and K8S_VERSION — no go-build change needed. (The pre-commit hook ran in that image while preparing this branch.)

Scope

These were the last findings outstanding against the operator image from that scan. The containerd, oras-go and grpc findings were cleared by the move to helm v3.21.3 in #5172, which dropped containerd and grpc from the dependency graph outright and took oras-go to v2.6.2. This branch is rebased on that merge.

Note that master is still on 1.26.5, so this does not have a master counterpart to pick from; it is a release-branch-only bump driven by the scan.

Release note:

Fixed CVE-2026-39821 and CVE-2026-46600 in the operator image by building with Go 1.26.6.

The operator binary is built by the calico/go-build image selected by
GO_VERSION, so its stdlib version is whatever that pin says. At 1.26.5 two
stdlib advisories are open against the shipped binary:

  CVE-2026-39821  idna ToASCII / ToUnicode accept Punycode labels that
                  decode to an ASCII-only label, which can escalate
                  privilege in code that checks the ASCII hostname
  CVE-2026-46600  parsing an invalid SVCB or HTTPS resource record panics
                  when a parameter value overflows the message buffer

Both are fixed in Go 1.26.6. calico/go-build already publishes
1.26.6-llvm21.1.8-k8s1.36.3, matching this branch's LLVM_VERSION and
K8S_VERSION, so no go-build change is needed.

The go.mod `go` directives move with GO_VERSION, as on previous bumps.

These two were the last findings outstanding against the operator image
from the same scan; the containerd, oras-go and grpc ones were cleared by
the move to helm v3.21.3 in tigera#5172.

Release Note
------------
Fixed CVE-2026-39821 and CVE-2026-46600 in the operator image by building with Go 1.26.6.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR bumps the Go toolchain/version pins used to build the operator (via GO_VERSION and the go directives) from 1.26.5 to 1.26.6 to clear the two referenced stdlib CVEs in the operator image.

Changes:

  • Update Makefile GO_VERSION to 1.26.6.
  • Update the go directive in go.mod and api/go.mod to 1.26.6.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
Makefile Bumps the Go toolchain version used by the build image tag to 1.26.6.
go.mod Updates the module’s Go language/toolchain directive to 1.26.6.
api/go.mod Updates the API submodule’s Go language/toolchain directive to 1.26.6.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants