Skip to content

← Public intelligence

crates.io package

dryoc

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

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

  1. Unratedcrates.ioPublished

    Ed25519 signing key pairs with an inconsistent embedded public key are accepted

    GHSA-vc3q-r4qh-vp64

    Affected
    • crates.io dryoc >= 0.0.0-0, < 2.0.1
    Fixed in
    2.0.1· Vendor fix available
    Issue
    An Ed25519 secret key in `dryoc` is 64 bytes: the 32-byte seed followed by the 32-byte public key. When signing, the public key used in the challenge hash `k = H(R || A || M)` is read from bytes 32..64 of the secret key, while the nonce `r`, and therefore `R`, is derived only from the seed and the message. In affected versions, `SigningKeyPair::from_slices` and, when the `serde` feature is enabled, the derived `Deserialize` implementation of `SigningKeyPair` store the 64 secret-key bytes as given, without checking that the embedded public key matches the one derived from the seed. The separate `public_key` field of the struct is not used for signing, so only the embedded half is relevant. `SigningKeyPair::from_secret_key` re-derives the key pair from the seed and is not affected. If an attacker can replace bytes 32..64 of a stored secret key without being able to read the seed, and can obtain signatures over the same message from both the original and the modified key, the two…

    Recommended action: Upgrade to 2.0.1 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 →
  2. Medium, CVSS 4.8crates.ioPublished

    X25519 accepts low-order public keys, yielding session keys computable without a private key

    GHSA-6xqm-2982-gvrm

    Affected
    • crates.io dryoc >= 0.0.0-0, < 1.0.0
    Fixed in
    1.0.0· Vendor fix available
    Issue
    Versions of dryoc before 1.0.0 never reject low-order peer public keys or an all-zero shared secret. In addition, versions 0.5.1 through 0.9.x compute X25519 with the clamped scalar reduced modulo the prime subgroup order ℓ (`Scalar::from_bytes_mod_order(clamp(n))`) instead of the clamped integer specified by RFC 7748; earlier versions use the unreduced clamped scalar. libsodium, with which these functions are documented as compatible, returns an error for all of these inputs. This affects `crypto_scalarmult`, `crypto_kx_client_session_keys` / `crypto_kx_server_session_keys`, `kx::Session::new_*`, and `crypto_box_beforenm` together with the box and precalculation APIs built on it, whenever the peer public key is not authenticated or can be chosen by a malicious party. Impact - Predictable session keys. For the 14 encodings of low-order Curve25519 points, the X25519 output is always the all-zero value in versions up to 0.5.0, and one of 5 fixed public values in 0.5.1 through…

    Recommended action: Upgrade to 1.0.0 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 →