{"id":"CVE-2024-48930","published":"2024-10-21T15:41:41Z","modified":"2024-10-21T16:44:50Z","title":"secp256k1-node vulnerable to private key extraction over ECDH","vendor":"cryptocoinjs","product":"secp256k1-node","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00406,"percentile":0.35779,"provenance":"source"},"cwes":[{"id":"CWE-354","name":"Improper Validation of Integrity Check Value"}],"references":[{"url":"https://github.com/cryptocoinjs/secp256k1-node/security/advisories/GHSA-584q-6j8j-r5pm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/cryptocoinjs/secp256k1-node/commit/8bd6446e000fa59df3cda0ae3e424300747ea5ed","tags":["x_refsource_MISC"]},{"url":"https://github.com/cryptocoinjs/secp256k1-node/commit/9a15fff274f83a6ec7f675f1121babcc0c42292f","tags":["x_refsource_MISC"]},{"url":"https://github.com/cryptocoinjs/secp256k1-node/commit/e256905ee649a7caacc251f7c964667195a52221","tags":["x_refsource_MISC"]},{"url":"https://github.com/cryptocoinjs/secp256k1-node/blob/6d3474b81d073cc9c8cc8cfadb580c84f8df5248/lib/elliptic.js#L17-L19","tags":["x_refsource_MISC"]},{"url":"https://github.com/cryptocoinjs/secp256k1-node/blob/6d3474b81d073cc9c8cc8cfadb580c84f8df5248/lib/elliptic.js#L37-L39","tags":["x_refsource_MISC"]}],"priority":{"score":13.2,"factors":[{"name":"EPSS percentile","points":7.16},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"cryptocoinjs","affectedVersions":[{"vendor":"cryptocoinjs","product":"secp256k1-node","versions":["= 5.0.0",">= 4.0.0, < 4.0.4","< 3.8.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-10-21T16:36:50.720373Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"secp256k1","vulnerableRanges":[">=5.0.0, <5.0.1",">=4.0.0, <4.0.4","<3.8.1"],"patched":["5.0.1","4.0.4","3.8.1"],"from":["GHSA-584q-6j8j-r5pm"],"provenance":"source"}],"summary":{"text":"The secp256k1-node Node.js binding, which wraps an optimized C library for secp256k1 elliptic curve operations, fails to check that compressed public keys lie on the curve in its loadCompressedPublicKey function, although the uncompressed path performs that check. An attacker with network access and no authentication or user interaction can submit crafted public keys on low-cardinality curves to recover a victim's private key from as few as 11 ECDH sessions, and related operations such as publicKeyVerify() and publicKeyTweakMul() also mishandle these invalid keys.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:40:20Z"},"euvd":{"id":"EUVD-2024-2944","exploited":false,"provenance":"source"}}