CVE-2024-49364

High

Description

tiny-secp256k1 is a tiny secp256k1 native/JS wrapper. Prior to version 1.1.7, a private key can be extracted on signing a malicious JSON-stringifiable object, when global Buffer is the buffer package. This affects only environments where require('buffer') is the NPM buffer package. The Buffer.isBuffer check can be bypassed, resulting in k reuse for different messages, leading to private key extraction over a single invalid message (and a second one for which any message/signature could be taken, e.g. previously known valid one). This issue has been patched in version 1.1.7.

SeverityHigh
CVSS8.1
Exploit probability—
ProductTiny-secp256k1
PublishedJul 1, 2025
First seenJul 1, 2025
Weakness typeCWE-522CWE-522

How to fix

Update
  • tiny-secp256k11.1.7 or later

Affected products

ProductAffected versionsFixed in
tiny-secp256k1npmv < 1.1.71.1.7

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.