{"id":"GHSA-978j-88f3-p5j3","aliases":["GHSA-978j-88f3-p5j3","RUSTSEC-2020-0160"],"related":[],"kind":"vulnerability","state":"published","title":"Threshold value is ignored (all shares are n=3)","summary":"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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"ghsa"}],"published":"2020-01-21T12:00:00.000Z","modified":"2023-11-08T04:17:45.856Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"LOW"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"LOW"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.0.0"}],"ecosystem":"crates.io","package":"shamir","purl":"pkg:cargo/shamir","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"2.0.0"}],"ecosystem":"crates.io","package":"shamir","purl":"pkg:cargo/shamir","source":"rustsec"}],"references":[{"url":"https://github.com/Nebulosus/shamir/issues/3","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/Nebulosus/shamir","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0160.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/shamir","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-978j-88f3-p5j3","url":"https://github.com/advisories/GHSA-978j-88f3-p5j3","licence":"CC-BY-4.0","modified":"2023-11-08T04:17:45.856Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2020-0160","url":"https://rustsec.org/advisories/RUSTSEC-2020-0160.html","licence":"CC0-1.0","modified":"2023-11-08T04:17:45.856Z"}],"updatedAt":"2026-11-25T22:56:43.008Z"}