{"answers":{"affected":"6 open source packages ship an affected version, including secp256k1.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-48930 exists.","fix":"Upgrade secp256k1 to a fixed version for your release line: 3.8.1, 4.0.4 or 5.0.1.","what":"CVE-2024-48930 is a high-severity vulnerability in cryptocoinjs secp256k1-node, published on 21 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-48930 and fix it if it is affected.\n\nWhat it is: CVE-2024-48930 is a high-severity vulnerability in cryptocoinjs secp256k1-node, published on 21 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-48930 exists.\n\nAffected packages and fixed versions:\n- secp256k1 (npm): affected all versions; fixed in 3.8.1\n- secp256k1 (npm): affected all versions; fixed in 3.8.1\n- secp256k1 (npm): affected from 4.0.0; fixed in 4.0.4\n- secp256k1 (npm): affected from 4.0.0; fixed in 4.0.4\n- secp256k1 (npm): affected from 5.0.0; fixed in 5.0.1\n- secp256k1 (npm): affected from 5.0.0; fixed in 5.0.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-48930/ (Markdown: https://insights.sbomify.com/CVE-2024-48930/index.md)","id":"CVE-2024-48930","markdown":"https://insights.sbomify.com/CVE-2024-48930/index.md","name":"CVE-2024-48930","record":{"aliases":["GHSA-584q-6j8j-r5pm"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"secp256k1 Node.js binding","requires_auth":"none","summary":"An attacker can extract private keys by exploiting missing curve validation in compressed public key loading during ECDH sessions.","user_interaction":"not_required","vuln_class":"weak_cryptography"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-354","name":"Improper Validation of Integrity Check Value"}],"description":"secp256k1-node is a Node.js binding for an Optimized C library for EC operations on curve secp256k1. In `elliptic`-based version, `loadUncompressedPublicKey` has a check that the public key is on the curve. Prior to versions 5.0.1, 4.0.4, and 3.8.1, however, `loadCompressedPublicKey` is missing that check. That allows the attacker to use public keys on low-cardinality curves to extract enough information to fully restore the private key from as little as 11 ECDH sessions, and very cheaply on compute power. Other operations on public keys are also affected, including e.g. `publicKeyVerify()` incorrectly returning `true` on those invalid keys, and e.g. `publicKeyTweakMul()` also returning predictable outcomes allowing to restore the tweak. Versions 5.0.1, 4.0.4, and 3.8.1 contain a fix for the issue.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"secp256k1-node vulnerable to private key extraction over ECDH","id":"CVE-2024-48930","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"weak_cryptography","year":"2024"},"n_packages":6,"n_references":6,"next":{"headline":"ZimaOS Arbitrary File Read via Parameter Manipulation","id":"CVE-2024-48931"},"packages":[{"ecosystem":"npm","fixed":["3.8.1"],"introduced":["0"],"last_affected":[],"package":"secp256k1","purl":null,"source":"GHSA-584q-6j8j-r5pm"},{"ecosystem":"npm","fixed":["3.8.1"],"introduced":["0"],"last_affected":[],"package":"secp256k1","purl":"pkg:npm/secp256k1","source":"GHSA-584q-6j8j-r5pm"},{"ecosystem":"npm","fixed":["4.0.4"],"introduced":["4.0.0"],"last_affected":[],"package":"secp256k1","purl":null,"source":"GHSA-584q-6j8j-r5pm"},{"ecosystem":"npm","fixed":["4.0.4"],"introduced":["4.0.0"],"last_affected":[],"package":"secp256k1","purl":"pkg:npm/secp256k1","source":"GHSA-584q-6j8j-r5pm"},{"ecosystem":"npm","fixed":["5.0.1"],"introduced":["5.0.0"],"last_affected":[],"package":"secp256k1","purl":null,"source":"GHSA-584q-6j8j-r5pm"},{"ecosystem":"npm","fixed":["5.0.1"],"introduced":["5.0.0"],"last_affected":[],"package":"secp256k1","purl":"pkg:npm/secp256k1","source":"GHSA-584q-6j8j-r5pm"}],"prev":{"headline":"Umbraco CMS Has Incomplete Server Termination During Explicit Sign-Out","id":"CVE-2024-48929"},"products":["secp256k1-node"],"published":"2024-10-21","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-10-21","vendors":["cryptocoinjs"]},"summary":"An attacker can extract private keys by exploiting missing curve validation in compressed public key loading during ECDH sessions.","url":"https://insights.sbomify.com/CVE-2024-48930/"}