GHSA-435g-fcv3-8j26: Libcrux ecdh Bug-Fixes Vulnerability

LOW
CWE-20 CWE-327
Published
Advisory Summary

GHSA-435g-fcv3-8j26 is a LOW bug-fixes vulnerability (CWE-20: Improper Input Validation) affecting Libcrux ecdh libraries in the crates.io ecosystem. The issue involves bug-fixes in `libcrux-ecdh`, `libcrux-ed25519`, `libcrux-psq`. Remediation is available by upgrading affected packages to version 0.0.6, 0.0.7.

GHSA-435g-fcv3-8j26 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-435g-fcv3-8j26
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-20: Improper Input Validation
Affected Product Libcrux ecdh
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-435g-fcv3-8j26

To remediate this vulnerability, upgrade all affected Libcrux ecdh dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

libcrux-ecdh fixed: 0.0.6
Upgrade libcrux-ecdh to 0.0.6
libcrux-ed25519 fixed: 0.0.6
Upgrade libcrux-ed25519 to 0.0.6
libcrux-psq fixed: 0.0.7
Upgrade libcrux-psq to 0.0.7
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for libcrux-ecdh

How to Check if You Are Affected

To determine whether your application is affected by GHSA-435g-fcv3-8j26, inspect your project dependencies for Libcrux ecdh:

inspect dependencies for libcrux-ecdh

Analyze the terminal output to locate any version of Libcrux ecdh in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.6), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Libcrux ecdh, 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

In accordance with our [security policy for `libcrux`](https://github.com/cryspen/libcrux/blob/main/SECURITY.md), we publish a GitHub security advisory for any releases whose CHANGELOG includes bug-fixes, and encourage our users to upgrade. The latest releases of the `libcrux-ecdh`, `libcrux-ed25519` and `libcrux-psq` crates contain the following bug-fixes: ## `libcrux-ecdh` - [#1301](https://github.com/cryspen/libcrux/pull/1301): Check length and clamping in X25519 secret validation. This is a breaking change since errors are now raised on unclamped X25519 secrets or inputs of the wrong length ## `libcrux-ed25519` - [#1320](https://github.com/cryspen/libcrux/pull/1320): Remove duplicated clamping step during key generation The issue fixed in #1320 was first reported by Nadim Kobeissi. ## `libcrux-psq` - [#1319](https://github.com/cryspen/libcrux/pull/1319): Propagate AEADError instead of panicking - [#1301](https://github.com/cryspen/libcrux/pull/1301): Fix broken clamping check for imported X25519 secret keys The issue fixed in #1319 was first reported by Nadim Kobeissi.

GHSA-435g-fcv3-8j26 Affected Libcrux ecdh Versions

3 component(s)
Fixed Versions:
0.0.60.0.7
Product / Package Ecosystem Affected Versions Fixed Version
libcrux-ecdh
crates.io
< 0.0.6
0.0.6
libcrux-ed25519
crates.io
< 0.0.6
0.0.6
libcrux-psq
crates.io
< 0.0.7
0.0.7

References

Frequently Asked Questions

What is GHSA-435g-fcv3-8j26?
GHSA-435g-fcv3-8j26 is a security vulnerability in Libcrux ecdh involving Bug-Fixes in `libcrux-ecdh`, `libcrux-ed25519`, `libcrux-psq` under CWE-20: Improper Input Validation.
Which Libcrux ecdh versions are affected?
Affected versions include releases prior to 0.0.6, 0.0.7 across affected packages: libcrux-ecdh, libcrux-ed25519, libcrux-psq.
What version fixes GHSA-435g-fcv3-8j26?
Upgrading to 0.0.6, 0.0.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is libcrux-ecdh affected?
Yes, libcrux-ecdh is affected in releases prior to 0.0.6. Upgrade your dependency to 0.0.6 or later.
Is libcrux-ed25519 affected?
Yes, libcrux-ed25519 is affected in releases prior to 0.0.6. Upgrade your dependency to 0.0.6 or later.
What CWE is associated with GHSA-435g-fcv3-8j26?
GHSA-435g-fcv3-8j26 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check crates.io dependencies for GHSA-435g-fcv3-8j26?
Run the dependency tree command: 'inspect dependencies for libcrux-ecdh'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-435g-fcv3-8j26",
  "modified" : "2026-02-27T20:51:08Z",
  "published" : "2026-02-12T22:12:14Z",
  "aliases" : [ ],
  "summary" : "Bug-Fixes in `libcrux-ecdh`, `libcrux-ed25519`, `libcrux-psq`",
  "details" : "In accordance with our [security policy for `libcrux`](https://github.com/cryspen/libcrux/blob/main/SECURITY.md), we publish a GitHub security advisory for any releases whose CHANGELOG includes bug-fixes, and encourage our users to upgrade. The latest releases of the `libcrux-ecdh`, `libcrux-ed25519` and `libcrux-psq` crates contain the following bug-fixes:\n\n## `libcrux-ecdh`\n\n- [#1301](https://github.com/cryspen/libcrux/pull/1301): Check length and clamping in X25519 secret validation. This is a breaking change since errors are now raised on unclamped X25519 secrets or inputs of the wrong length\n\n## `libcrux-ed25519`\n\n- [#1320](https://github.com/cryspen/libcrux/pull/1320): Remove duplicated clamping step during key generation\n\nThe issue fixed in #1320 was first reported by Nadim Kobeissi.\n## `libcrux-psq`\n\n- [#1319](https://github.com/cryspen/libcrux/pull/1319): Propagate AEADError instead of panicking\n- [#1301](https://github.com/cryspen/libcrux/pull/1301): Fix broken clamping check for imported X25519 secret keys\n\nThe issue fixed in #1319 was first reported by Nadim Kobeissi.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "libcrux-ecdh"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.0.6"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.0.5"
    }
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "libcrux-ed25519"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.0.6"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.0.5"
    }
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "libcrux-psq"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.0.7"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.0.6"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/cryspen/libcrux/security/advisories/GHSA-435g-fcv3-8j26"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cryspen/libcrux/pull/1301"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cryspen/libcrux/pull/1319"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cryspen/libcrux/pull/1320"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cryspen/libcrux/commit/4d6f5d3c2542b6179a6474dec8cfb8b8ddf31a84"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cryspen/libcrux/commit/a09022c5811ca7fd1c6d9a239ff294d64ee86734"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cryspen/libcrux/commit/f303b6446c19fe9a7c993f61e426023609cd5fac"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/cryspen/libcrux"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2026-0023.html"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2026-0024.html"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2026-0025.html"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2026-0026.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-327" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-02-12T22:12:14Z",
    "nvd_published_at" : null
  }
}