Quick answers
- Is CVE-2024-42461 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2024-42461 being exploited in the wild.
- How severe is CVE-2024-42461?
- Low severity, with a CVSS score of 3.1, published 2 August 2024.
- Which products and versions are affected?
- elliptic (npm) SEMVER:introduced=5.2.1,fixed=6.5.7.
- Is there a fix for CVE-2024-42461?
- Yes. elliptic (npm): upgrade to 6.5.7 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2024-42461 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2024-42461?
- Check whether you run elliptic (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- elliptic (npm): upgrade to 6.5.7 or later
npm install elliptic@6.5.7
Technical details
The vulnerability is a signature malleability issue (CWE-347) in the Elliptic library's ECDSA signature parsing code. The root cause is missing validation checks in the DER signature decoding logic (lib/elliptic/ec/signature.js and lib/elliptic/eddsa/signature.js). Specifically, the code accepts BER-encoded signatures with leading zeros in length sequences, and fails to enforce that the leading bit of r and s values be zero as required by DER/ASN.1 encoding. No authentication is required—any application verifying ECDSA signatures using Elliptic is affected if it trusts non-canonical encodings. An attacker can create multiple valid signatures for the same message and private key, enabling signature confusion attacks or bypassing signature-verification-based access controls. The vulnerability was patched in version 6.5.7 (released August 2024); versions 5.2.1 through 6.5.6 are vulnerable.
Affected products
- indutny elliptic 5.2.1 through 6.5.6
Identifiers
- CVE-2024-42461
- GHSA-49q7-c7j4-3p7m
Timeline
- 2024-08-02: disclosed: CVE-2024-42461 published
- 2024-08-14: patched: Patch merged in v6.5.7 (indutny/elliptic#317)