# CVE-2024-49364: tiny-secp256k1 vulnerable to private key extraction when signing a malicious JSON-stringifyable message in bundled environment

- Severity: High 8.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.49%, higher than 43% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-06-30T17:43:39.000Z
- Modified: 2026-06-17T07:59:46.300Z
- Also known as: GHSA-7mc2-6phr-23xc
- Weaknesses: CWE-522
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- bitcoinjs tiny-secp256k1: < 1.1.7
- tiny-secp256k1 (npm): before 1.1.7

## Every score

- GitHub_M: CVSS:4.0 8.1 High `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`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/bitcoinjs/tiny-secp256k1/security/advisories/GHSA-7mc2-6phr-23xc> (exploit, web)
- <https://github.com/bitcoinjs/tiny-secp256k1/pull/140> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-49364> (advisory)
- <https://github.com/bitcoinjs/tiny-secp256k1> (package)

## Sources

- CVE List: [CVE-2024-49364](https://www.cve.org/CVERecord?id=CVE-2024-49364), CVE Terms of Use, modified 2025-07-01
- GitHub Advisory Database: [GHSA-7mc2-6phr-23xc](https://github.com/advisories/GHSA-7mc2-6phr-23xc), CC-BY-4.0, modified 2025-07-01
- NVD: [CVE-2024-49364](https://nvd.nist.gov/vuln/detail/CVE-2024-49364), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-49364 · Whole record: https://cve.day/CVE-2024-49364.json · Rebuilt by cve.day 2026-11-25T22:58:52.793Z
