CVE-2024-1631 Details
Description
Impact: The library offers a function to generate an ed25519 key pair via Ed25519KeyIdentity.generate with an optional param to provide a 32 byte seed value, which will then be used as the secret key. When no seed value is provided, it is expected that the library generates the secret key using secure randomness. However, a recent change broke this guarantee and uses an insecure seed for key pair generation. Since the private key of this identity (535yc-uxytb-gfk7h-tny7p-vjkoe-i4krp-3qmcl-uqfgr-cpgej-yqtjq-rqe) is compromised, one could lose funds associated with the principal on ledgers or lose access to a canister where this principal is the controller.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 14, 2024References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://agent-js.icp.xyz/identity/index.html | DFINITY Foundation | Broken Link |
| https://github.com/dfinity/agent-js | DFINITY Foundation | Product |
| https://github.com/dfinity/agent-js/pull/851 | DFINITY Foundation | Issue TrackingPatch |
| https://github.com/dfinity/agent-js/security/advisories/GHSA-c9vv-fhgv-cjc3 | DFINITY Foundation | ExploitVendor Advisory |
| https://www.npmjs.com/package/@dfinity/identity/v/1.0.1 | DFINITY Foundation | Product |
| https://agent-js.icp.xyz/identity/index.html | CVE | Broken Link |
| https://github.com/dfinity/agent-js | CVE | Product |
| https://github.com/dfinity/agent-js/pull/851 | CVE | Issue TrackingPatch |
| https://github.com/dfinity/agent-js/security/advisories/GHSA-c9vv-fhgv-cjc3 | CVE | ExploitVendor Advisory |
| https://www.npmjs.com/package/@dfinity/identity/v/1.0.1 | CVE | Product |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-330 | Use of Insufficiently Random Values | [email protected] |
| CWE-321 | Use of Hard-coded Cryptographic Key | DFINITY Foundation |
| CWE-330 | Use of Insufficiently Random Values | DFINITY Foundation |
Affected Products
| Product | Versions |
|---|---|
| dfinity icp-js-core | >= 0.20.0, < 1.0.1 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | DFINITY Foundation |
| Dec 10, 2025 | Initial Analysis | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | DFINITY Foundation |
| Feb 21, 2024 | CVE Modified | DFINITY Foundation |
| Feb 21, 2024 | New CVE Received | DFINITY Foundation |