Live threats

All CVEs / cryptocoinjs

CVE-2024-48930cryptocoinjs secp256k1-node

High 8.7 No auth needed

Priority
67
CVSS 4.0
8.7
EPSS
0.5%
probability of exploitation in 30 days · percentile 39
Auth required
No
Published
Oct 21, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-354
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for secp256k1-node.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm secp256k1 ≥ 5.0.0 < 5.0.1 5.0.1 npm install secp256k1@5.0.1
npm secp256k1 ≥ 4.0.0 < 4.0.4 4.0.4 npm install secp256k1@4.0.4
npm secp256k1 < 3.8.1 3.8.1 npm install secp256k1@3.8.1

Per OSV / GitHub Advisories (GHSA-584q-6j8j-r5pm). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.