{"id":"EUVD-2024-0614","enisaUuid":"5144c940-7ad0-39d9-841a-ba3936f7f101","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. \n","datePublished":"Feb 21, 2024, 2:12:38 AM","dateUpdated":"Aug 16, 2024, 2:55:17 PM","baseScore":9.1,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","references":"https://github.com/dfinity/agent-js/pull/851\nhttps://www.npmjs.com/package/@dfinity/identity/v/1.0.1\nhttps://github.com/dfinity/agent-js\nhttps://agent-js.icp.xyz/identity/index.html\nhttps://github.com/dfinity/agent-js/security/advisories/GHSA-c9vv-fhgv-cjc3\n","aliases":"CVE-2024-1631\nGHSA-c9vv-fhgv-cjc3\n","assigner":"Dfinity","epss":0.88,"enisaIdProduct":[{"id":"8db95d56-4a5a-3330-b562-6b2ff87e55b4","product":{"name":"agent-js","vendor":{"name":"Internet Computer"}},"product_version":"v0.20.0-beta.0 \u003cv1.0.1"}],"enisaIdVendor":[{"id":"ea84d64f-a163-380b-bcf7-39a15108ab87","vendor":{"name":"Internet Computer"}}],"enisaIdVulnerability":[{"id":"08003894-818f-3929-bc90-17f41a407098","vulnerability":{"id":"GHSA-c9vv-fhgv-cjc3","description":"agent-js: Insecure Key Generation in `Ed25519KeyIdentity.generate`","datePublished":"Feb 21, 2024, 2:54:56 AM","dateUpdated":"Feb 21, 2024, 6:57:59 PM","baseScore":null,"references":"https://github.com/dfinity/agent-js/security/advisories/GHSA-c9vv-fhgv-cjc3\nhttps://nvd.nist.gov/vuln/detail/CVE-2024-1631\nhttps://github.com/dfinity/agent-js/pull/851\nhttps://agent-js.icp.xyz/identity/index.html\nhttps://github.com/dfinity/agent-js\nhttps://www.npmjs.com/package/@dfinity/identity/v/1.0.1\n","enisa_id":"EUVD-2024-0614\n","aliases":"CVE-2024-1631\nGHSA-c9vv-fhgv-cjc3\n","epss":0.0,"dataProcessed":"Nov 22, 2026, 2:35:55 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}},{"id":"b235d79f-b78d-38ea-a810-6e1f76748d35","vulnerability":{"id":"CVE-2024-1631","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. \n","datePublished":"Feb 21, 2024, 2:12:38 AM","dateUpdated":"Aug 16, 2024, 2:55:17 PM","status":"PUBLISHED","baseScore":9.1,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","references":"https://github.com/dfinity/agent-js/pull/851\nhttps://www.npmjs.com/package/@dfinity/identity/v/1.0.1\nhttps://github.com/dfinity/agent-js\nhttps://agent-js.icp.xyz/identity/index.html\nhttps://github.com/dfinity/agent-js/security/advisories/GHSA-c9vv-fhgv-cjc3\n","enisa_id":"EUVD-2024-0614\n","assigner":"Dfinity","epss":0.88,"dataProcessed":"Nov 22, 2026, 7:17:22 AM","vulnerabilityProduct":[{"id":"28aed7b9-b692-3c7e-a492-a5271106323f","product":{"name":"agent-js","vendor":{"name":"Internet Computer"}},"product_version":"v0.20.0-beta.0 \u003cv1.0.1"}],"vulnerabilityVendor":[{"id":"3fe1db87-134b-3fec-b236-6116099fe1c3","vendor":{"name":"Internet Computer"}}]}}],"enisaIdAdvisory":[]}