GHSA-r9p9-mrjm-926w

Suggest an improvement
Source
https://github.com/advisories/GHSA-r9p9-mrjm-926w
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/03/GHSA-r9p9-mrjm-926w/GHSA-r9p9-mrjm-926w.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-r9p9-mrjm-926w
Aliases
Published
2021-03-08T16:06:50Z
Modified
2025-01-08T07:27:09.070940Z
Severity
  • 6.8 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N CVSS Calculator
Summary
Elliptic Uses a Broken or Risky Cryptographic Algorithm
Details

The npm package elliptic before version 6.5.4 are vulnerable to Cryptographic Issues via the secp256k1 implementation in elliptic/ec/key.js. There is no check to confirm that the public key point passed into the derive function actually exists on the secp256k1 curve. This results in the potential for the private key used in this implementation to be revealed after a number of ECDH operations are performed.

Database specific
{
    "cwe_ids": [
        "CWE-327"
    ],
    "github_reviewed_at": "2021-03-08T16:02:43Z",
    "github_reviewed": true,
    "nvd_published_at": "2021-02-02T19:15:00Z",
    "severity": "MODERATE"
}
References

Affected packages

npm / elliptic

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.5.4