GHSA-9wx7-jrvc-28mm: Starkbank ecdsa Signature Verification Vulnerability Vulnerability

HIGH
CWE-347
Published
Advisory Summary

GHSA-9wx7-jrvc-28mm is a HIGH signature verification vulnerability vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Starkbank ecdsa libraries in the PyPI ecosystem. The issue involves signature verification vulnerability in stark bank ecdsa libraries. Remediation is available by upgrading affected packages to version 2.0.1, 1.0.1, 1.3.2, 1.1.3.

GHSA-9wx7-jrvc-28mm at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-9wx7-jrvc-28mm
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-347: Improper Verification of Cryptographic Signature
Affected Product Starkbank ecdsa
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix GHSA-9wx7-jrvc-28mm

To remediate this vulnerability, upgrade all affected Starkbank ecdsa dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

starkbank-ecdsa fixed: 2.0.1
pip install starkbank-ecdsa>=2.0.1
com.starkbank:ecdsa-java fixed: 1.0.1
<dependency>
    <groupId>com.starkbank</groupId>
    <artifactId>ecdsa-java</artifactId>
    <version>1.0.1</version>
</dependency>
starkbank-ecdsa fixed: 1.3.2
Upgrade starkbank-ecdsa to 1.3.2
starkbank-ecdsa fixed: 1.1.3
npm install starkbank-ecdsa@1.1.3
Verify Direct and Transitive Dependencies

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

pip show starkbank-ecdsa

How to Check if You Are Affected

To determine whether your Python environment is affected by GHSA-9wx7-jrvc-28mm, inspect your installed packages using pip:

pip show starkbank-ecdsa

Analyze the terminal output to locate any version of Starkbank ecdsa in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.1), your application is affected.

Note: The pip show starkbank-ecdsa command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-347: Improper Verification of Cryptographic Signature, where the product does not verify, or incorrectly verifies, the cryptographic signature for data. In Starkbank ecdsa, 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

An attacker can forge signatures on arbitrary messages that will verify for any public key. This may allow attackers to authenticate as any user within the Stark Bank platform, and bypass signature verification needed to perform operations on the platform, such as send payments and transfer funds. Additionally, the ability for attackers to forge signatures may impact other users and projects using these libraries in different and unforeseen ways.

GHSA-9wx7-jrvc-28mm Affected Starkbank ecdsa Versions

4 component(s)
Fixed Versions:
2.0.11.0.11.3.21.1.3
Product / Package Ecosystem Affected Versions Fixed Version
starkbank-ecdsa
PyPI
< 2.0.1
2.0.1
com.starkbank:ecdsa-java
Maven
≥ 1.0.0
< 1.0.1
All 1 versions
1.0.0
1.0.1
starkbank-ecdsa
NuGet
≥ 1.3.1
< 1.3.2
All 1 versions
1.3.1
1.3.2
starkbank-ecdsa
npm
≥ 1.1.2
< 1.1.3
All 1 versions
1.1.2
1.1.3

References

Frequently Asked Questions

What is GHSA-9wx7-jrvc-28mm?
GHSA-9wx7-jrvc-28mm is a security vulnerability in Starkbank ecdsa involving Signature verification vulnerability in Stark Bank ecdsa libraries under CWE-347: Improper Verification of Cryptographic Signature.
Which Starkbank ecdsa versions are affected?
Affected versions include releases prior to 2.0.1, 1.0.1, 1.3.2, 1.1.3 across affected packages: starkbank-ecdsa, com.starkbank:ecdsa-java.
What version fixes GHSA-9wx7-jrvc-28mm?
Upgrading to 2.0.1, 1.0.1, 1.3.2, 1.1.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is starkbank-ecdsa affected?
Yes, starkbank-ecdsa is affected in releases prior to 2.0.1, 1.3.2, 1.1.3. Upgrade your dependency to 2.0.1, 1.3.2, 1.1.3 or later.
Is ecdsa-java affected?
Yes, com.starkbank:ecdsa-java is affected in releases prior to 1.0.1. Upgrade your dependency to 1.0.1 or later.
What CWE is associated with GHSA-9wx7-jrvc-28mm?
GHSA-9wx7-jrvc-28mm is classified under CWE-347: Improper Verification of Cryptographic Signature (The product does not verify, or incorrectly verifies, the cryptographic signature for data.).
How can I check PyPI dependencies for GHSA-9wx7-jrvc-28mm?
Run the dependency tree command: 'pip show starkbank-ecdsa'. 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-9wx7-jrvc-28mm",
  "modified" : "2021-11-08T21:34:42Z",
  "published" : "2021-11-08T21:51:18Z",
  "aliases" : [ ],
  "summary" : "Signature verification vulnerability in Stark Bank ecdsa libraries",
  "details" : "An attacker can forge signatures on arbitrary messages that will verify for any public key. This may allow attackers to authenticate as any user within the Stark Bank platform, and bypass signature verification needed to perform operations on the platform, such as send payments and transfer funds. Additionally, the ability for attackers to forge signatures may impact other users and projects using these libraries in different and unforeseen ways.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "starkbank-ecdsa"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.starkbank:ecdsa-java"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "1.0.1"
      } ]
    } ],
    "versions" : [ "1.0.0" ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "starkbank-ecdsa"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.3.1"
      }, {
        "fixed" : "1.3.2"
      } ]
    } ],
    "versions" : [ "1.3.1" ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "starkbank-ecdsa"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.1.2"
      }, {
        "fixed" : "1.1.3"
      } ]
    } ],
    "versions" : [ "1.1.2" ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/starkbank/ecdsa-python/commit/d136170666e9510eb63c2572551805807bd4c17f"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/starkbank/ecdsa-dotnet"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/starkbank/ecdsa-java"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/starkbank/ecdsa-node"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/starkbank/ecdsa-python"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/starkbank/ecdsa-python/compare/v2.0.0...v2.0.1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/starkbank/ecdsa-python/releases/tag/v2.0.1"
  }, {
    "type" : "WEB",
    "url" : "https://research.nccgroup.com/2021/11/08/technical-advisory-arbitrary-signature-forgery-in-stark-bank-ecdsa-libraries"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-347" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-11-08T21:34:42Z",
    "nvd_published_at" : null
  }
}