Skip to content

build(deps): Bump golang.org/x/crypto from 0.55.0 to 0.56.0 - #1446

Merged
lklimek merged 1 commit into
v1.8-devfrom
dependabot/go_modules/golang.org/x/crypto-0.56.0
Sep 9, 2026
Merged

lklimek merged 1 commit into
v1.8-devfrom
dependabot/go_modules/golang.org/x/crypto-0.56.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Bumps golang.org/x/crypto from 0.55.0 to 0.56.0.

Commits
  • 86efde5 ssh: reject unexpected message types on established channels
  • a6cdac6 ssh: drop traffic on undecided channels
  • 39dc44e ssh: don't skip the source-address critical option in CheckCert
  • afebf4c x509roots/fallback/bundle: make subjectsEqual stricter on Go 1.27+
  • 89f4e9b x509roots/fallback: update bundle
  • 71488c4 ssh/knownhosts: compare only public key portions for revocation
  • 82adefa ssh: synchronize unexpected response test
  • c757c98 all: upgrade go directive to at least 1.26.0 [generated]
  • 593c81a ssh: correctly ignore pre-banner lines
  • 46efc8b acme: add crypto.SignMessage test coverage
  • Additional commits viewable in compare view

@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Sep 8, 2026
@Claudius-Maginificent

Copy link
Copy Markdown
Collaborator

🔐 Security Audit — golang.org/x/crypto 0.55.0 → 0.56.0

Audited at head 361295e. Verdict up front: Safe to merge — and this bump is remediating, not merely routine. v0.56.0 is an upstream security release.

A note on the shape of this diff: it is 329 lines of go.mod, which looks alarming for a single bump. It is not. Dependabot re-sorted the require() blocks wholesale. I did not take that on trust — see Manifest Integrity below.

1. Manifest integrity — nothing smuggled under the re-sort

Comparing the full module@version set either side of the commit rather than reading the diff:

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 — CheckCert previously continued past the source-address critical option, so a host certificate carrying it was accepted with the restriction silently unenforced. It is now rejected unless explicitly listed in SupportedCriticalOptions, with Authenticate opting in deliberately. This is a behaviour change for direct CertChecker users — flagging for future reference only.
  • ssh/transport.go — readVersion now 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 — IsRevoked keyed the revocation map on the marshalled certificate, while @revoked lines 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 any sha256Hash, certStartOff or certLength. The only edits are 4 cosmetic cn: 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.Sign with crypto.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.0 was tagged 2026-09-08. I checked it: a single go.mod/go.sum dependency refresh with zero code change and no security content. Nothing to wait for.
  • Upstream raised its own go directive 1.25.0 → 1.26.0 (and the same in the independent x509roots/fallback submodule); this repo is on go 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 two go.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 -m reports Sum/GoModSum byte-identical to what the PR wrote into go.sum, and both match the signed sum.golang.org transparency log.
  • Real CGO + BLS build (build-binary with the Makefile's CGO_LDFLAGS/CGO_CXXFLAGS) produces a working 39.7 MB tenderdash binary; go build ./... exits 0.
  • govulncheck ./... (v1.3.0) — reports only GO-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 361295e in the real CGO/BLS environment, including govulncheck, Build (amd64, linux), golangci-lint, the full tests (00–05) matrix, test_apps, test_abci_cli, and both e2e-test jobs. 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

@lklimek

lklimek commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

@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]>
@dependabot
dependabot Bot force-pushed the dependabot/go_modules/golang.org/x/crypto-0.56.0 branch from 361295e to 9514134 Compare September 9, 2026 10:28
@lklimek
lklimek merged commit bb2fb36 into v1.8-dev Sep 9, 2026
22 of 23 checks passed
@lklimek
lklimek deleted the dependabot/go_modules/golang.org/x/crypto-0.56.0 branch September 9, 2026 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants