diff --git a/crates/shamir/RUSTSEC-0000-0000.md b/crates/shamir/RUSTSEC-0000-0000.md new file mode 100644 index 0000000..36ef396 --- /dev/null +++ b/crates/shamir/RUSTSEC-0000-0000.md @@ -0,0 +1,20 @@ +```toml +[advisory] +id = "RUSTSEC-0000-0000" +package = "shamir" +date = "2020-01-21" +url = "https://github.com/Nebulosus/shamir/issues/3" +categories = ["crypto-failure"] + +[versions] +patched = [">= 2.0.0"] +``` + +# Threshold value is ignored (all shares are n=3) + +Affected versions of this crate did not properly calculate secret shares requirements. + +This reduces the security of the algorithm by restricting the crate to always +using a threshold value of three, rather than a configurable limit. + +The flaw was corrected by correctly configuring the threshold.