{"id":"GHSA-978j-88f3-p5j3","aliases":["RUSTSEC-2020-0160"],"status":"published","title":"Threshold value is ignored (all shares are n=3)","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.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2020-01-21T12:00:00Z","modified":"2023-11-08T04:17:45Z","fixes":[{"ecosystem":"crates.io","package":"shamir","fixed_in":["2.0.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"shamir","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.0"}]}]},{"source":"osv","ecosystem":"crates.io","package":"shamir","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.0.0"}]}]},{"source":"osv","ecosystem":"crates.io","package":"shamir","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"2.0.0"}]}]}],"references":[{"url":"https://github.com/Nebulosus/shamir/issues/3","tags":["web","report"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0160.html","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-978j-88f3-p5j3"},{"url":"https://github.com/Nebulosus/shamir","tags":["package"]},{"url":"https://crates.io/crates/shamir","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-978j-88f3-p5j3","title":"Threshold value is ignored (all shares are n=3)","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.\n","status":"published","published":"2022-06-17T00:18:43Z","modified":"2023-01-12T05:00:59Z","updated_at":"2026-11-02T14:36:13.23016Z"}],"osv":[{"id":"GHSA-978j-88f3-p5j3","title":"Threshold value is ignored (all shares are n=3)","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.\n","status":"published","published":"2022-06-17T00:18:43Z","modified":"2023-11-08T04:17:45.856172Z","updated_at":"2026-11-02T15:46:43.524801Z"},{"id":"RUSTSEC-2020-0160","title":"Threshold value is ignored (all shares are n=3)","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.","status":"published","published":"2020-01-21T12:00:00Z","modified":"2023-11-08T04:17:45.856172Z","updated_at":"2026-11-02T15:53:39.492624Z"}]}}
