GHSA-6xqm-2982-gvrm: X25519 accepts low-order public keys, yielding session keys computable without a private key
Published 2026-11-16 · Updated 2026-11-27 · Also known as RUSTSEC-2026-0603
Summary
The dryoc library fails to reject low-order peer public keys and all-zero shared secrets in X25519 calculations before version 1.0.0. Engineering teams using dryoc to handle unauthenticated peer keys must upgrade or validate public keys.
Who is affected
Applications using dryoc versions prior to 1.0.0 are affected whenever an untrusted or unauthenticated peer public key can be supplied to scalar multiplication, key exchange, or box precalculation APIs. Attackers can exploit this to compute predictable session keys, leading to a complete loss of confidentiality and integrity even against passive observers.
Exploitability
Exploitation is network-accessible without requiring privileges or user interaction, but requires high attack complexity as the peer public key must be specifically crafted. The vulnerability currently has no EPSS score, and CISA Known Exploited Vulnerabilities indicates no active exploitation.
Remediation
- Upgrade the dryoc crate to version 1.0.0 or later.
- If upgrading is not possible, validate every untrusted peer X25519 public key before passing it to dryoc 0.9.x by checking that it maps to a torsion-free Edwards point.
How to check your project
- Inspect Cargo.toml and Cargo.lock files to check if the 'dryoc' package version is within the range 0.0.0-0 up to 0.9.x.
Automated analysis of the published advisory data, generated 2026-11-27. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| crates.io | dryoc |
>= 0.0.0-0, < 1.0.0 | 1.0.0 | cargo update -p dryoc --precise 1.0.0 |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
| Attack vector | Network |
|---|---|
| Attack complexity | High |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | Low |
| Integrity | Low |
| Availability | None |
FAQ
Which packages are affected by this vulnerability?
The crates.io package 'dryoc' for versions introduced at 0.0.0-0 and fixed in 1.0.0.
Are applications with authenticated peer keys affected?
Applications that only use authenticated peer keys generated strictly by dryoc or libsodium are not affected in practice, because honest keys lie within the prime-order subgroup.
What are the changes introduced in dryoc 1.0.0?
Version 1.0.0 computes X25519 using the unreduced clamped scalar per RFC 7748, rejects all-zero shared secrets, and returns an error for low-order public keys from the affected APIs.
Original advisory description
References
- PACKAGE https://crates.io/crates/dryoc
- ADVISORY https://rustsec.org/advisories/RUSTSEC-2026-0603.html
- WEB https://github.com/brndnmtthws/dryoc/pull/139
- WEB https://github.com/brndnmtthws/dryoc/releases/tag/v1.0.0
Source records: RUSTSEC-2026-0603 (OSV.dev).