GHSA-vc3q-r4qh-vp64
Ed25519 signing key pairs with an inconsistent embedded public key are accepted
Also known as RUSTSEC-2026-0602
Mitigation
- Upgrade dryoc to 2.0.1 or later.
Who should check
- Projects that depend on crates.io package dryoc (>= 0.0.0-0, < 2.0.1)
Vulnerability facts
- Affected
- dryoc >= 0.0.0-0, < 2.0.1
- Fixed in
- 2.0.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| crates.io dryoc | >= 0.0.0-0, < 2.0.1 | 2.0.1 | osv |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by GHSA-vc3q-r4qh-vp64. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/GHSA-vc3q-r4qh-vp64.md Affected: dryoc >= 0.0.0-0, < 2.0.1 Fixed in: 2.0.1 Steps: 1. Search this machine and project for dryoc (crates.io): dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
Technologies
References
Vendor advisories
FAQ
Is GHSA-vc3q-r4qh-vp64 being exploited?
There is no confirmed exploitation: GHSA-vc3q-r4qh-vp64 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.
How serious is GHSA-vc3q-r4qh-vp64?
It has no CVSS score yet. Unknown.
Which versions are affected by GHSA-vc3q-r4qh-vp64?
dryoc >= 0.0.0-0, < 2.0.1.
Is there a fix for GHSA-vc3q-r4qh-vp64?
Yes. Fixed in 2.0.1. Upgrade dryoc to 2.0.1 or later.
How do I check if I'm affected by GHSA-vc3q-r4qh-vp64?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.
More dryoc vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| UNSCORED | GHSA-6xqm-2982-gvrm X25519 accepts low-order public keys, yielding session keys computable without a private key | Rust crates |