Rust advisories / libcrux-ecdh
Vulnerability LowRUSTSEC-2026-0023 · libcrux-ecdh
RUSTSEC-2026-0023: X25519 secret validation did not check buffer length or clamping
Short answerA security vulnerability in the libcrux-ecdh crate: X25519 secret validation did not check buffer length or clamping. GitHub rates it Low. Fixed in 0.0.6: update to a fixed version.
| Crate | libcrux-ecdh |
|---|---|
| Type | Vulnerability |
| Affected versions | Before 0.0.6. |
| Fixed in | 0.0.6 |
| Severity | Low (GitHub rating) 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 |
| Published | 2026-01-26 |
| Last changed | 2026-08-24 |
| Also known as | CVE-2026-76234, GHSA-435g-fcv3-8j26, RUSTSEC-2026-0024, RUSTSEC-2026-0025, RUSTSEC-2026-0026 |
| Affected functions | libcrux_ecdh::validate_scalar |
What to do
- See which version you have:
cargo tree -i libcrux-ecdh(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p libcrux-ecdh. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for examplelibcrux-ecdh = "0.0.6") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
The latest releases of the libcrux-ecdh crate contains the following bug-fix:
#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
References
- Package: crates.io/crates/libcrux-ecdh
- Advisory: rustsec.org/advisories/RUSTSEC-2026-0023.html
- Web: github.com/cryspen/libcrux/pull/1301
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Up next
Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →Also worth your time
Did this answer your question?