CVE-2024-48948: Valid ECDSA signatures erroneously rejected in Elliptic
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.
Published Oct 15, 2024 · Updated Nov 27, 2025
Affected packages
elliptic
- Ecosystem
- npm
- Affected
- < 6.6.0
- Fixed in
- 6.6.0
- Check
npm ls elliptic
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to martincostello, IchordeDionysos, tal-sealsecurity.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-48948
- https://github.com/indutny/elliptic/issues/321
- https://github.com/indutny/elliptic/pull/322
- https://github.com/indutny/elliptic/commit/34c853478cec1be4e37260ed2cb12cdbdc6402cf
- https://security.netapp.com/advisory/ntap-20241220-0004
- https://blog.trailofbits.com/2025/11/18/we-found-cryptography-bugs-in-the-elliptic-library-using-wycheproof
- https://github.com/advisories/GHSA-fc9h-whq2-v747
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2025-14505
Elliptic Uses a Cryptographic Primitive with a Risky Implementation
low5.6No fixJan 8, 2026GHSA-vjh7-7g9h-fjfh
Elliptic's private key extraction in ECDSA upon signing a malformed input (e.g. a string)
critical9.0Feb 12, 2025CVE-2024-48949
Elliptic's verify function omits uniqueness validation
low5.3Oct 10, 2024CVE-2024-42459
Elliptic's EDDSA missing signature length check
low5.3Aug 2, 2024CVE-2024-42460
Elliptic's ECDSA missing check for whether leading bit of r and s is zero
low5.3Aug 2, 2024CVE-2024-42461
Elliptic allows BER-encoded signatures
low5.3Aug 2, 2024
