# CVE-2024-48930: secp256k1-node vulnerable to private key extraction over ECDH

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 36% of CVEs (2026-12-01)
- Published: 2024-10-21T15:41:41.999Z
- Modified: 2026-06-17T07:59:04.443Z
- Also known as: GHSA-584q-6j8j-r5pm
- Weaknesses: CWE-200, CWE-354
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- cryptocoinjs secp256k1-node: = 5.0.0; >= 4.0.0, < 4.0.4; < 3.8.1
- secp256k1-node_project secp256k1-node: 5.0.0; from 4.0.0 before 4.0.4; before 3.8.1
- secp256k1 (npm): from 5.0.0 before 5.0.1; from 4.0.0 before 4.0.4; before 3.8.1

## Every score

- GitHub_M: CVSS:4.0 8.7 High `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`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/cryptocoinjs/secp256k1-node/security/advisories/GHSA-584q-6j8j-r5pm> (web)
- <https://github.com/cryptocoinjs/secp256k1-node/commit/8bd6446e000fa59df3cda0ae3e424300747ea5ed> (web)
- <https://github.com/cryptocoinjs/secp256k1-node/commit/9a15fff274f83a6ec7f675f1121babcc0c42292f> (web)
- <https://github.com/cryptocoinjs/secp256k1-node/commit/e256905ee649a7caacc251f7c964667195a52221> (web)
- <https://github.com/cryptocoinjs/secp256k1-node/blob/6d3474b81d073cc9c8cc8cfadb580c84f8df5248/lib/elliptic.js#L17-L19> (web)
- <https://github.com/cryptocoinjs/secp256k1-node/blob/6d3474b81d073cc9c8cc8cfadb580c84f8df5248/lib/elliptic.js#L37-L39> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-48930> (advisory)
- <https://github.com/cryptocoinjs/secp256k1-node> (package)

## Sources

- CVE List: [CVE-2024-48930](https://www.cve.org/CVERecord?id=CVE-2024-48930), CVE Terms of Use, modified 2024-10-21
- GitHub Advisory Database: [GHSA-584q-6j8j-r5pm](https://github.com/advisories/GHSA-584q-6j8j-r5pm), CC-BY-4.0, modified 2024-10-21
- NVD: [CVE-2024-48930](https://nvd.nist.gov/vuln/detail/CVE-2024-48930), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-48930 · Whole record: https://cve.day/CVE-2024-48930.json · Rebuilt by cve.day 2026-11-25T22:58:47.010Z
