CVE-2025-29780: PostQuantum Feldman VSS Post-Quantum Secure Feldman's Verifiable Secret Vulnerability

MODERATE
Advisory Identifier: GHSA-q65w-fg65-79f4
CWE-203 CWE-385 CWE-208
Published
Advisory Summary

CVE-2025-29780 is a MODERATE post-quantum secure feldman's verifiable secret vulnerability (CWE-203: Observable Discrepancy) affecting PostQuantum Feldman VSS libraries in the PyPI ecosystem. The issue involves post-quantum secure feldman's verifiable secret sharing has timing side-channels in matrix operations. Remediation is available in the latest vendor maintenance releases.

CVE-2025-29780 at a Glance

CVE Identifier CVE-2025-29780
GHSA Identifier GHSA-q65w-fg65-79f4
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-203: Observable Discrepancy
Affected Product PostQuantum Feldman VSS
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2025-29780

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

PostQuantum-Feldman-VSS fixed: Latest secure release
pip install PostQuantum-Feldman-VSS>=Latest secure release
Verify Direct and Transitive Dependencies

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

pip show PostQuantum-Feldman-VSS

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2025-29780, inspect your installed packages using pip:

pip show PostQuantum-Feldman-VSS

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

Note: The pip show PostQuantum-Feldman-VSS command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-203: Observable Discrepancy, where the product behaves differently or sends different responses under different circumstances in a way that is observable to an unauthorized actor. In PostQuantum Feldman VSS, 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

