{"answers":{"affected":"3 open source packages ship an affected version, including shamir.","exploited":"There is no known exploitation of GHSA-978j-88f3-p5j3 in the wild and no public exploit code.","fix":"Upgrade shamir to 2.0.0 or later.","what":"GHSA-978j-88f3-p5j3 is a vulnerability in shamir, published on 21 Jan 2020."},"fix_prompt":"Check this codebase for GHSA-978j-88f3-p5j3 and fix it if it is affected.\n\nWhat it is: GHSA-978j-88f3-p5j3 is a vulnerability in shamir, published on 21 Jan 2020. \nExploitation: There is no known exploitation of GHSA-978j-88f3-p5j3 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- shamir (crates.io): affected all versions; fixed in 2.0.0\n- shamir (crates.io): affected all versions; fixed in 2.0.0\n- shamir (crates.io): affected from 0.0.0-0; fixed in 2.0.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-978j-88f3-p5j3/ (Markdown: https://insights.sbomify.com/GHSA-978j-88f3-p5j3/index.md)","id":"GHSA-978j-88f3-p5j3","markdown":"https://insights.sbomify.com/GHSA-978j-88f3-p5j3/index.md","name":"GHSA-978j-88f3-p5j3","record":{"aliases":["RUSTSEC-2020-0160"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"unknown","non_default_config":false,"product_category":"Rust secret sharing crate","requires_auth":"none","summary":"A Rust library flaw forces a fixed threshold of three shares, ignoring configuration and weakening the security of secret sharing implementations.","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":"Affected versions of this crate did not properly calculate secret shares requirements.\n\nThis reduces the security of the algorithm by restricting the crate to always\nusing a threshold value of three, rather than a configurable limit.\n\nThe flaw was corrected by correctly configuring the threshold.","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":"Threshold value is ignored (all shares are n=3)","id":"GHSA-978j-88f3-p5j3","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"weak_cryptography","year":"2020"},"n_packages":3,"n_references":null,"packages":[{"ecosystem":"crates.io","fixed":["2.0.0"],"introduced":["0"],"last_affected":[],"package":"shamir","purl":null,"source":"GHSA-978j-88f3-p5j3"},{"ecosystem":"crates.io","fixed":["2.0.0"],"introduced":["0"],"last_affected":[],"package":"shamir","purl":"pkg:cargo/shamir","source":"GHSA-978j-88f3-p5j3"},{"ecosystem":"crates.io","fixed":["2.0.0"],"introduced":["0.0.0-0"],"last_affected":[],"package":"shamir","purl":"pkg:cargo/shamir","source":"RUSTSEC-2020-0160"}],"products":null,"published":"2020-01-21","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"A Rust library flaw forces a fixed threshold of three shares, ignoring configuration and weakening the security of secret sharing implementations.","url":"https://insights.sbomify.com/GHSA-978j-88f3-p5j3/"}