GHSA-vc3q-r4qh-vp64: Ed25519 signing key pairs with an inconsistent embedded public key are accepted
Published 2026-11-16 · Updated 2026-11-27 · Also known as RUSTSEC-2026-0602
Summary
An Ed25519 signing key validation flaw exists in the `dryoc` crate where keys with inconsistent embedded public keys are accepted. Users of the `dryoc` crate utilizing affected versions should update immediately.
Who is affected
Affected deployments of the `dryoc` crate via `SigningKeyPair::from_slices` or the `serde` feature can accept malformed secret keys where the embedded public key does not match the seed. If an attacker can replace bytes 32..64 of a stored secret key and obtain signatures over the same message from both keys, they can compute the private scalar and forge signatures for arbitrary messages under the original public key. This requires conditions such as key storage without integrity protection or an application assembling key bytes from two separate sources.
Exploitability
The CVSS vector, EPSS score, and CISA KEV status are not documented, so explicit metrics are not available.
Remediation
- Upgrade the `dryoc` crate to version 2.0.1 or later.
- Ensure imported Ed25519 key pairs undergo validation in `SigningKeyPair::from_slices` and during serde deserialization.
How to check your project
- Inspect Cargo.toml and Cargo.lock files to check if the `dryoc` crate is present in versions prior to 2.0.1.
- Search the codebase for usages of `SigningKeyPair::from_slices` or deserialization of `SigningKeyPair`.
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, < 2.0.1 | 2.0.1 | cargo update -p dryoc --precise 2.0.1 |
FAQ
What is the scope of the vulnerability in dryoc?
The flaw affects Ed25519 signing key pairs where `SigningKeyPair::from_slices` or the `serde` deserialization implementation store 64 secret-key bytes without checking that the embedded public key matches the one derived from the seed.
Are all constructors in dryoc affected?
No. `SigningKeyPair::from_secret_key` re-derives the key pair from the seed and is not affected.
How was the issue resolved in version 2.0.1?
Version 2.0.1 validates imported Ed25519 key pairs in `SigningKeyPair::from_slices` and during serde deserialization, and re-derives the embedded public key from the seed during signing and finalization.
Original advisory description
References
- PACKAGE https://crates.io/crates/dryoc
- ADVISORY https://rustsec.org/advisories/RUSTSEC-2026-0602.html
- WEB https://github.com/brndnmtthws/dryoc/pull/230
- WEB https://github.com/brndnmtthws/dryoc/releases/tag/v2.0.1
Source records: RUSTSEC-2026-0602 (OSV.dev).