GHSA-r8gc-qc2c-c7vh

Suggest an improvement
Source
https://github.com/advisories/GHSA-r8gc-qc2c-c7vh
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-r8gc-qc2c-c7vh/GHSA-r8gc-qc2c-c7vh.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-r8gc-qc2c-c7vh
Aliases
Published
2025-03-14T19:55:17Z
Modified
2026-09-10T03:50:23Z
Severity
  • 5.4 (Medium) CVSS_V4 - CVSS:4.0/AV:P/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
Post-Quantum Secure Feldman's Verifiable Secret Sharing has Inadequate Fault Injection Countermeasures in `secure_redundant_execution`
Details

Description:

The secure_redundant_execution function in feldman_vss.py attempts to mitigate fault injection attacks by executing a function multiple times and comparing results. However, several critical weaknesses exist:

  1. Python's execution environment cannot guarantee true isolation between redundant executions
  2. The constant-time comparison implementation in Python is subject to timing variations
  3. The randomized execution order and timing provide insufficient protection against sophisticated fault attacks
  4. The error handling may leak timing information about partial execution results

These limitations make the protection ineffective against targeted fault injection attacks, especially from attackers with physical access to the hardware.

Impact:

A successful fault injection attack could allow an attacker to:

  1. Bypass the redundancy check mechanisms
  2. Extract secret polynomial coefficients during share generation or verification
  3. Force the acceptance of invalid shares during verification
  4. Manipulate the commitment verification process to accept fraudulent commitments

This undermines the core security guarantees of the Verifiable Secret Sharing scheme.

References:

Remediation:

Long-term remediation requires reimplementing the security-critical functions in a lower-level language like Rust.

Short-term mitigations:

  1. Deploy the software in environments with physical security controls
  2. Increase the redundancy count (from 5 to a higher number) by modifying the source code
  3. Add external verification of cryptographic operations when possible
  4. Consider using hardware security modules (HSMs) for key operations
Database specific
{
    "cwe_ids":  [
        "CWE-1240"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2025-03-14T19:55:17Z",
    "nvd_published_at":  "2025-03-14T18:15:32Z",
    "severity":  "MODERATE"
}
References

Affected packages

PyPI / postquantum-feldman-vss

Package

Name
postquantum-feldman-vss
View open source insights on deps.dev
Purl
pkg:pypi/postquantum-feldman-vss

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
0.8.0b2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-r8gc-qc2c-c7vh/GHSA-r8gc-qc2c-c7vh.json"