Repository navigation
build(deps): Bump golang.org/x/crypto from 0.55.0 to 0.56.0 - #1446
Conversation
🔐 Security Audit —
|
| Check | Result |
|---|---|
Modules declared in go.mod |
362 before, 362 after |
| Version deltas across all 362 | exactly 1 — golang.org/x/crypto v0.55.0 → v0.56.0 |
| Files touched by the commit | go.mod, go.sum only |
go.sum deltas |
only the two x/crypto lines |
The remaining 328 lines are pure block re-ordering. No transitive version was moved, added, or removed behind the churn.
Independently corroborated: go mod tidy -diff returns a zero-byte delta against HEAD, so the manifest is already canonical. The five entries that appear to jump blocks (x/sys, x/term, prometheus/client_model, prometheus/common, hashicorp/go-multierror) carried no // indirect marker before and carry none after — their placement changed, not their direct/indirect status. The re-sort in fact collapses four non-canonical require() blocks into the standard two.
2. Checksum & provenance — verified against the signed transparency log
Both go.sum hashes match the signed sum.golang.org entry verbatim:
golang.org/x/crypto v0.56.0 h1:GUh5Ii4J5jtcseSMiRqr1jXCNHoxjeV9Fmekc2oLy6Y=
golang.org/x/crypto v0.56.0/go.mod h1:OMW5y6CY9l38uPLmxU6l6pwcXp1obtLo3e6gT7gQR2I=
Upstream tag v0.56.0 resolves to 86efde54dc7069251a8b007026c500d28e4239ce, committed by Gopher Robot through the official go.googlesource.com Gerrit flow. 11 commits, every one accounted for by the changelog. No moved tag, no undocumented files, no obfuscated blobs, no new outbound network calls, no new environment/credential reads. (Go modules have no install hooks, so that injection vector does not apply.)
3. Exposure analysis — the part that actually matters here
v0.56.0 changes only acme/, ssh/, x509roots/fallback/ and its own go.mod. That is the exhaustive list.
Tenderdash's compiled graph (go list -deps ./...) pulls in 16 x/crypto packages: argon2, bcrypt, blake2b, blowfish, chacha20, chacha20poly1305, curve25519, hkdf, internal/alias, internal/poly1305, nacl/box, nacl/secretbox, pbkdf2, ripemd160, salsa20/salsa, sha3.
All 16 are byte-identical between v0.55.0 and v0.56.0 — verified per-package, not inferred.
golang.org/x/crypto/ssh is not in the build graph (neither directly nor transitively; acme, openpgp and x509roots likewise absent). The secret-connection handshake (internal/p2p/conn/secret_connection.go, privval/secret_connection.go) and crypto/secp256k1 are the only consumers, and every primitive they touch is unchanged.
Addressing the specific concern raised for a direct crypto dependency: there is no algorithm, curve, constant-time, or CSPRNG behaviour change reaching this node. That is established by byte-identity of the consumed packages, not by a clean scan.
4. Known vulnerabilities
v0.56.0 fixes two advisories that v0.55.0 is subject to:
| ID | CVE | Severity | Affected | Reachable here? |
|---|---|---|---|---|
GO-2026-6355 |
CVE-2026-56855 | DoS | < 0.56.0, x/crypto/ssh |
No — ssh not in build graph |
GO-2026-6354 |
CVE-2026-78662 | DoS | < 0.56.0, x/crypto/ssh |
No — ssh not in build graph |
GO-2026-5932 |
— | Informational | all versions, x/crypto/openpgp |
No — openpgp not imported |
Both CVEs are channel-deadlock DoS against an SSH peer, reported by Will Mortensen and announced on golang-announce. Not exploitable against Tenderdash, but this bump strictly reduces the module's latent vulnerability surface, so there is no reason to defer it.
Sources checked: OSV.dev, GitHub Advisory Database, golang-announce, sum.golang.org, upstream commit history.
5. Unregistered security fixes (no CVE assigned)
Worth recording, since automated scanners are blind to these — both confined to x/crypto/ssh, so neither affects Tenderdash:
ssh/certs.go—CheckCertpreviouslycontinued past thesource-addresscritical option, so a host certificate carrying it was accepted with the restriction silently unenforced. It is now rejected unless explicitly listed inSupportedCriticalOptions, withAuthenticateopting in deliberately. This is a behaviour change for directCertCheckerusers — flagging for future reference only.ssh/transport.go—readVersionnow tolerates up to 1024 pre-banner lines (RFC 4253 compliance fix) instead of capping total pre-version input at 255 bytes. Note this is a relaxation: bounded at ~261 KB of pre-auth read, still finite, but worth knowing it exists.ssh/knownhosts—IsRevokedkeyed the revocation map on the marshalled certificate, while@revokedlines store plain keys, so a revoked key presented inside a certificate bypassed revocation. Now compares only the public-key portion.
6. The other two changed areas — audited for completeness
Neither is in Tenderdash's build graph, but a "bundle update" in a crypto library warrants checking regardless:
x509roots/fallback— the commit is titled update bundle, so I checked whether a root CA was silently inserted. It was not: 120 trust anchors before, 120 after, with zero changes to anysha256Hash,certStartOfforcertLength. The only edits are 4 cosmeticcn:display strings, where hex-encoded DER attribute values are now rendered printable (2.5.4.97=#130f...→2.5.4.97=VATES-Q2826004J). No trust anchor added, removed, or altered.acme/jws.go— replaces manual hash-then-key.Signwithcrypto.SignMessage(Go 1.26 stdlib). A correctness improvement for signers that require the raw message; no weakening of the signature scheme.
7. Notes, non-blocking
v0.57.0was tagged 2026-09-08. I checked it: a singlego.mod/go.sumdependency refresh with zero code change and no security content. Nothing to wait for.- Upstream raised its own
godirective1.25.0→1.26.0(and the same in the independentx509roots/fallbacksubmodule); this repo is ongo 1.27.1, so no toolchain pressure. - Coverage statement: v0.56.0 changes 8 non-test files —
acme/jws.go,ssh/certs.go,ssh/channel.go,ssh/knownhosts/knownhosts.go,ssh/transport.go,x509roots/fallback/bundle/bundle.go, and twogo.mods. All 8 were read individually; none is reachable from Tenderdash.
8. Independent verification
Two independent reviewers re-ran the evidence rather than trusting the diff:
go mod tidy— byte-identical output; manifest already canonical and complete.go mod verify— all modules verified.go list -mreportsSum/GoModSumbyte-identical to what the PR wrote intogo.sum, and both match the signedsum.golang.orgtransparency log.- Real CGO + BLS build (
build-binarywith the Makefile'sCGO_LDFLAGS/CGO_CXXFLAGS) produces a working 39.7 MBtenderdashbinary;go build ./...exits 0. govulncheck ./...(v1.3.0) — reports onlyGO-2026-5932(openpgp), Symbol Results: No vulnerabilities found. Unreachable, no fix exists, and equally present at v0.55.0.- Focused tests pass:
internal/p2p/conn,privval,privval/grpc,crypto,crypto/bls12381,crypto/ed25519,crypto/merkle,crypto/secp256k1— i.e. every package that actually imports x/crypto. - All 16 CI checks green at
361295ein the real CGO/BLS environment, includinggovulncheck,Build (amd64, linux),golangci-lint, the fulltests (00–05)matrix,test_apps,test_abci_cli, and bothe2e-testjobs. Consensus-critical paths exercised, not merely compiled.
9. Pre-existing issue noted in passing (not caused by this PR)
go vet ./... reports 4 findings, all in files this PR does not touch — 3× fmt.Errorf %q with an int arg in test/e2e/pkg/testnet.go:385,450,468, and dash/quorum/nodeid_resolver.go:40 address format "%s:%d" does not work with IPv6. A go.mod-only commit cannot introduce a source-level vet finding, so these predate the PR and do not block it. Worth a separate fix; raising it here only for the record.
10. Disclosure — one check I could not complete
The repository Dependabot alerts API returned 403 (needs admin:repo_hook), and the elevated retry was declined, so I could not enumerate repo-level alerts. Compensated by OSV.dev, the GitHub Advisory Database, and direct upstream source review — but stating it plainly rather than implying full coverage.
Verdict
Safe — recommend merge. One module changed out of 362, hashes match the signed transparency log, upstream provenance is clean, every package this node actually compiles is byte-identical, and the bump clears two CVEs from the dependency (unreachable here, but gone regardless). No security concern found.
🍬 Findings: 0 exploitable · 3 advisories resolved-or-not-applicable · 2 unregistered upstream fixes documented.
🤖 Co-authored by Claudius the Magnificent AI Agent
|
@dependabot rebase |
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.55.0 to 0.56.0. - [Commits](golang/crypto@v0.55.0...v0.56.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-version: 0.56.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
361295e to
9514134
Compare
Bumps golang.org/x/crypto from 0.55.0 to 0.56.0.
Commits
86efde5ssh: reject unexpected message types on established channelsa6cdac6ssh: drop traffic on undecided channels39dc44essh: don't skip the source-address critical option in CheckCertafebf4cx509roots/fallback/bundle: make subjectsEqual stricter on Go 1.27+89f4e9bx509roots/fallback: update bundle71488c4ssh/knownhosts: compare only public key portions for revocation82adefassh: synchronize unexpected response testc757c98all: upgrade go directive to at least 1.26.0 [generated]593c81assh: correctly ignore pre-banner lines46efc8bacme: add crypto.SignMessage test coverage