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-0603No CVE assigned

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

Products / packages dryoc

Published

Share

Severity and exploitation

KEV unavailable / stale

KEV coverage does not rule out exploitation.

KEV checked 28/11/2026, 22:10:32 UTC
OSV · CVSS:3.1 · 4.8
Assessment vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

Severity

medium4.8

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

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.

Source excerpt · OSV

Attack conditions

If upgrading is not yet possible, validate every untrusted peer X25519 public key before passing it to dryoc 0.9.x, for example by rejecting keys that do not map to a torsion-free Edwards point (MontgomeryPoint::to_edwards(0) followed by is_torsion_free() in curve25519-dalek; this requires curve25519-dalek 4.x as a direct dependency).

Excerpt from the original source description below.

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 1.0.0Semantic versions1.0.0

Version evidence: OSV · RUSTSEC-2026-0603

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

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 0.9.x. The key-exchange functions return Ok, and anyone who knows the two public keys can recompute the resulting session keys (or crypto_box_beforenm key) by trying at most 4 candidates. The confidentiality and integrity of that session are lost, including against passive observers.
  • Small private-key leak (0.5.1 through 0.9.x). With a peer key that has an order-8 torsion component, the output reveals 2 bits of the victim's static X25519 scalar to the peer (and, when the peer key is an order-8 low-order point, to any observer who can test the candidate session keys). This does not meaningfully reduce the hardness of recovering the key.
  • Non-standard output (0.5.1 through 0.9.x). Peer keys with a torsion component, and points on the quadratic twist, produce outputs that differ from RFC 7748 and libsodium, which breaks interoperability for such keys.
  • KeyPair::is_valid_public_key accepts 6 of the 14 low-order encodings, so it cannot be relied on as a guard.

Applications that only use authenticated peer keys generated by dryoc or libsodium are not affected in practice: honest keys lie in the prime-order subgroup, where the reduced and unreduced scalars give the same result.

Resolution

Upgrade to dryoc 1.0.0 or later. In 1.0.0, X25519 is computed with MontgomeryPoint::mul_clamped (the unreduced clamped scalar, as in RFC 7748), and an all-zero shared secret is rejected, so low-order public keys now return an error from the scalarmult, box, key-exchange and precalculation APIs. Note that 1.0.0 is a backward-incompatible release; several of these functions now return Result.

If upgrading is not yet possible, validate every untrusted peer X25519 public key before passing it to dryoc 0.9.x, for example by rejecting keys that do not map to a torsion-free Edwards point (MontgomeryPoint::to_edwards(0) followed by is_torsion_free() in curve25519-dalek; this requires curve25519-dalek 4.x as a direct dependency). A check based only on is_small_order() prevents the predictable session keys but not the 2-bit leak or the non-standard output.

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.

unknown
RUSTSEC-2026-0602No CVE assignedPackage fixes recorded

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

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.

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

Exploitation not established