{"answers":{"affected":"5 open source packages ship an affected version, including ed25519-dalek, crypton and cryptonite.","exploited":"There is no known exploitation of CVE-2022-50237 in the wild and no public exploit code.","fix":"Upgrade ed25519-dalek to 2.0.0 or later.","what":"CVE-2022-50237 is a medium-severity vulnerability in dalek-cryptography ed25519-dalek, published on 28 Jul 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-50237 and fix it if it is affected.\n\nWhat it is: CVE-2022-50237 is a medium-severity vulnerability in dalek-cryptography ed25519-dalek, published on 28 Jul 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-50237 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- ed25519-dalek (crates.io): affected all versions; fixed in 2.0.0\n- ed25519-dalek (crates.io): affected all versions; fixed in 2.0.0\n- ed25519-dalek (crates.io): affected from 0.0.0-0; fixed in 2.0.0\n- crypton (Hackage): affected from 0.31; fixed in 1.0.3\n- cryptonite (Hackage): affected from 0.1; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-50237/ (Markdown: https://insights.sbomify.com/CVE-2022-50237/index.md)","id":"CVE-2022-50237","markdown":"https://insights.sbomify.com/CVE-2022-50237/index.md","name":"CVE-2022-50237","record":{"aliases":["GHSA-w5vr-6qhr-36cc","HSEC-2025-0002","RUSTSEC-2022-0093","UBUNTU-CVE-2022-50237"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["privilege_escalation","data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Rust cryptography library","requires_auth":"none","summary":"Attackers can extract private keys via a signing oracle attack in the ed25519-dalek Rust library, compromising cryptographic security.","user_interaction":"not_required","vuln_class":"weak_cryptography"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[],"cvss":{"score":5.9,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-497","name":"Exposure of Sensitive System Information to an Unauthorized Control Sphere"}],"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.","ecosystems":["Hackage","crates.io"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"`ed25519-dalek` Double Public Key Signing Function Oracle Attack","id":"CVE-2022-50237","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"weak_cryptography","year":"2022"},"n_packages":5,"n_references":3,"next":{"headline":"Security feature bypass in Windows","id":"CVE-2022-50238"},"packages":[{"ecosystem":"Hackage","fixed":["1.0.3"],"introduced":["0.31"],"last_affected":[],"package":"crypton","purl":"pkg:hackage/crypton","source":"HSEC-2025-0002"},{"ecosystem":"Hackage","fixed":[],"introduced":["0.1"],"last_affected":[],"package":"cryptonite","purl":"pkg:hackage/cryptonite","source":"HSEC-2025-0002"},{"ecosystem":"crates.io","fixed":["2.0.0"],"introduced":["0"],"last_affected":[],"package":"ed25519-dalek","purl":null,"source":"GHSA-w5vr-6qhr-36cc"},{"ecosystem":"crates.io","fixed":["2.0.0"],"introduced":["0"],"last_affected":[],"package":"ed25519-dalek","purl":"pkg:cargo/ed25519-dalek","source":"GHSA-w5vr-6qhr-36cc"},{"ecosystem":"crates.io","fixed":["2.0.0"],"introduced":["0.0.0-0"],"last_affected":[],"package":"ed25519-dalek","purl":"pkg:cargo/ed25519-dalek","source":"RUSTSEC-2022-0093"}],"prev":{"headline":"iommu/mediatek: Fix crash on isr after kexec()","id":"CVE-2022-50236"},"products":["ed25519-dalek"],"published":"2025-07-28","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"open","licence":"CC0 1.0","name":"Haskell Security Response Team","prefix":"HSEC"},{"class":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-07-28","vendors":["dalek-cryptography"]},"summary":"Attackers can extract private keys via a signing oracle attack in the ed25519-dalek Rust library, compromising cryptographic security.","url":"https://insights.sbomify.com/CVE-2022-50237/"}