{"id":"CVE-2023-49292","aliases":["CVE-2023-49292","GHSA-8j98-cjfr-qx3h","GO-2023-2380"],"related":[],"kind":"vulnerability","state":"published","title":"Possible private key restoration in go package github.com/ecies/go","summary":"ecies is an Elliptic Curve Integrated Encryption Scheme for secp256k1 in Golang. If funcations Encapsulate(), Decapsulate() and ECDH() could be called by an attacker, they could recover any private key that interacts with it. This vulnerability was patched in 2.0.8. Users are advised to upgrade.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"ecies is an Elliptic Curve Integrated Encryption Scheme for secp256k1 in Golang. If funcations Encapsulate(), Decapsulate() and ECDH() could be called by an attacker, they could recover any private key that interacts with it. This vulnerability was patched in 2.0.8. Users are advised to upgrade.","source":"cvelist"},{"lang":"en","text":"### Impact\nIf functions `Encapsulate()`, `Decapsulate()` and `ECDH()` could be called by an attacker, he could recover any private key that he interacts with.\n\n### Patches\nPatched in v2.0.8\n\n### Workarounds\nYou could manually check public key by calling `IsOnCurve()` function from secp256k1 libraries.\n\n### References\nhttps://github.com/ashutosh1206/Crypton/blob/master/Diffie-Hellman-Key-Exchange/Attack-Invalid-Curve-Point/README.md","format":"markdown","source":"ghsa"},{"lang":"en","text":"An attacker may be able to recover private keys due to a bug in the ECDH function.\n\nThe library does not check whether the provided public key is on the curve, which means that an attacker can create a public key that is not on the curve and use it to recover the private key.\n\nA workaround is to manually check that the public key is valid by calling the IsOnCurve function from the secp256k1 libraries.","format":"markdown","source":"go"},{"lang":"es","text":"ecies es un esquema de cifrado integrado de curva elíptica para secp256k1 en Golang. Si un atacante pudiera llamar a las funciones Encapsulate(), Decapsulate() y ECDH(), podría recuperar cualquier clave privada que interactúe con ellas. Esta vulnerabilidad fue parcheada en 2.0.8. Se recomienda a los usuarios que actualicen.","source":"nvd"}],"published":"2023-12-04T23:12:03.059Z","modified":"2026-06-17T06:35:47.060Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N","score":4.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N","score":4.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"}],"cwes":["CWE-200"],"affected":[{"ranges":[{"version":"< 2.0.8","status":"affected"}],"vendor":"ecies","product":"go","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.0.8"}],"ecosystem":"Go","package":"github.com/ecies/go/v2","purl":"pkg:golang/github.com/ecies/go/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.0.8"}],"ecosystem":"Go","package":"github.com/ecies/go/v2","purl":"pkg:golang/github.com/ecies/go/v2","source":"go"},{"ranges":[{"status":"affected","fixed":"2.0.8"}],"vendor":"ecies","product":"go","cpe":"cpe:2.3:a:ecies:go:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/ecies/go/security/advisories/GHSA-8j98-cjfr-qx3h","tags":["advisory","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/ecies/go/commit/c6e775163866d6ea5233eb8ec8530a9122101ebd","tags":["fix","patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/ashutosh1206/Crypton/blob/master/Diffie-Hellman-Key-Exchange/Attack-Invalid-Curve-Point/README.md","tags":["exploit","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/ecies/go/releases/tag/v2.0.8","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-49292","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ecies/go","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-49292","url":"https://www.cve.org/CVERecord?id=CVE-2023-49292","licence":"CVE Terms of Use","modified":"2024-08-02T21:53:44.990Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8j98-cjfr-qx3h","url":"https://github.com/advisories/GHSA-8j98-cjfr-qx3h","licence":"CC-BY-4.0","modified":"2023-12-11T15:56:20.742Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2023-2380","url":"https://pkg.go.dev/vuln/GO-2023-2380","licence":"CC-BY-4.0","modified":"2024-05-20T16:03:47.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-49292","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-49292","licence":"Public domain","modified":"2026-06-17T06:35:47.060Z"}],"updatedAt":"2026-11-25T22:58:30.947Z","epss":{"score":0.00335,"percentile":0.28844,"date":"2026-12-01T12:00:22.000Z"}}