Dryoc: X25519 accepts low-order public keys, yielding session keys computable without a private key
Affects dryocSource GCVE Database
CVSS 4.8 Medium : upgrade to 1.0.0 when convenient.
Data as of 27 Nov 2026, 12:01 UTC
- Patch
- Available – fixed in 1.0.0
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:NWhat to do
Upgrade dryoc to 1.0.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
crates.iodryocpkg:cargo/dryocOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade to dryoc version 1.0.0 or later, which fixes the vulnerability by rejecting low-order public keys and all-zero shared secrets and using the correct scalar multiplication method. If upgrading is not possible, validate all untrusted peer X25519 public keys before use by rejecting keys that do not map to torsion-free Edwards points, for example using curve25519-dalek 4.x's torsion-free check. A simple small-order check prevents predictable session keys but not the minor private key leak or non-standard outputs.
Description
Dryoc versions before 1.0.0 improperly accept low-order Curve25519 public keys in X25519 key exchange, resulting in predictable session keys and potential minor private key leakage. Versions 0.5.1 through 0.9.x also produce non-standard outputs differing from RFC 7748 and libsodium, breaking interoperability. The issue is resolved in dryoc 1.0.0, which rejects all-zero shared secrets and low-order keys, returning errors for invalid inputs.