GitHub Advisoryadvisory · npm

GHSA-fc9h-whq2-v747 Valid ECDSA signatures erroneously rejected in Elliptic

LOW Published 2024-10-15 Modified 2025-11-27 Official page ↗
Aliases
CVE-2024-48948
Ecosystem
npm
Packages
elliptic
Severity
Low
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
Weaknesses
CWE-347
Reviewed
2024-10-17

Affected packages

• npm elliptic: < 6.6.0 → fixed in 6.6.0

Description

The Elliptic prior to 6.6.0 for Node.js, in its for ECDSA implementation, does not correctly verify valid signatures if the hash contains at least four leading 0 bytes and when the order of the elliptic curve's base point is smaller than the hash, because of an _truncateToN anomaly. This leads to valid signatures being rejected. Legitimate transactions or communications may be incorrectly flagged as invalid.

Related

Alias · CVE (1)

  • CVE-2024-48948 The Elliptic package 6.5.7 for Node.js, in its for ECDSA implementation, does not correctly verify valid signatures if the hash contains at… vulnerability

Weakness · CWE (1)

  • CWE-347 Improper Verification of Cryptographic Signature weakness

References