# \`ed25519-dalek\` Double Public Key Signing Function Oracle Attack

Advisory record · `GHSA-w5vr-6qhr-36cc`

- **Identifiers:** `GHSA-w5vr-6qhr-36cc` · `CVE-2022-50237` · `RUSTSEC-2022-0093`
- **State:** Confirmed
- **Severity:** CVSS 5.9 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-497](https://cwe.mitre.org/data/definitions/497.html)
- **Tags:** [Information disclosure](https://agentprime.io/advisories/tag/info-disclosure.md)
- **Published:** 14 Aug 2023
- **Updated:** 4 Feb 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 14 Aug 2023, 21:10 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `ed25519-dalek` (crates.io): affected `<2.0.0`; fixed in `2.0.0`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The ed25519-dalek crate before version 2.0.0 lets callers pair a private key with an arbitrary public key and serialize or deserialize 64-byte keypairs. An attacker able to use the signing function as an oracle with chosen public keys could obtain two signatures for the same message that share the R value, which allows the private key to be extracted. Upgrade to version 2.0.0 or later, where a decoupled private and public keypair is no longer accepted as signing input except through clearly labelled hazmat APIs.

Written 8 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 5.9 Medium, CVSS 3.1: `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N`, from CNA (mitre)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0022, the 12th percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 15:19 UTC: First seen by agentprime
- 31 Oct 2026, 15:19 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-w5vr-6qhr-36cc)

## Sources

- [GitHub Advisory Database: GHSA-w5vr-6qhr-36cc](https://github.com/advisories/GHSA-w5vr-6qhr-36cc)
- [OSV: GHSA-w5vr-6qhr-36cc](https://osv.dev/vulnerability/GHSA-w5vr-6qhr-36cc)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-50237>
- <https://github.com/MystenLabs/ed25519-unsafe-libs>
- <https://github.com/dalek-cryptography/ed25519-dalek>
- <https://rustsec.org/advisories/RUSTSEC-2022-0093.html>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-w5vr-6qhr-36cc>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-w5vr-6qhr-36cc/>. Everything for agents: <https://agentprime.io/llms.txt>.
