GHSA-434g-2637-qmqr

Elliptic's verify function omits uniqueness validation

At a glance

Published
Updated
CVE
CVE-2024-48949
CVSS_V3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
CVSS_V4
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U

Description

The Elliptic package 6.5.5 for Node.js for EDDSA implementation does not perform the required check if the signature proof(s) is within the bounds of the order n of the base point of the elliptic curve, leading to signature malleability. Namely, the `verify` function in `lib/elliptic/eddsa/index.js` omits `sig.S().gte(sig.eddsa.curve.n) || sig.S().isNeg()` validation. This vulnerability could have a security-relevant impact if an application relies on the uniqueness of a signature.

Affected packages

PackageVersions
npm · ellipticintroduced 0, fixed 6.5.6

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database