« Volver al listado

CVE-2024-1631

Estado: AnalizadaCrítica (9.1)—

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.

CVSS

Probabilidad de explotación (EPSS)

EPSS (Exploit Prediction Scoring System, de FIRST) estima la probabilidad de que una vulnerabilidad sea explotada en 30 días. Complementa a CVSS (impacto) y a CISA KEV (explotación confirmada).

Tecnologías afectadas (1)

CWE

Referencias

JSON original (NVD)

Mostrar
{
  "id": "CVE-2024-1631",
  "cveTags": [],
  "metrics": {
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "id": "CVE-2024-1631",
          "role": "CISA Coordinator",
          "options": [
            {
              "exploitation": "none"
            },
            {
              "automatable": "yes"
            },
            {
              "technicalImpact": "total"
            }
          ],
          "version": "2.0.3",
          "timestamp": "2024-08-14T20:25:01.551447Z"
        }
      }
    ],
    "cvssMetricV31": [
      {
        "type": "Secondary",
        "source": "6b35d637-e00f-4228-858c-b20ad6e1d07b",
        "cvssData": {
          "scope": "UNCHANGED",
          "version": "3.1",
          "baseScore": 9.1,
          "attackVector": "NETWORK",
          "baseSeverity": "CRITICAL",
          "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N",
          "integrityImpact": "HIGH",
          "userInteraction": "NONE",
          "attackComplexity": "LOW",
          "availabilityImpact": "NONE",
          "privilegesRequired": "NONE",
          "confidentialityImpact": "HIGH"
        },
        "impactScore": 5.2,
        "exploitabilityScore": 3.9
      }
    ]
  },
  "affected": [
    {
      "source": "6b35d637-e00f-4228-858c-b20ad6e1d07b",
      "affectedData": [
        {
          "vendor": "Internet Computer",
          "product": "agent-js",
          "versions": [
            {
              "status": "affected",
              "version": "v0.20.0-beta.0",
              "lessThan": "v1.0.1",
              "versionType": "1.0.1"
            }
          ],
          "programFiles": [
            "https://github.com/dfinity/agent-js/blob/main/packages/identity/src/identity/ed25519.ts"
          ],
          "defaultStatus": "unaffected"
        }
      ]
    },
    {
      "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
      "affectedData": [
        {
          "cpes": [
            "cpe:2.3:a:dfinity:agent-js:*:*:*:*:*:*:*:*"
          ],
          "vendor": "dfinity",
          "product": "agent-js",
          "versions": [
            {
              "status": "affected",
              "version": "v0.20.0-beta.0",
              "lessThan": "v1.0.1",
              "versionType": "custom"
            }
          ],
          "defaultStatus": "unaffected"
        }
      ]
    }
  ],
  "published": "2024-02-21T03:15:08.747",
  "references": [
    {
      "url": "https://agent-js.icp.xyz/identity/index.html",
      "tags": [
        "Broken Link"
      ],
      "source": "6b35d637-e00f-4228-858c-b20ad6e1d07b"
    },
    {
      "url": "https://github.com/dfinity/agent-js",
      "tags": [
        "Product"
      ],
      "source": "6b35d637-e00f-4228-858c-b20ad6e1d07b"
    },
    {
      "url": "https://github.com/dfinity/agent-js/pull/851",
      "tags": [
        "Issue Tracking",
        "Patch"
      ],
      "source": "6b35d637-e00f-4228-858c-b20ad6e1d07b"
    },
    {
      "url": "https://github.com/dfinity/agent-js/security/advisories/GHSA-c9vv-fhgv-cjc3",
      "tags": [
        "Exploit",
        "Vendor Advisory"
      ],
      "source": "6b35d637-e00f-4228-858c-b20ad6e1d07b"
    },
    {
      "url": "https://www.npmjs.com/package/@dfinity/identity/v/1.0.1",
      "tags": [
        "Product"
      ],
      "source": "6b35d637-e00f-4228-858c-b20ad6e1d07b"
    },
    {
      "url": "https://agent-js.icp.xyz/identity/index.html",
      "tags": [
        "Broken Link"
      ],
      "source": "af854a3a-2127-422b-91ae-364da2661108"
    },
    {
      "url": "https://github.com/dfinity/agent-js",
      "tags": [
        "Product"
      ],
      "source": "af854a3a-2127-422b-91ae-364da2661108"
    },
    {
      "url": "https://github.com/dfinity/agent-js/pull/851",
      "tags": [
        "Issue Tracking",
        "Patch"
      ],
      "source": "af854a3a-2127-422b-91ae-364da2661108"
    },
    {
      "url": "https://github.com/dfinity/agent-js/security/advisories/GHSA-c9vv-fhgv-cjc3",
      "tags": [
        "Exploit",
        "Vendor Advisory"
      ],
      "source": "af854a3a-2127-422b-91ae-364da2661108"
    },
    {
      "url": "https://www.npmjs.com/package/@dfinity/identity/v/1.0.1",
      "tags": [
        "Product"
      ],
      "source": "af854a3a-2127-422b-91ae-364da2661108"
    }
  ],
  "vulnStatus": "Analyzed",
  "weaknesses": [
    {
      "type": "Secondary",
      "source": "6b35d637-e00f-4228-858c-b20ad6e1d07b",
      "description": [
        {
          "lang": "en",
          "value": "CWE-321"
        },
        {
          "lang": "en",
          "value": "CWE-330"
        }
      ]
    },
    {
      "type": "Primary",
      "source": "nvd@nist.gov",
      "description": [
        {
          "lang": "en",
          "value": "CWE-330"
        }
      ]
    }
  ],
  "descriptions": [
    {
      "lang": "en",
      "value": "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"
    },
    {
      "lang": "es",
      "value": "Impacto: la librería ofrece una función para generar un par de claves ed25519 a través de Ed25519KeyIdentity.generate con un parámetro opcional para proporcionar un valor inicial de 32 bytes, que luego se utilizará como clave secreta. Cuando no se proporciona ningún valor inicial, se espera que la librería genere la clave secreta mediante aleatoriedad segura. Sin embargo, un cambio reciente rompió esta garantía y utiliza una semilla insegura para la generación del par de claves. Dado que la clave privada de esta identidad (535yc-uxytb-gfk7h-tny7p-vjkoe-i4krp-3qmcl-uqfgr-cpgej-yqtjq-rqe) está comprometida, se podrían perder fondos asociados con el principal en los libros de contabilidad o perder el acceso a un contenedor donde este principal es el controlador."
    }
  ],
  "lastModified": "2026-06-17T07:04:39.777",
  "configurations": [
    {
      "nodes": [
        {
          "negate": false,
          "cpeMatch": [
            {
              "criteria": "cpe:2.3:a:dfinity:icp-js-core:*:*:*:*:*:node.js:*:*",
              "vulnerable": true,
              "matchCriteriaId": "D7A640A0-DBF0-4F4E-8EDE-8604990C1898",
              "versionEndExcluding": "1.0.1",
              "versionStartIncluding": "0.20.0"
            }
          ],
          "operator": "OR"
        }
      ]
    }
  ],
  "sourceIdentifier": "6b35d637-e00f-4228-858c-b20ad6e1d07b"
}