{"id":"CVE-2024-49364","published":"2025-07-01T02:07:06Z","modified":"2025-07-01T13:16:57Z","title":"tiny-secp256k1 vulnerable to private key extraction when signing a malicious JSON-stringifyable message in bundled…","vendor":"bitcoinjs","product":"tiny-secp256k1","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00677,"percentile":0.47381,"provenance":"source"},"cwes":[{"id":"CWE-522","name":"Insufficiently Protected Credentials"}],"references":[{"url":"https://github.com/bitcoinjs/tiny-secp256k1/security/advisories/GHSA-7mc2-6phr-23xc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/bitcoinjs/tiny-secp256k1/pull/140","tags":["x_refsource_MISC"]}],"priority":{"score":15.1,"factors":[{"name":"EPSS percentile","points":9.48},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"bitcoinjs","affectedVersions":[{"vendor":"bitcoinjs","product":"tiny-secp256k1","versions":["< 1.1.7"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2025-07-01T13:16:31.667933Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"tiny-secp256k1","vulnerableRanges":["<1.1.7"],"patched":["1.1.7"],"from":["GHSA-7mc2-6phr-23xc"],"provenance":"source"}],"summary":{"text":"tiny-secp256k1, a secp256k1 native/JS wrapper from bitcoinjs, contains a flaw in versions before 1.1.7 where the Buffer.isBuffer check can be bypassed in environments where global Buffer is the NPM buffer package, causing nonce (k) reuse during signing. An attacker can extract the private key by getting the signing code to process a malicious JSON-stringifiable object, with network access and no authentication or user interaction required, and this affects only environments where require('buffer') is the NPM buffer package.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:50:16Z"},"euvd":{"id":"EUVD-2024-54990","exploited":false,"provenance":"source"}}