Advisory

GHSA-8j98-cjfr-qx3h

Also known as: CVE-2023-49292, GO-2023-2380

Summary

github.com/ecies/go vulnerable to possible private key restoration

Details

Impact
If functions Encapsulate(), Decapsulate() and ECDH() could be called by an attacker, he could recover any private key that he interacts with.

Patches
Patched in v2.0.8

Workarounds
You could manually check public key by calling IsOnCurve() function from secp256k1 libraries.

References
https://github.com/ashutosh1206/Crypton/blob/master/Diffie-Hellman-Key-Exchange/Attack-Invalid-Curve-Point/README.md

Severity

High Basis: The source's own band: HIGH

Dates

Published
2023-12-05 23:30 UTC
Modified
2023-12-11 15:56 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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences