CVE-2024-48930

HIGH

secp256k1-node <5.0.1-3.8.1 - Info Disclosure

Title source: llm
STIX 2.1

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.

Scores

CVSS v4 8.7
EPSS 0.0022
EPSS Percentile 44.1%
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

CISA SSVC

Vulnrichment
Exploitation poc
Automatable yes
Technical Impact partial

Details

CWE
CWE-354
Status published
Products (4)
cryptocoinjs/secp256k1-node < 3.8.1
cryptocoinjs/secp256k1-node = 5.0.0
cryptocoinjs/secp256k1-node >= 4.0.0, < 4.0.4
npm/secp256k1 5.0.0 - 5.0.1npm
Published Oct 21, 2024
Tracked Since Feb 18, 2026