CWE-497Weakness · CWE-497

CVE-2022-50237

MEDIUM · 5.9 CVSS v3.1 Published 2025-07-28
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
64/100
Remediation priority · Elevated
No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · moderate confidence

The ed25519-dalek crate before version 2 contains a vulnerability in its Keypair implementation that enables a double public key signing function oracle attack. This allows an attacker to perform repeated signatures and derive the private key through straightforward computation.

MitigationUpgrade the ed25519-dalek dependency to version 2 or later, which addresses the oracle attack vector in the Keypair implementation.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Local
Complexity
High
Privileges
None
User interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Locate ed25519-dalek dependency
    Search your project's Cargo.lock file for 'ed25519-dalek' and note the version number. Also check Cargo.toml for direct and transitive dependencies.
    Affected if The version listed is below 2.0.0 (e.g., 1.0.x, 1.x, or any version starting with 1.)
  2. Identify Keypair usage in source code
    Search your Rust source files for imports or usage of the Keypair struct from the ed25519-dalek crate (e.g., 'use ed25519_dalek::Keypair' or similar).
    Affected if Your code imports or uses the Keypair struct from ed25519-dalek version below 2.
  3. Check for signing method invocations
    Search for calls to signing methods on Keypair instances, such as 'sign' or 'sign_message'. Examine the method signatures in your version's documentation.
    Affected if Your code calls signing methods on Keypair instances from the vulnerable crate.
  4. Verify double signature pattern
    Review your code logic for any path where the same message might be signed twice with the same Keypair, or where an attacker could trigger repeated signature operations.
    Affected if Your application allows an attacker to trigger multiple signature operations with the same Keypair on their chosen messages.

You are affected if your project depends on ed25519-dalek version below 2.0.0 and uses the Keypair signing functionality in a way that could allow an attacker to trigger repeated signature operations.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Upgrade the ed25519-dalek dependency to version 2 or later, which addresses the oracle attack vector in the Keypair implementation.

Recommended fix Moderate confidence

ed25519-dalek 2.0.0 or later

  1. Check the current version of ed25519-dalek in your Cargo.toml file
  2. Run `cargo update ed25519-dalek` or manually update the version to 2.0.0 or later
  3. Run `cargo build` or `cargo check` to verify the upgrade compiles successfully
  4. Review the crate's changelog for any API changes between version 1.x and 2.x that may require code modifications
  5. Run your test suite to ensure the upgrade does not break existing functionality
Caveat Version 2.x has API changes from 1.x; code adjustments may be required when upgrading

Generated from the published advisory — verify against the referenced sources before acting.

Have this fixed Scoped from the published advisory
  • Consultation3.0 h
  • Implementation6.0 h
  • Testing8.0 h
  • Review / QA3.0 h
20.0 hours of engineering $3,420
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $5,472.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2022-50237 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2022-50237 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data