HighGHSA-mjqv-xhgm-gx8cCVE-2023-26557GO-2023-1733

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

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
<1.3.6-0.20230324145555-bb6fb30bd3eb
Fixed in
1.3.6-0.20230324145555-bb6fb30bd3eb
Update to the fixed version for your release line, for example:go get github.com/bnb-chain/tss-lib@v1.3.6-0.20230324145555-bb6fb30bd3eb
Affected
<1.3.6-0.20230324145555-bb6fb30bd3eb
Fixed in
1.3.6-0.20230324145555-bb6fb30bd3eb
Update to the fixed version for your release line, for example:go get github.com/binance-chain/tss-lib@v1.3.6-0.20230324145555-bb6fb30bd3eb

Details

io.finnet tss-lib before 2.0.0 can leak the lambda value of a private key via a timing side-channel attack because it relies on Go big.Int, which is not constant time for Cmp, modular exponentiation, or modular inverse. An example leak is in crypto/paillier/paillier.go. (bnb-chain/tss-lib and thorchain/tss are also affected.)

Is GHSA-mjqv-xhgm-gx8c 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-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
  • LowCVE-2023-26556Timing attack from non-constant time scalar multiplication in github.com/bnb-chain/tss-lib · 11 Jul 2023
  • CriticalCVE-2023-26556IO FinNet tss-lib vulnerable to timing attack from non-constant time scalar multiplication · 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.