{"id":"CVE-2022-50237","aliases":["CVE-2022-50237","GHSA-w5vr-6qhr-36cc","RUSTSEC-2022-0093"],"related":["HSEC-2025-0002"],"kind":"vulnerability","state":"published","title":"`ed25519-dalek` Double Public Key Signing Function Oracle Attack","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.\n\nSuch 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.\n\nUnfortunately, when this happens, one can easily extract the private key.\n\nRevised 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2022-06-11T12:00:00.000Z","modified":"2026-06-17T05:23:02.680Z","severity":{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"}],"cwes":["CWE-497"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"2","status":"affected"}],"vendor":"dalek-cryptography","product":"ed25519-dalek","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.0.0"}],"ecosystem":"crates.io","package":"ed25519-dalek","purl":"pkg:cargo/ed25519-dalek","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"2.0.0"}],"ecosystem":"crates.io","package":"ed25519-dalek","purl":"pkg:cargo/ed25519-dalek","source":"rustsec"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2022-0093.html","tags":["advisory","web"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://github.com/MystenLabs/ed25519-unsafe-libs","tags":["web"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://crates.io/crates/ed25519-dalek","tags":["package"],"sources":["cvelist","rustsec","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50237","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/dalek-cryptography/ed25519-dalek","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-07-28T13:56:03.251Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50237","url":"https://www.cve.org/CVERecord?id=CVE-2022-50237","licence":"CVE Terms of Use","modified":"2025-07-28T13:56:12.178Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-w5vr-6qhr-36cc","url":"https://github.com/advisories/GHSA-w5vr-6qhr-36cc","licence":"CC-BY-4.0","modified":"2026-02-04T03:12:24.206Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2022-0093","url":"https://rustsec.org/advisories/RUSTSEC-2022-0093.html","licence":"CC0-1.0","modified":"2025-10-28T06:02:18.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50237","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50237","licence":"Public domain","modified":"2026-06-17T05:23:02.680Z"}],"updatedAt":"2026-11-25T22:58:21.118Z","epss":{"score":0.00217,"percentile":0.12965,"date":"2026-12-01T12:00:22.000Z"}}