CVE-2024-42460: Elliptic Elliptic's ECDSA Missing Check For Vulnerability
LOWCVE-2024-42460 is a LOW (CVSS 5.3) elliptic's ecdsa missing check for vulnerability (CWE-130: Improper Handling of Length Parameter Inconsistency) affecting Elliptic libraries in the npm ecosystem. The issue involves elliptic's ecdsa missing check for whether leading bit of r and s is zero. Remediation is available by upgrading affected packages to version 6.5.7.
CVE-2024-42460 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2024-42460
To remediate this vulnerability, upgrade all affected Elliptic dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install elliptic@6.5.7
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls elliptic
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2024-42460, inspect your project dependencies using npm:
npm ls elliptic
Analyze the terminal output to locate any version of Elliptic in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.5.7), your application is affected.
Note: The npm ls elliptic command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-130: Improper Handling of Length Parameter Inconsistency, where the product parses a formatted message or structure, but it does not handle or incorrectly handles a length field that is inconsistent with the actual length of the associated data. In Elliptic, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-42460 Affected Elliptic Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
elliptic
|
npm |
≥ 2.0.0
< 6.5.7
|
6.5.7
|
References
Frequently Asked Questions
What is CVE-2024-42460?
Which Elliptic versions are affected?
What version fixes CVE-2024-42460?
Is elliptic affected?
What is the CVSS score of CVE-2024-42460?
What CWE is associated with CVE-2024-42460?
How can I check npm dependencies for CVE-2024-42460?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-977x-g7h5-7qgw",
"modified" : "2025-11-04T16:52:43Z",
"published" : "2024-08-02T09:31:35Z",
"aliases" : [ "CVE-2024-42460" ],
"summary" : "Elliptic's ECDSA missing check for whether leading bit of r and s is zero",
"details" : "In the Elliptic package 6.5.6 for Node.js, ECDSA signature malleability occurs because there is a missing check for whether the leading bit of r and s is zero.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "elliptic"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "6.5.7"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 6.5.6"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-42460"
}, {
"type" : "WEB",
"url" : "https://github.com/indutny/elliptic/pull/317"
}, {
"type" : "WEB",
"url" : "https://github.com/indutny/elliptic/commit/accb61e9c1a005e5c8ff96a8b33893100bb42d11"
}, {
"type" : "WEB",
"url" : "https://github.com/indutny/elliptic/commit/b6ff1758d9a6d1a7aec177ff6df9f586492a6315"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/indutny/elliptic"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20241004-0005"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-130" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2024-08-05T13:51:05Z",
"nvd_published_at" : "2024-08-02T07:16:10Z"
}
}