fix: bump golang.org/x/crypto to v0.55.0 (CVE-2026-56854) - #833
Open
cslovell wants to merge 1 commit into
Open
Conversation
Trivy flags the released dbmate binary as CRITICAL for CVE-2026-56854 (golang.org/x/crypto/ssh: source-address restrictions from the password / keyboard-interactive / no-auth / GSSAPI callbacks were not enforced). The fix is in x/crypto v0.55.0. Bumped with 'go get' and 'go mod tidy'; x/net, x/sys, x/text, x/tools, x/mod, x/sync and x/telemetry moved to the versions it requires. Build and vet pass.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Trivy flags the released dbmate binary (
ghcr.io/amacneil/dbmate:2, v2.35.1) as CRITICAL for CVE-2026-56854: ingolang.org/x/crypto/ssh, source-address restrictions returned by the password / keyboard-interactive / no-auth / GSSAPI callbacks were not enforced. The fix landed in x/crypto v0.55.0; dbmate is on v0.52.0 (indirect, via the BigQuery and ClickHouse drivers).dbmate doesn't run an SSH server so the code path isn't reachable here, but image scanners don't know that, and anyone copying the binary into their own image (as we do for migrations) fails a CRITICAL gate on it.
Change
go get golang.org/x/crypto@v0.55.0 && go mod tidy. x/net, x/sys, x/text, x/tools, x/mod, x/sync and x/telemetry move to the versions it requires.go build ./...andgo vet ./pkg/...pass locally with go1.26.Same shape as #807 and #811.