GHSA-978j-88f3-p5j3: Shamir Threshold Value Is Ignored (all Vulnerability

LOW
Published
Advisory Summary

GHSA-978j-88f3-p5j3 is a LOW threshold value is ignored (all vulnerability (General Security Weakness) affecting Shamir libraries in the crates.io ecosystem. The issue involves threshold value is ignored (all shares are n=3). Remediation is available by upgrading affected packages to version 2.0.0.

GHSA-978j-88f3-p5j3 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-978j-88f3-p5j3
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Shamir
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-978j-88f3-p5j3

To remediate this vulnerability, upgrade all affected Shamir dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

shamir fixed: 2.0.0
Upgrade shamir to 2.0.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for shamir

How to Check if You Are Affected

To determine whether your application is affected by GHSA-978j-88f3-p5j3, inspect your project dependencies for Shamir:

inspect dependencies for shamir

Analyze the terminal output to locate any version of Shamir in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Shamir, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

GHSA-978j-88f3-p5j3 Affected Shamir Versions

1 component(s)
Fixed Versions:
2.0.0
Product / Package Ecosystem Affected Versions Fixed Version
shamir
crates.io
< 2.0.0
2.0.0

References

Frequently Asked Questions

What is GHSA-978j-88f3-p5j3?
GHSA-978j-88f3-p5j3 is a security vulnerability in Shamir involving Threshold value is ignored (all shares are n=3) under General Security Weakness.
Which Shamir versions are affected?
Affected versions include releases prior to 2.0.0 across affected packages: shamir.
What version fixes GHSA-978j-88f3-p5j3?
Upgrading to 2.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is shamir affected?
Yes, shamir is affected in releases prior to 2.0.0. Upgrade your dependency to 2.0.0 or later.
What CWE is associated with GHSA-978j-88f3-p5j3?
GHSA-978j-88f3-p5j3 is classified under General Security Weakness.
How can I check crates.io dependencies for GHSA-978j-88f3-p5j3?
Run the dependency tree command: 'inspect dependencies for shamir'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-978j-88f3-p5j3",
  "modified" : "2022-06-17T00:18:43Z",
  "published" : "2022-06-17T00:18:43Z",
  "aliases" : [ ],
  "summary" : "Threshold value is ignored (all shares are n=3)",
  "details" : "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",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "shamir"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/Nebulosus/shamir/issues/3"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Nebulosus/shamir"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2020-0160.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-06-17T00:18:43Z",
    "nvd_published_at" : null
  }
}