5.9medium
`ed25519-dalek` Double Public Key Signing Function Oracle Attack
- Severity
- 5.9medium CVSS:3.1 by mitre
- Exploit likelihood
- 0.22% (higher than 12% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-w5vr-6qhr-36ccRUSTSEC-2022-0093
Description
The ed25519-dalek crate before 2 for Rust allows a double public key signing function oracle attack. The Keypair implementation leads to a simple computation for extracting a private key.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| dalek-cryptography ed25519-dalek | before 2 | CVE List |
| ed25519-dalek (crates.io) | before 2.0.0, from 0.0.0-0 before 2.0.0 | GitHub Advisory Database, RustSec Advisory Database |
All scores
| mitre | 5.9medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N |
| GitHub | 5.9medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
The ed25519-dalek crate before 2 for Rust allows a double public key signing function oracle attack. The Keypair implementation leads to a simple computation for extracting a private key.
GitHub Advisory Database
Versions of ed25519-dalek prior to v2.0 model private and public keys as separate types which can be assembled into a Keypair, and also provide APIs for serializing and deserializing 64-byte private/public keypairs.
Such APIs and serializations are inherently unsafe as the public key is one of the inputs used in the deterministic computation of the S part of the signature, but not in the R value. An adversary could somehow use the signing function as an oracle that allows arbitrary public keys as input can obtain two signatures for the same message sharing the same R and only differ on the S part.
Unfortunately, when this happens, one can easily extract the private key.
Revised public APIs in v2.0 of ed25519-dalek do NOT allow a decoupled private/public keypair as signing input, except as part of specially labeled "hazmat" APIs which are clearly labeled as being dangerous if misused.
NVD (es)
El paquete ed25519-dalek para Rust anterior a la versión 2 permite un ataque de oráculo con doble firma de clave pública. La implementación de Keypair permite un cálculo simple para extraer una clave privada.
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-50237 changed 2025-07-28 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-w5vr-6qhr-36cc changed 2026-02-04 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2022-0093 changed 2025-10-28 | CC0-1.0 |
| NVD | CVE-2022-50237 changed 2026-06-17 | Public domain |