CVE-2023-26556: Github.com/bnb chain/tss lib IO FinNet Tss-lib Vulnerable To Vulnerability

CRITICAL
Advisory Identifier: GHSA-3w84-4mjc-rjw7
CVSS 9.1
CWE-203
Published
Advisory Summary

CVE-2023-26556 is a CRITICAL (CVSS 9.1) io finnet tss-lib vulnerable to vulnerability (CWE-203: Observable Discrepancy) affecting Github.com/bnb chain/tss lib libraries in the Go ecosystem. The issue involves io finnet tss-lib vulnerable to timing attack from non-constant time scalar multiplication. Remediation is available by upgrading affected packages to version 2.0.0.

CVE-2023-26556 at a Glance

CVE Identifier CVE-2023-26556
GHSA Identifier GHSA-3w84-4mjc-rjw7
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-203: Observable Discrepancy
Affected Product Github.com/bnb chain/tss lib
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 9.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2023-26556

To remediate this vulnerability, upgrade all affected Github.com/bnb chain/tss lib dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/bnb-chain/tss-lib fixed: 2.0.0
Upgrade github.com/bnb-chain/tss-lib to 2.0.0
github.com/binance-chain/tss-lib fixed: 2.0.0
Upgrade github.com/binance-chain/tss-lib to 2.0.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/bnb-chain/tss-lib

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-26556, inspect your project dependencies for Github.com/bnb chain/tss lib:

inspect dependencies for github.com/bnb-chain/tss-lib

Analyze the terminal output to locate any version of Github.com/bnb chain/tss lib in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-203: Observable Discrepancy, where the product behaves differently or sends different responses under different circumstances in a way that is observable to an unauthorized actor. In Github.com/bnb chain/tss lib, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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

CVE-2023-26556 Affected Github.com/bnb chain/tss lib Versions

2 component(s)
Fixed Versions:
2.0.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/bnb-chain/tss-lib
Go
< 2.0.0
2.0.0
github.com/binance-chain/tss-lib
Go
< 2.0.0
2.0.0

References

Frequently Asked Questions

What is CVE-2023-26556?
CVE-2023-26556 is a security vulnerability in Github.com/bnb chain/tss lib involving IO FinNet tss-lib vulnerable to timing attack from non-constant time scalar multiplication under CWE-203: Observable Discrepancy.
Which Github.com/bnb chain/tss lib versions are affected?
Affected versions include releases prior to 2.0.0 across affected packages: github.com/bnb-chain/tss-lib, github.com/binance-chain/tss-lib.
What version fixes CVE-2023-26556?
Upgrading to 2.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/bnb-chain/tss-lib affected?
Yes, github.com/bnb-chain/tss-lib is affected in releases prior to 2.0.0. Upgrade your dependency to 2.0.0 or later.
Is github.com/binance-chain/tss-lib affected?
Yes, github.com/binance-chain/tss-lib is affected in releases prior to 2.0.0. Upgrade your dependency to 2.0.0 or later.
What is the CVSS score of CVE-2023-26556?
CVE-2023-26556 has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2023-26556?
CVE-2023-26556 is classified under CWE-203: Observable Discrepancy (The product behaves differently or sends different responses under different circumstances in a way that is observable to an unauthorized actor.).
How can I check Go dependencies for CVE-2023-26556?
Run the dependency tree command: 'inspect dependencies for github.com/bnb-chain/tss-lib'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-3w84-4mjc-rjw7",
  "modified" : "2025-02-05T19:42:53Z",
  "published" : "2023-04-21T18:30:24Z",
  "aliases" : [ "CVE-2023-26556" ],
  "summary" : "IO FinNet tss-lib vulnerable to timing attack from non-constant time scalar multiplication",
  "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.)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/bnb-chain/tss-lib"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/binance-chain/tss-lib"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-26556"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/bnb-chain/tss-lib/issues/44"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/IoFinnet/tss-lib/releases/tag/v2.0.0"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/bnb-chain/tss-lib"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/bnb-chain/tss-lib/releases/tag/v2.0.0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/bnb-chain/tss-lib/tree/v1.3.5"
  }, {
    "type" : "WEB",
    "url" : "https://gitlab.com/thorchain/tss/tss-lib/-/tags/v0.1.3"
  }, {
    "type" : "WEB",
    "url" : "https://medium.com/@iofinnet/security-disclosure-for-ecdsa-and-eddsa-threshold-signature-schemes-4e969af7155b"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2023-1732"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-203" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-02-05T19:42:53Z",
    "nvd_published_at" : "2023-04-21T18:15:07Z"
  }
}