CVE-2022-50237
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 · uneditedThe 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 confidenceThe 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.
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 checksWork through these to decide whether this CVE applies to you.
-
Locate ed25519-dalek dependencySearch 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.)
-
Identify Keypair usage in source codeSearch 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.
-
Check for signing method invocationsSearch 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.
-
Verify double signature patternReview 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.
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 · scopedUpgrade the ed25519-dalek dependency to version 2 or later, which addresses the oracle attack vector in the Keypair implementation.
ed25519-dalek 2.0.0 or later
- Check the current version of ed25519-dalek in your Cargo.toml file
- Run `cargo update ed25519-dalek` or manually update the version to 2.0.0 or later
- Run `cargo build` or `cargo check` to verify the upgrade compiles successfully
- Review the crate's changelog for any API changes between version 1.x and 2.x that may require code modifications
- Run your test suite to ensure the upgrade does not break existing functionality
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation6.0 h
- Testing8.0 h
- Review / QA3.0 h
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 locallyCheck 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 sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2022-50237 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
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.
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.
- 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