Python-TUF vulnerable to incorrect threshold signature computation for new root metadata
Impact
The function _verify_root_self_signed(), introduced in v0.14.0, and which verifies self-signatures in a new root metadata file, counted multiple signatures by any new root key towards the new threshold. That is, any single new root key could theoretically provide enough signatures to meet the threshold for new key self-signatures required during root metadata update.
A scenario where this attack could be relevant is amazingly unlikely in practice to the point where labeling this issue as a security advisory is potentially overstating the impact of the issue. Given that new root keys only become trusted by the client after a successful root metadata update, which also requires the quorum of signatures from old trusted root keys, this issue has been evaluated as low in severity.
In particular, in order to exploit this vulnerability, an attacker must:
- Control one new root key.
- Craft a new root metadata file such that there is a number of signatures by this new root key greater than or equal to the new threshold.
- Cause a valid threshold of the old root keys to sign this new root metadata file.
- Cause this new root metadata file to be published on the repository.
- Cause clients to rotate to this new root metadata file.
Patches
A fix is available since version 0.16.0.
Workarounds
No workarounds are known for this issue.
References
- Pull request resolving the issue PR 1218
- Pull request which introduced the faulty computation of signature threshold on new root metadata PR 1101
- A similar previous issue with incorrectly computed signature thresholds in tuf is described in GHSA-pwqf-9h7j-7mv8
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | tuf | >= 0.14.0, < 0.16.0 | 0.16.0 |
References
- https://github.com/theupdateframework/python-tuf/security/advisories/GHSA-pwqf-9h7j-7mv8
- https://github.com/theupdateframework/python-tuf/security/advisories/GHSA-r7vq-6425-j94w
- https://github.com/theupdateframework/python-tuf/pull/1218
- https://github.com/theupdateframework/tuf/pull/1101
- https://github.com/theupdateframework/python-tuf
- Weakness (CWE)
-- Platform
- Python (PyPI)
- Package
tuf- Disclosed
- 15.09.2022
- Updated
- 11.10.2026 12:18
Sources and licenses
OSV / GitHub Advisory Database - GHSA-r7vq-6425-j94w - CC BY 4.0
Vulnerability history: tuf
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 7
- First → latest
- 01.2020 05.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Critical 1
- Medium 4
- Low 2
Disclosures per year
- 2020: 3
- 2021: 1
- 2022: 1
- 2023: 0
- 2024: 1
- 2025: 0
- 2026: 1
-
Python-TUF vulnerable to incorrect threshold signature computation for new root metadata this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.