CVE-2024-49364

Source
https://cve.org/CVERecord?id=CVE-2024-49364
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-49364.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-49364
Aliases
Published
2025-07-01T02:07:06.631Z
Modified
2026-04-10T05:18:28.066980Z
Severity
  • 8.1 (High) CVSS_V4 - 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 CVSS Calculator
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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49364.json",
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-522"
    ]
}
References

Affected packages

Git / github.com/bitcoinjs/tiny-secp256k1

Affected ranges

Type
GIT
Repo
https://github.com/bitcoinjs/tiny-secp256k1
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "fixed": "1.1.7"
        }
    ]
}

Affected versions

v0.*
v0.0.2
v0.0.3
v0.0.4
v0.0.5
v0.0.6
v0.0.7
v0.1.0
v0.2.2
v1.*
v1.0.1
v1.1.1
v1.1.2
v1.1.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-49364.json"