**Description:** The `feldman_vss` library contains timing side-channel vulnerabilities in its matrix operations, specifically within the `_find_secure_pivot` function and potentially other parts of `_secure_matrix_solve`. These vulnerabilities are due to Python's execution model, which does not guarantee constant-time execution. An attacker with the ability to measure the execution time of these functions (e.g., through repeated calls with carefully crafted inputs) could potentially recover secret information used in the Verifiable Secret Sharing (VSS) scheme. The `_find_secure_pivot` function, used during Gaussian elimination in `_secure_matrix_solve`, attempts to find a non-zero pivot element. However, the conditional statement `if matrix[row][col] != 0 and row_random < min_value:` has execution time that depends on the value of `matrix[row][col]`. This timing difference can be exploited by an attacker. The `constant_time_compare` function in this file also does not provide a constant-time guarantee. This advisory formalizes the timing side-channel vulnerabilities already documented in the library's "Known Security Vulnerabilities" section. The Python implementation of matrix operations in the _find_secure_pivot and _secure_matrix_solve functions cannot guarantee constant-time execution, potentially leaking information about secret polynomial coefficients. An attacker with the ability to make precise timing measurements of these operations could potentially extract secret information through statistical analysis of execution times, though practical exploitation would require significant expertise and controlled execution environments. **Impact:** Successful exploitation of these timing side-channels could allow an attacker to recover secret keys or other sensitive information protected by the VSS scheme. This could lead to a complete compromise of the shared secret. **References:** * File: `feldman_vss.py` * Function: `_find_secure_pivot` * Function: `_secure_matrix_solve` * Function: `constant_time_compare` * [Timing Attacks on Implementations of Diffie-Hellman, RSA, DSS, and Other Systems (1996)](https://www.rambus.com/wp-content/uploads/2015/08/TimingAttacks.pdf) - A seminal paper on timing attacks. * [Side-Channel Attacks](https://en.wikipedia.org/wiki/Side-channel_attack) - Wikipedia article on side-channel attacks. **Remediation:** As acknowledged in the library's documentation, these vulnerabilities cannot be adequately addressed in pure Python. The advisory recommends: 1. SHORT TERM: Consider using this library only in environments where timing measurements by attackers are infeasible. 2. MEDIUM TERM: Implement your own wrappers around critical operations using constant-time libraries in languages like Rust, Go, or C. 3. LONG TERM: Wait for the planned Rust implementation mentioned in the library documentation that will properly address these issues. Note that the usage of random.Random() identified in the _refresh_shares_additive function is intentional and secure as documented in the "False-Positive Vulnerabilities" section of the code, and should not be considered part of this vulnerability.

CVE-2025-29780 Affected PostQuantum Feldman VSS Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
PostQuantum-Feldman-VSS
PyPI
≤ 0.8.0b2

References

Frequently Asked Questions

What is CVE-2025-29780?
CVE-2025-29780 is a security vulnerability in PostQuantum Feldman VSS involving Post-Quantum Secure Feldman's Verifiable Secret Sharing has Timing Side-Channels in Matrix Operations under CWE-203: Observable Discrepancy.
Which PostQuantum Feldman VSS versions are affected?
Affected versions include releases prior to current release patches across affected packages: PostQuantum-Feldman-VSS.
What version fixes CVE-2025-29780?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is PostQuantum-Feldman-VSS affected?
Yes, PostQuantum-Feldman-VSS is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2025-29780?
CVE-2025-29780 is classified under CWE-203: Observable Discrepancy (The product behaves differently or sends different responses under different circumstances in a way that is observable to an unauthorized actor.).
How can I check PyPI dependencies for CVE-2025-29780?
Run the dependency tree command: 'pip show PostQuantum-Feldman-VSS'. 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-q65w-fg65-79f4",
  "modified" : "2025-03-19T15:28:08Z",
  "published" : "2025-03-14T19:55:10Z",
  "aliases" : [ "CVE-2025-29780" ],
  "summary" : "Post-Quantum Secure Feldman's Verifiable Secret Sharing has Timing Side-Channels in Matrix Operations",
  "details" : "**Description:**\n\nThe `feldman_vss` library contains timing side-channel vulnerabilities in its matrix operations, specifically within the `_find_secure_pivot` function and potentially other parts of `_secure_matrix_solve`. These vulnerabilities are due to Python's execution model, which does not guarantee constant-time execution. An attacker with the ability to measure the execution time of these functions (e.g., through repeated calls with carefully crafted inputs) could potentially recover secret information used in the Verifiable Secret Sharing (VSS) scheme.\n\nThe `_find_secure_pivot` function, used during Gaussian elimination in `_secure_matrix_solve`, attempts to find a non-zero pivot element. However, the conditional statement `if matrix[row][col] != 0 and row_random < min_value:` has execution time that depends on the value of `matrix[row][col]`. This timing difference can be exploited by an attacker.\n\nThe `constant_time_compare` function in this file also does not provide a constant-time guarantee.\n\nThis advisory formalizes the timing side-channel vulnerabilities already documented in the library's \"Known Security Vulnerabilities\" section. The Python implementation of matrix operations in the _find_secure_pivot and _secure_matrix_solve functions cannot guarantee constant-time execution, potentially leaking information about secret polynomial coefficients.\n\nAn attacker with the ability to make precise timing measurements of these operations could potentially extract secret information through statistical analysis of execution times, though practical exploitation would require significant expertise and controlled execution environments.\n\n**Impact:**\n\nSuccessful exploitation of these timing side-channels could allow an attacker to recover secret keys or other sensitive information protected by the VSS scheme.  This could lead to a complete compromise of the shared secret.\n\n**References:**\n\n*   File: `feldman_vss.py`\n*   Function: `_find_secure_pivot`\n*   Function: `_secure_matrix_solve`\n*   Function: `constant_time_compare`\n*   [Timing Attacks on Implementations of Diffie-Hellman, RSA, DSS, and Other Systems (1996)](https://www.rambus.com/wp-content/uploads/2015/08/TimingAttacks.pdf) - A seminal paper on timing attacks.\n*   [Side-Channel Attacks](https://en.wikipedia.org/wiki/Side-channel_attack) - Wikipedia article on side-channel attacks.\n\n**Remediation:**\n\nAs acknowledged in the library's documentation, these vulnerabilities cannot be adequately addressed in pure Python. The advisory recommends:\n\n1. SHORT TERM: Consider using this library only in environments where timing measurements by attackers are infeasible.\n\n2. MEDIUM TERM: Implement your own wrappers around critical operations using constant-time libraries in languages like Rust, Go, or C.\n\n3. LONG TERM: Wait for the planned Rust implementation mentioned in the library documentation that will properly address these issues.\n\nNote that the usage of random.Random() identified in the _refresh_shares_additive function is intentional and secure as documented in the \"False-Positive Vulnerabilities\" section of the code, and should not be considered part of this vulnerability.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "PostQuantum-Feldman-VSS"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.8.0b2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/DavidOsipov/PostQuantum-Feldman-VSS/security/advisories/GHSA-q65w-fg65-79f4"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-29780"
  }, {
    "type" : "WEB",
    "url" : "https://en.wikipedia.org/wiki/Side-channel_attack"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/DavidOsipov/PostQuantum-Feldman-VSS"
  }, {
    "type" : "WEB",
    "url" : "https://www.rambus.com/wp-content/uploads/2015/08/TimingAttacks.pdf"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-203", "CWE-208", "CWE-385" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-03-14T19:55:10Z",
    "nvd_published_at" : "2025-03-14T18:15:32Z"
  }
}