Skip to content

← Public intelligence

crates.io package

libcrux-ecdsa

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

1 actionable advisory, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. High, CVSS 8.2crates.ioPublished

    Timing side channel in P-256 scalar validation leaks leading zero bytes of nonces and signing keys

    Affected
    • crates.io libcrux-ecdsa >= 0.0.0-0, < 0.0.10
    Fixed in
    0.0.10· Vendor fix available
    Issue
    As part of P-256 scalar validation, `libcrux-ecdsa` prior to version `0.0.10` checked whether a scalar is zero by looping over its bytes with a short-circuiting comparison. Since the loop stops at the first non-zero byte, its running time reveals how many leading bytes of the scalar are zero. Impact Scalars are validated when ECDSA nonces and signing keys are generated (`Nonce::random`, `PrivateKey::random`, `rand::generate_key_pair` and `rand::sign`, which draw candidates with `rand::random_scalar`) and when private keys are imported (`PrivateKey::try_from`, `validate_scalar`). For signing keys, the leak is limited to the number of leading zero bytes of the key, which alone does not enable key recovery. For nonces, each leaked leading zero byte reveals eight leading zero bits. Knowledge of the leading zero bits of ECDSA nonces is known to allow recovering the signing key with lattice attacks (see, e.g., the Minerva and TPM-Fail attacks). Since only about one in 256 nonces has a…

    Recommended action: Upgrade to 0.0.10 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.devSource checked Evidence →