Advisory

GO-2023-2380

Also known as: CVE-2023-49292, GHSA-8j98-cjfr-qx3h

Summary

Private key recovery via invalid curve point in github.com/ecies/go/v2

Details

An attacker may be able to recover private keys due to a bug in the ECDH function.

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

A workaround is to manually check that the public key is valid by calling the IsOnCurve function from the secp256k1 libraries.

Severity

Not rated by the source.

Dates

Published
2023-12-11 15:30 UTC
Modified
2024-05-20 16:03 UTC

Affected packages and fixes

github.com/ecies/go/v2

Go · All systems

Affected

  • introduced 0, fixed 2.0.8 (semver)

Fixed versions

2.0.8

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences