GO-2023-2380

    Dashboard / Vulnerabilities / GO-2023-2380

    GO-2023-2380

    Published: 11 Dec 2023Last Modified: 20 May 2024

    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.

    Affected packages

    Package

    Name: github.com/ecies/go/v2

    Purl: pkg:golang/github.com/ecies/go/v2

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -2.0.8

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High