GHSA-9wx7-jrvc-28mm: Starkbank ecdsa Signature Verification Vulnerability Vulnerability
HIGHGHSA-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
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.
pip install starkbank-ecdsa>=2.0.1
<dependency>
<groupId>com.starkbank</groupId>
<artifactId>ecdsa-java</artifactId>
<version>1.0.1</version>
</dependency>
Upgrade starkbank-ecdsa to 1.3.2
npm install starkbank-ecdsa@1.1.3
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
GHSA-9wx7-jrvc-28mm Affected Starkbank ecdsa Versions
4 component(s)| 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?
Which Starkbank ecdsa versions are affected?
What version fixes GHSA-9wx7-jrvc-28mm?
Is starkbank-ecdsa affected?
Is ecdsa-java affected?
What CWE is associated with GHSA-9wx7-jrvc-28mm?
How can I check PyPI dependencies for GHSA-9wx7-jrvc-28mm?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}