Investigate in your agent.

Turn this advisory into a focused investigation. Ask your agent to check your project’s versions, explain the evidence, and suggest a compatible fix.

Your agent needs remote MCP support and access to https://cve.new/mcp.

Read the setup guide

Skip to content
Check your stack
RUSTSEC-2026-0602No CVE assigned

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

Products / packages dryoc

Published

Share

Severity and exploitation

KEV unavailable / staleNo CVSS score

KEV coverage does not rule out exploitation.

KEV checked 28/11/2026, 22:05:31 UTC

Severity

unknown

CVSS measures technical severity, not the likelihood of an attack.

Known exploitation

KEV status unavailable or stale

Absence from CISA KEV does not rule out attacks.

Public exploit

Not established by this record

Missing evidence does not mean no public exploit exists.

Remediation

Package fixes recorded

Fix versions are recorded for 1 of 1 mapped packages. Check each release branch and any separate product guidance.

What this means

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.

Source excerpt · OSV

Attack conditions

No attack-condition excerpt has been identified here. Review the full source description and references for authentication, network access, and configuration requirements.

Review supporting sources →

Affected versions

Check the exact model, release, and any platform requirements against your installation.

Packages

Compare each installed version with the publisher’s affected ranges. Where a fix is recorded, choose the appropriate release branch and test compatibility before upgrading.

dryoc crates.io
Affected range Recorded fix
From 0.0.0-0 before 2.0.1Semantic versions2.0.1

Version evidence: OSV · RUSTSEC-2026-0602

View original version evidence (0 explicit versions)

What to do

Compare your installed product and version with the affected versions above. A matching product name alone does not confirm exposure.

Use the recorded fix for your release branch. Review the publisher’s instructions and test compatibility before upgrading.

cve.new guidance unless attributed to a publisher. This page does not inspect your installation.

Public exploit evidence

No public exploit reference is identified in the imported evidence. This is not a claim that no exploit exists.

Original source description

Read the full publisher description

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 signatures share the same R and differ in S. The private scalar can then be computed as a = (S1 - S2) / (k1 - k2), which allows signatures to be forged for arbitrary messages under the original public key. Examples of such conditions are key storage without integrity protection, or an application that assembles the 64 secret-key bytes from two separate sources. The upstream advisory rates the issue as low severity.

This behavior matches libsodium, which also trusts the embedded public key, so it is not a compatibility defect; the concern is that the higher-level constructors in dryoc did not enforce the consistency that from_secret_key already provides.

Fix

Version 2.0.1 validates imported Ed25519 key pairs in SigningKeyPair::from_slices and during serde deserialization, rejecting key material whose embedded or separate public key does not match the seed. In addition, SigningKeyPair signing and Ed25519phSigner finalization re-derive the embedded public key from the seed, since the key pair's fields remain publicly mutable.

The Classic API (dryoc::classic::crypto_sign) keeps libsodium-compatible semantics: callers of functions such as crypto_sign_detached must supply consistent signing key material.

Users should upgrade to dryoc 2.0.1 or later.

References

4 sources

Inside the record

Evidence available

Package identity
Version evidence
Remediation guidance · not supplied
Weakness classification · not supplied
Additional publishers · not supplied

Describes the evidence in this view, not whether the product is safe.

Original records

No official CVE record has been imported. Use the source links below for the original advisory.

cve.new JSON →

Timeline

All times UTC
  1. Advisory published

    Publication date supplied by the source.

  2. Source updated

    Latest modification date supplied by the source.

  3. Last imported by cve.new

    Latest catalog import, not the date we first saw this advisory.

What changed

Follow changes
No substantive changes have been recorded here yet. History starts when cve.new observes a change after tracking is enabled; earlier edits are not reconstructed.

Large field values are marked as truncated previews. Original source snapshots remain retained.

Recent advisories affecting the same package or the same recorded vendor and product. These are separate vulnerabilities, not additional evidence for this advisory.

medium4.8
RUSTSEC-2026-0603No CVE assignedPackage fixes recorded

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

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.

Recorded fixes — dryoc: 1.0.0. Check your release branch.

Exploitation not established