CVE-2020-12118: Github.com/binance chain/tss lib Incorrect Default Permissions Vulnerability

HIGH
Advisory Identifier: GHSA-399h-cmvp-qgx5
CVSS 8.6
CWE-276
Published
Advisory Summary

CVE-2020-12118 is a HIGH (CVSS 8.6) incorrect default permissions vulnerability (CWE-276: Incorrect Default Permissions) affecting Github.com/binance chain/tss lib libraries in the Go ecosystem. The issue involves incorrect default permissions in binance tss-lib. Remediation is available by upgrading affected packages to version 1.2.0.

CVE-2020-12118 at a Glance

CVE Identifier CVE-2020-12118
GHSA Identifier GHSA-399h-cmvp-qgx5
Severity HIGH
CVSS v3.1 Base Score 8.6
CWE Classification CWE-276: Incorrect Default Permissions
Affected Product Github.com/binance chain/tss lib
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 8.6

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:C/C:H/I:N/A:N/E:U/RL:O/RC:R).

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

How to Fix CVE-2020-12118

To remediate this vulnerability, upgrade all affected Github.com/binance 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/binance-chain/tss-lib fixed: 1.2.0
Upgrade github.com/binance-chain/tss-lib to 1.2.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/binance-chain/tss-lib

How to Check if You Are Affected

To determine whether your application is affected by CVE-2020-12118, inspect your project dependencies for Github.com/binance chain/tss lib:

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

Analyze the terminal output to locate any version of Github.com/binance 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 1.2.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-276: Incorrect Default Permissions, where during installation, installed file permissions are set to allow anyone to modify those files. In Github.com/binance 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

The keygen protocol implementation in Binance tss-lib before 1.2.0 allows attackers to generate crafted h1 and h2 parameters in order to compromise a signing round or obtain sensitive information from other parties. ### Specific Go Packages Affected github.com/binance-chain/tss-lib/ecdsa/keygen

CVE-2020-12118 Affected Github.com/binance chain/tss lib Versions

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

References

Frequently Asked Questions

What is CVE-2020-12118?
CVE-2020-12118 is a security vulnerability in Github.com/binance chain/tss lib involving Incorrect Default Permissions in Binance tss-lib under CWE-276: Incorrect Default Permissions.
Which Github.com/binance chain/tss lib versions are affected?
Affected versions include releases prior to 1.2.0 across affected packages: github.com/binance-chain/tss-lib.
What version fixes CVE-2020-12118?
Upgrading to 1.2.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/binance-chain/tss-lib affected?
Yes, github.com/binance-chain/tss-lib is affected in releases prior to 1.2.0. Upgrade your dependency to 1.2.0 or later.
What is the CVSS score of CVE-2020-12118?
CVE-2020-12118 has a CVSS v3.1 base score of 8.6 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N/E:U/RL:O/RC:R.
What CWE is associated with CVE-2020-12118?
CVE-2020-12118 is classified under CWE-276: Incorrect Default Permissions (During installation, installed file permissions are set to allow anyone to modify those files.).
How can I check Go dependencies for CVE-2020-12118?
Run the dependency tree command: 'inspect dependencies for github.com/binance-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-399h-cmvp-qgx5",
  "modified" : "2023-10-02T14:30:16Z",
  "published" : "2021-06-29T21:32:11Z",
  "aliases" : [ "CVE-2020-12118" ],
  "summary" : "Incorrect Default Permissions in Binance tss-lib",
  "details" : "The keygen protocol implementation in Binance tss-lib before 1.2.0 allows attackers to generate crafted h1 and h2 parameters in order to compromise a signing round or obtain sensitive information from other parties.\n### Specific Go Packages Affected\ngithub.com/binance-chain/tss-lib/ecdsa/keygen",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N/E:U/RL:O/RC:R"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/binance-chain/tss-lib"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.2.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-12118"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/binance-chain/tss-lib/pull/89"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/binance-chain/tss-lib/pull/89/commits/7b7c17e90504d5dad94b938e84fec690bb1ec311"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/binance-chain/tss-lib/releases/tag/v1.2.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-276" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-05-25T20:16:35Z",
    "nvd_published_at" : null
  }
}