# CVE-2022-47931: GO-2023-1904 - Collision of hash values in github.com/bnb-chain/tss-lib

Source: https://junglewise.ai/threats/cve-2022-47931-collision-of-hash-values-in-github-com-bnb-chain-tss-lib  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2023-07-11  
License: CC BY 4.0 with a link back

CVE-2022-47931 · Severity: low · CVSS 3.1 · Published 2023-07-11

Collision of hash values in github.com/bnb-chain/tss-lib

Technologies: [github.com/binance-chain/tss-lib (Go)](https://junglewise.ai/threats/technologies/github-com-binance-chain-tss-lib), [github.com/bnb-chain/tss-lib (Go)](https://junglewise.ai/threats/technologies/github-com-bnb-chain-tss-lib). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2022-47931 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-47931 being exploited in the wild.

**How severe is CVE-2022-47931?** Low severity, with a CVSS score of 3.1, published 11 July 2023.

**Which products and versions are affected?** github.com/binance-chain/tss-lib (Go) SEMVER:introduced=0; github.com/bnb-chain/tss-lib (Go) SEMVER:introduced=0,fixed=1.3.6-0.20230324145555-bb6fb30bd3eb.

**Is there a fix for CVE-2022-47931?** Yes. github.com/bnb-chain/tss-lib (Go): upgrade to 1.3.6-0.20230324145555-bb6fb30bd3eb or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-47931?** Check whether you run github.com/binance-chain/tss-lib (Go) or github.com/bnb-chain/tss-lib (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/bnb-chain/tss-lib (Go): upgrade to 1.3.6-0.20230324145555-bb6fb30bd3eb or later

  ```sh
  go get github.com/bnb-chain/tss-lib@v1.3.6-0.20230324145555-bb6fb30bd3eb
  ```


## Affected products

- github.com/binance-chain/tss-lib (Go) SEMVER:introduced=0
- github.com/bnb-chain/tss-lib (Go) SEMVER:introduced=0,fixed=1.3.6-0.20230324145555-bb6fb30bd3eb

## Identifiers

- CVE-2022-47931
- GHSA-cvcx-g7wh-x8rf
- GO-2023-1904

## Related threats

- [GO-2022-0769 - Incorrect Default Permissions in Binance tss-lib in github.com/binance-chain/tss-lib](https://junglewise.ai/threats/cve-2020-12118-incorrect-default-permissions-in-binance-tss-lib)
- [tss-lib leaks secret keys in response to incorrectly constructed Paillier moduli](https://junglewise.ai/threats/tss-lib-leaks-secret-keys-in-response-to-incorrectly-constructed-6e3b2228)
- [GO-2023-1733 - Timing attack from non-constant time scalar arithmetic in github.com/bnb-chain/tss-lib](https://junglewise.ai/threats/cve-2023-26557-io-finnet-tss-lib-vulnerable-to-timing-attack-from-non-constant)
- [GO-2023-1867 - Replay attacks involving proofs in github.com/bnb-chain/tss-lib](https://junglewise.ai/threats/cve-2022-47930-io-finnet-tss-lib-vulnerable-to-replay-attacks-involving-proofs)
- [GO-2023-1732 - Timing attack from non-constant time scalar multiplication in github.com/bnb-chain/tss-lib](https://junglewise.ai/threats/cve-2023-26556-io-finnet-tss-lib-vulnerable-to-timing-attack-from-non-constant)
