CVE-2024-48930

High

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.

SeverityHigh
CVSS8.7
Exploit probability—
ProductSecp256k1
PublishedOct 21, 2024
First seenOct 21, 2024
Weakness typeCWE-354CWE-354

How to fix

Update
  • secp256k15.0.1, 4.0.4, 3.8.1 or later

Affected products

ProductAffected versionsFixed in
secp256k1npm5.0.0 ≤ v < 5.0.1, 4.0.0 ≤ v < 4.0.4, v < 3.8.15.0.1, 4.0.4, 3.8.1

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2024-48930 · Secp256k1 · Dark Radar