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?
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
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
go get github.com/binance-chain/tss-lib@v1.3.6-0.20230324145555-bb6fb30bd3ebDetails
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
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2023-26557
- Linkgithub.com/IoFinnet/tss-lib/releases/tag/v2.0.0
- Packagegithub.com/bnb-chain/tss-lib
- Linkgithub.com/bnb-chain/tss-lib/tree/v1.3.5
- Linkgitlab.com/thorchain/tss/tss-lib/-/tags/v0.1.3
- Linkmedium.com/@iofinnet/security-disclosure-for-ecdsa-and-eddsa-threshold-signature-schemes-4e969af7155b
- Linkpkg.go.dev/vuln/GO-2023-1733
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.