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

High 7.5 Published Updated

Attackers can recover private key lambda values via timing side-channels in tss-lib due to non-constant-time Go big.Int operations.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-26557?

CVE-2023-26557 is a high-severity vulnerability in n/a, published on 21 Apr 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.)

Weakness: CWE-203

Which versions are affected by CVE-2023-26557?

6 open source packages ship an affected version, including github.com/binance-chain/tss-lib and github.com/bnb-chain/tss-lib. It affects 1 product.

PackageAffectedFixed in
github.com/binance-chain/tss-lib GoAll versionsNone
github.com/binance-chain/tss-lib GoAll versions1.3.6-0.20230324145555-bb6fb30bd3eb
github.com/binance-chain/tss-lib GoAll versions1.3.6-0.20230324145555-bb6fb30bd3eb
github.com/bnb-chain/tss-lib GoAll versions1.3.6-0.20230324145555-bb6fb30bd3eb
github.com/bnb-chain/tss-lib GoAll versions1.3.6-0.20230324145555-bb6fb30bd3eb
github.com/bnb-chain/tss-lib GoAll versions1.3.6-0.20230324145555-bb6fb30bd3eb

Products include Iofinnet Tss-Lib.

How do I fix CVE-2023-26557?

Upgrade github.com/binance-chain/tss-lib to 1.3.6-0.20230324145555-bb6fb30bd3eb or later.

Is CVE-2023-26557 being exploited?

There is no known exploitation of CVE-2023-26557 in the wild and no public exploit code.

Sources

Also known as GHSA-mjqv-xhgm-gx8c, GO-2023-1733.

Is CVE-2023-26557 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free