CVE-2024-48930
published high CVSS 4.0 · 8.7secp256k1-node vulnerable to private key extraction over ECDH
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| cryptocoinjs | — | secp256k1-node= 5.0.0 · >= 4.0.0, < 4.0.4 · < 3.8.1 | Affected | Not stated | GitHub_M |
| secp256k1-node_project | — | secp256k1-node5.0.0 · 4.0.0 to < 4.0.4 · 0 to < 3.8.1 · Other versions: unknown | Affected | Not stated | CISA-ADP |
Description
secp256k1-node is a Node.js binding for an Optimized C library for EC operations on curve secp256k1. In `elliptic`-based version, `loadUncompressedPublicKey` has a check that the public key is on the curve. Prior to versions 5.0.1, 4.0.4, and 3.8.1, however, `loadCompressedPublicKey` is missing that check. That allows the attacker to use public keys on low-cardinality curves to extract enough information to fully restore the private key from as little as 11 ECDH sessions, and very cheaply on compute power. Other operations on public keys are also affected, including e.g. `publicKeyVerify()` incorrectly returning `true` on those invalid keys, and e.g. `publicKeyTweakMul()` also returning predictable outcomes allowing to restore the tweak. Versions 5.0.1, 4.0.4, and 3.8.1 contain a fix for the issue.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| cryptocoinjs | secp256k1-node | = 5.0.0 (affected)>= 4.0.0, < 4.0.4 (affected)< 3.8.1 (affected) | GitHub_M · cna |
| secp256k1-node_project | secp256k1-node | 5.0.0 (affected)4.0.0 to < 4.0.4 (affected · custom)0 to < 3.8.1 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-354 CWE-354: Improper Validation of Integrity Check Value
References
6- https://github.com/cryptocoinjs/secp256k1-node/blob/6d3474b81d073cc9c8cc8cfadb580c84f8df5248/lib/elliptic.js#L17-L19
- https://github.com/cryptocoinjs/secp256k1-node/blob/6d3474b81d073cc9c8cc8cfadb580c84f8df5248/lib/elliptic.js#L37-L39
- https://github.com/cryptocoinjs/secp256k1-node/commit/8bd6446e000fa59df3cda0ae3e424300747ea5ed
- https://github.com/cryptocoinjs/secp256k1-node/commit/9a15fff274f83a6ec7f675f1121babcc0c42292f
- https://github.com/cryptocoinjs/secp256k1-node/commit/e256905ee649a7caacc251f7c964667195a52221
- https://github.com/cryptocoinjs/secp256k1-node/security/advisories/GHSA-584q-6j8j-r5pm
Provider assertions
2GitHub_M · cna
secp256k1-node vulnerable to private key extraction over ECDH
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 4f9c93835a12f4b28e66ff781435e28259a9841310337557f66ba6e4d0b775da
- Ingested
- 23 Sep 2026, 08:28:51 UTC
- Source record
- Official CVE record