Skip to content

Bump Go toolchain to 1.26.4 and golang.org/x/crypto to v0.53.0#318

Open
ggverma wants to merge 1 commit into
vmware:release_4.2.5from
ggverma:cve-425
Open

Bump Go toolchain to 1.26.4 and golang.org/x/crypto to v0.53.0#318
ggverma wants to merge 1 commit into
vmware:release_4.2.5from
ggverma:cve-425

Conversation

@ggverma

@ggverma ggverma commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

go.mod's go directive was 1.23.1 (now EOL), and since no explicit toolchain line overrides it, Go's toolchain auto-management (GOTOOLCHAIN=auto) uses that exact version during the build - as confirmed by the actual embedded build version in the shipped operator binary (go1.23.1), regardless of whatever Go version is pre-installed in the build environment. Bumping the directive to 1.26.4 is sufficient on its own (fixes CVE-2025-68121, CVE-2026-27143): verified locally that go build ./cmd/manager with this change auto-downloads and uses go1.26.4.

Also bump golang.org/x/crypto v0.36.0 -> v0.53.0 (go get -u golang.org/x/crypto@v0.53.0 && go mod tidy, pulling x/net, x/sys, x/term, x/text along for the ride). The 7 CVEs BlackDuck flagged against v0.36.0 are all in x/crypto's ssh/ssh-agent/knownhosts packages, none of which this operator imports (go list -deps confirms), so this is hygiene rather than a real fix - but it's low-risk and clears the scan.

Verified: go build ./cmd/manager succeeds, go vet ./... shows only the same 4 pre-existing unrelated test-file lint warnings as before this change.

go.mod's `go` directive was 1.23.1 (now EOL), and since no explicit
`toolchain` line overrides it, Go's toolchain auto-management
(GOTOOLCHAIN=auto) uses that exact version during the build - as
confirmed by the actual embedded build version in the shipped
operator binary (`go1.23.1`), regardless of whatever Go version is
pre-installed in the build environment. Bumping the directive to
1.26.4 is sufficient on its own (fixes CVE-2025-68121,
CVE-2026-27143): verified locally that `go build ./cmd/manager`
with this change auto-downloads and uses go1.26.4.

Also bump golang.org/x/crypto v0.36.0 -> v0.53.0 (`go get -u
golang.org/x/crypto@v0.53.0 && go mod tidy`, pulling x/net, x/sys,
x/term, x/text along for the ride). The 7 CVEs BlackDuck flagged
against v0.36.0 are all in x/crypto's ssh/ssh-agent/knownhosts
packages, none of which this operator imports (`go list -deps`
confirms), so this is hygiene rather than a real fix - but it's
low-risk and clears the scan.

Verified: `go build ./cmd/manager` succeeds, `go vet ./...` shows
only the same 4 pre-existing unrelated test-file lint warnings as
before this change.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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