Vulnerabilities in pkg:golang/github.com/ecies/go/v2

PACKAGE
Advisory Identifier: GHSA-8j98-cjfr-qx3h
Advisory Summary

CVE-2023-49292 is a HIGH (CVSS 8.1) github.com/ecies/go vulnerable to possible private vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Github.com/ecies/go/v2 libraries in the Go ecosystem. The issue involves github.com/ecies/go vulnerable to possible private key restoration. Remediation is available by upgrading affected packages to version 2.0.8.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

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

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/ecies/go/v2. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-8j98-cjfr-qx3h CVE-2023-49292 HIGH github.com/ecies/go vulnerable to possible private key restoration

CVE-2023-49292 at a Glance

CVE Identifier CVE-2023-49292
GHSA Identifier GHSA-8j98-cjfr-qx3h
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Github.com/ecies/go/v2
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 8.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2023-49292

To remediate this vulnerability, upgrade all affected Github.com/ecies/go/v2 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/ecies/go/v2 fixed: 2.0.8
Upgrade github.com/ecies/go/v2 to 2.0.8
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/ecies/go/v2

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-49292, inspect your project dependencies for Github.com/ecies/go/v2:

inspect dependencies for github.com/ecies/go/v2

Analyze the terminal output to locate any version of Github.com/ecies/go/v2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.8), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Github.com/ecies/go/v2, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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

CVE-2023-49292 Affected Github.com/ecies/go/v2 Versions

1 component(s)
Fixed Versions:
2.0.8
Product / Package Ecosystem Affected Versions Fixed Version
github.com/ecies/go/v2
Go
< 2.0.8
2.0.8

References

Frequently Asked Questions

What is CVE-2023-49292?
CVE-2023-49292 is a security vulnerability in Github.com/ecies/go/v2 involving github.com/ecies/go vulnerable to possible private key restoration under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Github.com/ecies/go/v2 versions are affected?
Affected versions include releases prior to 2.0.8 across affected packages: github.com/ecies/go/v2.
What version fixes CVE-2023-49292?
Upgrading to 2.0.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/ecies/go/v2 affected?
Yes, github.com/ecies/go/v2 is affected in releases prior to 2.0.8. Upgrade your dependency to 2.0.8 or later.
What is the CVSS score of CVE-2023-49292?
CVE-2023-49292 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2023-49292?
CVE-2023-49292 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check Go dependencies for CVE-2023-49292?
Run the dependency tree command: 'inspect dependencies for github.com/ecies/go/v2'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-8j98-cjfr-qx3h",
  "modified" : "2023-12-05T23:30:56Z",
  "published" : "2023-12-05T23:30:56Z",
  "aliases" : [ "CVE-2023-49292" ],
  "summary" : "github.com/ecies/go vulnerable to possible private key restoration",
  "details" : "### 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\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/ecies/go/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.8"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ecies/go/security/advisories/GHSA-8j98-cjfr-qx3h"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-49292"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ecies/go/commit/c6e775163866d6ea5233eb8ec8530a9122101ebd"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ashutosh1206/Crypton/blob/master/Diffie-Hellman-Key-Exchange/Attack-Invalid-Curve-Point/README.md"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ecies/go"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ecies/go/releases/tag/v2.0.8"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-12-05T23:30:56Z",
    "nvd_published_at" : "2023-12-05T00:15:09Z"
  }
}