{"id":"CVE-2024-49364","aliases":["GHSA-7mc2-6phr-23xc"],"url":"https://o3.security/vulnerability/CVE-2024-49364","summary":"tiny-secp256k1 vulnerable to private key extraction when signing a malicious JSON-stringifyable message in bundled environment","details":"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.","published":"2025-07-01T02:07:06.631Z","modified":"2026-07-15T01:49:00.821615408Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"tiny-secp256k1","fixedVersion":"1.1.7"}],"fix":{"url":"https://github.com/bitcoinjs/tiny-secp256k1/pull/140","label":"bitcoinjs/tiny-secp256k1#140"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49364.json"},{"type":"ADVISORY","url":"https://github.com/bitcoinjs/tiny-secp256k1/security/advisories/GHSA-7mc2-6phr-23xc"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-49364"},{"type":"FIX","url":"https://github.com/bitcoinjs/tiny-secp256k1/pull/140"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-15T01:49:00.821615408Z"}}