# GHSA-978j-88f3-p5j3: Threshold value is ignored (all shares are n=3)

- Severity: Low (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-01-21T12:00:00.000Z
- Modified: 2023-11-08T04:17:45.856Z
- Also known as: RUSTSEC-2020-0160

## Description

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.

(As written by GitHub Advisory Database.)

## Affected

- shamir (crates.io): before 2.0.0; from 0.0.0-0 before 2.0.0

## References

- <https://github.com/Nebulosus/shamir/issues/3> (report, web)
- <https://github.com/Nebulosus/shamir> (package)
- <https://rustsec.org/advisories/RUSTSEC-2020-0160.html> (advisory, web)
- <https://crates.io/crates/shamir> (package)

## Sources

- GitHub Advisory Database: [GHSA-978j-88f3-p5j3](https://github.com/advisories/GHSA-978j-88f3-p5j3), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2020-0160](https://rustsec.org/advisories/RUSTSEC-2020-0160.html), CC0-1.0, modified 2023-11-08

---

Page: https://cve.day/GHSA-978j-88f3-p5j3 · Whole record: https://cve.day/GHSA-978j-88f3-p5j3.json · Rebuilt by cve.day 2026-11-25T22:56:43.008Z
