CriticalGHSA-3w84-4mjc-rjw7CVE-2023-26556GO-2023-1732

IO FinNet tss-lib vulnerable to timing attack from non-constant time scalar multiplication

Published 21 Apr 2023 · Updated 5 Feb 2025

Is your project on an affected github.com/bnb-chain/tss-lib?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

Affected
<2.0.0
Fixed in
2.0.0
Update to the fixed version for your release line, for example:go get github.com/bnb-chain/tss-lib@v2.0.0
Affected
<2.0.0
Fixed in
2.0.0
Update to the fixed version for your release line, for example:go get github.com/binance-chain/tss-lib@v2.0.0

Details

io.finnet tss-lib before 2.0.0 can leak a secret key via a timing side-channel attack because it relies on the scalar-multiplication implementation in Go crypto/elliptic, which is not constant time (there is an if statement in a loop). One leak is in ecdsa/keygen/round_2.go. (bnb-chain/tss-lib and thorchain/tss are also affected.)

Is GHSA-3w84-4mjc-rjw7 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/bnb-chain/tss-lib, and gives you the command that fixes it.

More advisories for github.com/bnb-chain/tss-lib

  • CriticalGHSA-h24c-6p6p-m3vxtss-lib leaks secret keys in response to incorrectly constructed Paillier moduli · 1 Sept 2023
  • LowCVE-2023-26557Timing attack from non-constant time scalar arithmetic in github.com/bnb-chain/tss-lib · 11 Jul 2023
  • LowCVE-2022-47931Collision of hash values in github.com/bnb-chain/tss-lib · 11 Jul 2023
  • LowCVE-2022-47930Replay attacks involving proofs in github.com/bnb-chain/tss-lib · 11 Jul 2023
  • HighCVE-2023-26557IO FinNet tss-lib vulnerable to timing attack from non-constant time scalar arithmetic · 21 Apr 2023
  • MediumCVE-2022-47930IO FinNet tss-lib vulnerable to replay attacks involving proofs · 21 Apr 2023
All 8 advisories for github.com/bnb-chain/tss-lib

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.