CVE-2024-1631

9.1 CRITICAL
Published: February 21, 2024 Modified: December 10, 2025

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
https://agent-js.icp.xyz/identity/index.html
Source: 6b35d637-e00f-4228-858c-b20ad6e1d07b
Broken Link
https://github.com/dfinity/agent-js
Source: 6b35d637-e00f-4228-858c-b20ad6e1d07b
Product
https://github.com/dfinity/agent-js/pull/851
Source: 6b35d637-e00f-4228-858c-b20ad6e1d07b
Issue Tracking Patch
https://github.com/dfinity/agent-js/security/advisories/GHSA-c9vv-fhgv-cjc3
Source: 6b35d637-e00f-4228-858c-b20ad6e1d07b
Exploit Vendor Advisory
https://www.npmjs.com/package/@dfinity/identity/v/1.0.1
Source: 6b35d637-e00f-4228-858c-b20ad6e1d07b
Product
https://agent-js.icp.xyz/identity/index.html
Source: af854a3a-2127-422b-91ae-364da2661108
Broken Link
https://github.com/dfinity/agent-js
Source: af854a3a-2127-422b-91ae-364da2661108
Product
https://github.com/dfinity/agent-js/pull/851
Source: af854a3a-2127-422b-91ae-364da2661108
Issue Tracking Patch
https://github.com/dfinity/agent-js/security/advisories/GHSA-c9vv-fhgv-cjc3
Source: af854a3a-2127-422b-91ae-364da2661108
Exploit Vendor Advisory
https://www.npmjs.com/package/@dfinity/identity/v/1.0.1
Source: af854a3a-2127-422b-91ae-364da2661108
Product

10 reference(s) from NVD

Quick Stats

CVSS v3 Score
9.1 / 10.0
EPSS (Exploit Probability)
0.4%
62th percentile
Exploitation Status
Not in CISA KEV

Affected Vendors

dfinity