{"answers":{"affected":"2 open source packages ship an affected version, including rusty-paseto.","exploited":"There is no known exploitation of GHSA-j57r-4qw6-58r3 in the wild and no public exploit code.","fix":"Upgrade rusty-paseto to 0.6.0 or later.","what":"GHSA-j57r-4qw6-58r3 is a vulnerability in rusty-paseto, published on 7 Nov 2023."},"fix_prompt":"Check this codebase for GHSA-j57r-4qw6-58r3 and fix it if it is affected.\n\nWhat it is: GHSA-j57r-4qw6-58r3 is a vulnerability in rusty-paseto, published on 7 Nov 2023. \nExploitation: There is no known exploitation of GHSA-j57r-4qw6-58r3 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- rusty-paseto (crates.io): affected all versions; fixed in 0.6.0\n- rusty-paseto (crates.io): affected all versions; fixed in 0.6.0\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/GHSA-j57r-4qw6-58r3/ (Markdown: https://insights.sbomify.com/GHSA-j57r-4qw6-58r3/index.md)","id":"GHSA-j57r-4qw6-58r3","markdown":"https://insights.sbomify.com/GHSA-j57r-4qw6-58r3/index.md","name":"GHSA-j57r-4qw6-58r3","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"unknown","non_default_config":false,"product_category":"Rust PASETO library","requires_auth":"none","summary":"A dependency flaw in rusty_paseto allows private key extraction via unsafe serialization APIs, requiring an upgrade to secure key handling.","user_interaction":"not_required","vuln_class":"weak_cryptography"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"## Impact\n\nThe vulnerability, known as RUSTSEC-2022-0093, impacts the `ed25519-dalek` crate, which is a dependency of the `rusty-paseto` crate. This issue arises from a \"Double Public Key Signing Function Oracle Attack\" affecting versions of `ed25519-dalek` prior to v2.0. These versions expose an unsafe API for serializing and deserializing 64-byte keypairs that include both private and public keys, creating potential for certain attacks. `d25519-dalek` users utilizing these serialization and deserialization functions directly could potentially be impacted. \n\n## Patches\n\nThe vulnerability within the `ed25519-dalek` crate has been addressed in version 2.0. `rusty-paseto` has addressed it in release v0.6.0. \n\n## Workarounds\n\nUsers are recommended to upgrade to v0.6.0 of `rusty-paseto`. However, users should still ensure that their key serialization and deserialization practices are secure and avoid any practices that could lead to key exposure.\n\n## References\n\nMore information about RUSTSEC-2022-0093 can be found in the [RustSec Advisory Database](https://rustsec.org/advisories/RUSTSEC-2022-0093.html). Updates and details regarding the upcoming release of `rusty-paseto` will be documented in the project's [releases](https://github.com/your-repo/rusty-paseto/releases) and [changelog](https://github.com/your-repo/rusty-paseto/blob/main/CHANGELOG.md).  This issue was first reported by Dependabot on 2023-08-15. The source was reviewed by @rrrodzilla at that time and a determination was made that the vulnerability low harm to existing users due to the strongly typed nature of keys provided by the rusty-paseto API. @techport-om reported the vulnerability to the repository by discovering during a `cargo-audit` run on 2023-11-05 and opened [issue 28](https://github.com/rrrodzilla/rusty_paseto/issues/28). This advisory was created at that time to notify existing users.","ecosystems":["crates.io"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"rusty_paseto vulnerable to private key extraction due to ed25519-dalek dependency","id":"GHSA-j57r-4qw6-58r3","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"weak_cryptography","year":"2023"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"crates.io","fixed":["0.6.0"],"introduced":["0"],"last_affected":[],"package":"rusty-paseto","purl":null,"source":"GHSA-j57r-4qw6-58r3"},{"ecosystem":"crates.io","fixed":["0.6.0"],"introduced":["0"],"last_affected":[],"package":"rusty-paseto","purl":"pkg:cargo/rusty-paseto","source":"GHSA-j57r-4qw6-58r3"}],"products":null,"published":"2023-11-07","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"A dependency flaw in rusty_paseto allows private key extraction via unsafe serialization APIs, requiring an upgrade to secure key handling.","url":"https://insights.sbomify.com/GHSA-j57r-4qw6-58r3/"}