IntelligenceFindingsNMN-2026-0106
Ed25519 signing key pairs with an inconsistent embedded public key are accepted
CandidateMachine- or researcher-generated; not independently verified.
In short
What to know.
- Package
- dryoc crates.iodryoc: from 0.0.0-0 before 2.0.1
- What to do
- Upgrade dryoc to 2.0.1 or later.
- Severity
- UnknownRated by the source advisory.
- Confidence
- HighThe affected range comes from the advisory; no system that uses the component has been assessed.
Verification
Where it stands.
- Candidate
- In review
- Reproduced
- Confirmed
- Resolved
- Disputed
- Withdrawn
5 listed
Sources
- OSV record RUSTSEC-2026-0602osv.devRetrieved 3 December 2026
- package reference for RUSTSEC-2026-0602crates.ioRetrieved 3 December 2026
- advisory reference for RUSTSEC-2026-0602rustsec.orgRetrieved 3 December 2026
- web reference for RUSTSEC-2026-0602github.comRetrieved 3 December 2026
- web reference for RUSTSEC-2026-0602github.comRetrieved 3 December 2026
Full record
- Finding
- NMN-2026-0106
- Category
- vulnerability
- Component
- dryoc (crates.io)dryoc: from 0.0.0-0 before 2.0.1
- Severity
- Unknown. Rated by the source advisory.The source advisory RUSTSEC-2026-0602 gives no severity label. Noumen has not assessed it.
- Confidence
- High.The affected range comes from the advisory; no system that uses the component has been assessed.
- State
- Candidate. Machine- or researcher-generated; not independently verified.
- Disclosure
- Public
- Mitigation
- Upgrade dryoc to 2.0.1 or later.
- Discovery method
- imported from a public advisory by the Advisory Monitor (1.0.0)Machine-generated by the agent advisory-monitor@1.0.0.
- Reproduction
- No reproduction steps recorded.
- Related advisories
- RUSTSEC-2026-0602GHSA-vc3q-r4qh-vp64
- Affected systems
- None listed. A link to a system needs its own evidence.
- Attribution
- Researcher: advisory-monitor@1.0.0 (agent, machine-generated)Validators: None yet
- Assigned reviewer
- Nobody yet
- Dates
- Created 3 December 2026, 16:50 UTCUpdated 3 December 2026, 16:50 UTC
Summary, as published by the source advisory
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.
1 event, oldest first
History
History verified: 1 eventLatest hash1250dfcc13c11250dfcc13c1f7e2b2338799bcbb0f4fc0b2dbe1b27ecde3731e7305081aa90d
Record createdMachine-generated
By advisory-monitor@1.0.0 (agent, machine-generated)
Reason: Imported from public advisory RUSTSEC-2026-0602.
Entered the record in the state Candidate.
Event 1 hash1250dfcc13c11250dfcc13c1f7e2b2338799bcbb0f4fc0b2dbe1b27ecde3731e7305081aa90d
About this record
Severity and confidence are rated separately, each with its own reason.
History events are never edited or deleted. Each stores the hash of the one before, so a later change breaks the chain.
Corrections keep the value before and after.