CVE-2024-42459: Elliptic Elliptic's EDDSA Missing Signature Length Vulnerability
LOWCVE-2024-42459 is a LOW (CVSS 5.3) elliptic's eddsa missing signature length vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Elliptic libraries in the npm ecosystem. The issue involves elliptic's eddsa missing signature length check. Remediation is available by upgrading affected packages to version 6.5.7.
CVE-2024-42459 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-42459
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-42459, 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-347: Improper Verification of Cryptographic Signature, where the product does not verify, or incorrectly verifies, the cryptographic signature for 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-42459 Affected Elliptic Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
elliptic
|
npm |
≥ 4.0.0
< 6.5.7
|
6.5.7
|
References
Frequently Asked Questions
What is CVE-2024-42459?
Which Elliptic versions are affected?
What version fixes CVE-2024-42459?
Is elliptic affected?
What is the CVSS score of CVE-2024-42459?
What CWE is associated with CVE-2024-42459?
How can I check npm dependencies for CVE-2024-42459?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-f7q4-pwc6-w24p",
"modified" : "2025-11-04T16:51:32Z",
"published" : "2024-08-02T09:31:35Z",
"aliases" : [ "CVE-2024-42459" ],
"summary" : "Elliptic's EDDSA missing signature length check",
"details" : "In the Elliptic package 6.5.6 for Node.js, EDDSA signature malleability occurs because there is a missing signature length check, and thus zero-valued bytes can be removed or appended.",
"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" : "4.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-42459"
}, {
"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/c0690b36be043ee73c1780ae4b7df48632b11cf9"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/indutny/elliptic"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20241004-0005"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-347" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2024-08-05T13:21:11Z",
"nvd_published_at" : "2024-08-02T07:16:10Z"
}
}