Vulnerability

CVE-2024-48930

highCVSS 4.0 8.7Published 21 Oct 2024

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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.

Affected products

The NVD has not attached product data to this record yet; the description names what is affected.

Weakness type

References

  • github.com /cryptocoinjs/secp256k1-node/blob/6d3474b81d073cc9c8cc8cfad…
  • github.com /cryptocoinjs/secp256k1-node/blob/6d3474b81d073cc9c8cc8cfad…
  • github.com /cryptocoinjs/secp256k1-node/commit/8bd6446e000fa59df3cda0a…
  • github.com /cryptocoinjs/secp256k1-node/commit/9a15fff274f83a6ec7f675f…
  • github.com /cryptocoinjs/secp256k1-node/commit/e256905ee649a7caacc251f…
  • github.com /cryptocoinjs/secp256k1-node/security/advisories/GHSA-584q-…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning