CVE-2023-49292: Github.com/ecies/go/v2 Github.com/ecies/go Vulnerable To Possible Private Vulnerability
HIGHCVE-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.
CVE-2023-49292 at a Glance
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).
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.
Upgrade github.com/ecies/go/v2 to 2.0.8
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
CVE-2023-49292 Affected Github.com/ecies/go/v2 Versions
1 component(s)| 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?
Which Github.com/ecies/go/v2 versions are affected?
What version fixes CVE-2023-49292?
Is github.com/ecies/go/v2 affected?
What is the CVSS score of CVE-2023-49292?
What CWE is associated with CVE-2023-49292?
How can I check Go dependencies for CVE-2023-49292?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}