Skip to content

Bump golang.org/x/crypto from 0.23.0 to 0.45.0 - #1

Merged
MagicalTux merged 1 commit into
masterfrom
dependabot/go_modules/golang.org/x/crypto-0.45.0
Mar 24, 2026
Merged

MagicalTux merged 1 commit into
masterfrom
dependabot/go_modules/golang.org/x/crypto-0.45.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Mar 24, 2026

Copy link
Copy Markdown
Contributor

Bumps golang.org/x/crypto from 0.23.0 to 0.45.0.

Commits
  • 4e0068c go.mod: update golang.org/x dependencies
  • e79546e ssh: curb GSSAPI DoS risk by limiting number of specified OIDs
  • f91f7a7 ssh/agent: prevent panic on malformed constraint
  • 2df4153 acme/autocert: let automatic renewal work with short lifetime certs
  • bcf6a84 acme: pass context to request
  • b4f2b62 ssh: fix error message on unsupported cipher
  • 79ec3a5 ssh: allow to bind to a hostname in remote forwarding
  • 122a78f go.mod: update golang.org/x dependencies
  • c0531f9 all: eliminate vet diagnostics
  • 0997000 all: fix some comments
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.23.0 to 0.45.0.
- [Commits](golang/crypto@v0.23.0...v0.45.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.45.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Mar 24, 2026
@MagicalTux
MagicalTux merged commit 0c3a348 into master Mar 24, 2026
2 checks passed
@dependabot
dependabot Bot deleted the dependabot/go_modules/golang.org/x/crypto-0.45.0 branch March 24, 2026 11:25
MagicalTux added a commit that referenced this pull request May 16, 2026
A security audit of the dklstss package found five issues; this commit
addresses all of them and adds regression tests.

1. (Critical) crypto/ot/otext: prgExpand was keyed only by the seed. The
   OT extension setup persists across many signings, so every Extend()
   call against the same ExtReceiver re-derived the same (t0, t1)
   matrices. The wire message u_j = t0[j] ⊕ t1[j] ⊕ c therefore leaked
   c¹⊕c² (= bitsLE(α¹)⊕bitsLE(α²)) to the sender across calls — i.e.
   after two signings with the same peer, malicious Bob recovers the
   bitwise XOR of Alice's two nonce-share bit decompositions. With
   enough signings a lattice attack on biased-nonce ECDSA extracts the
   joint key. Fix: prgExpand now derives the AES (key, IV) from
   SHA-512/256("DKLS23-otext-prg-v2" || seed || sid), making every
   Extend() call produce an independent PRG stream. Demonstrated leak
   before the fix; regression test verifies absence after.

2. (High) dklstss/signing_party.go + presign_party.go: presignSession
   and signSession were deterministic functions of (pub, subset[, hash]).
   Two presigns with the same subset, or two signings of the same hash
   with the same subset, produced identical ΠMul sids and reused the
   long-term OT-extension setup with matching (seed, sid) — re-opening
   the leak fixed in #1. Round-2 now folds every signer's freshly-
   random K_i into the effective ssid before any ΠMul runs, so the
   effective sid is fresh per call even when all static inputs match.

3. (Medium) dklstss/signing.go:makeSid encoded alice/bob indexes as
   single bytes, so a 256-party committee would collide sids on pairs
   whose low bytes matched. Encoded as 4-byte big-endian instead.
   resharingSession's newThreshold likewise extended from 1 to 4 bytes.

4. (Medium) dklstss/resharing.go + resharing_party.go: when
   λ_i · x_i mod q == 0 the code silently substituted scaled = 1, which
   would change the joint secret by a known offset (caught later by the
   pubkey-equality check, but with a confusing error). Replaced with an
   immediate fatal error identifying the corrupted share.

5. (Low) dklstss/serialize.go: Save/Load dropped IdentityPub/
   IdentityPriv/PeerIdentityPubs. Bumped KeyWireVersion to 2 with
   backwards-compatible v1 loading. Also corrected the misleading doc
   in key.go claiming OT state isn't persisted by default.

Regression tests added:

- crypto/ot/otext: TestPRGSidBinding (PRG output varies with sid),
  TestExtendDoesNotLeakChoiceXorAcrossSessions (u₁⊕u₂ ≠ c₁⊕c₂).

- dklstss: TestSigningPartyRepeatedSignReusesOTSafely,
  TestPresignPartyRepeatedReusesOTSafely,
  TestSyncSignRepeatedReusesOTSafely (the round-2 ssid mix works),
  TestMakeSidNoTruncationAcross256Boundary (4-byte encoding),
  TestReshareRejectsZeroScaledShare (Xi=0 error path),
  TestKeySaveLoadIdentityMaterial (v2 wire format round-trip).
  Existing TestKeyLoadRejectsBadVersion updated to use the
  KeyWireVersion constant rather than a hard-coded "1".

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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 go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant