Low

Python-TUF vulnerable to incorrect threshold signature computation for new root metadata

  • Disclosed: 15.09.2022
  • Updated: 11.10.2026 12:18

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:

  1. Control one new root key.
  2. 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.
  3. Cause a valid threshold of the old root keys to sign this new root metadata file.
  4. Cause this new root metadata file to be published on the repository.
  5. 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.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) tuf >= 0.14.0, < 0.16.0 0.16.0

References

CVSS score -
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

  1. 2020: 3
  2. 2021: 1
  3. 2022: 1
  4. 2023: 0
  5. 2024: 1
  6. 2025: 0
  7. 2026: 1
  1. Medium · 4.0 ghsa-qp9x-wp8f-qgjj < 7.0.0 7.0.0
  2. Python-TUF vulnerable to incorrect threshold signature computation for new root metadata this entry
    Low ghsa-r7vq-6425-j94w >= 0.14.0, < 0.16.0 0.16.0
  3. Medium · 7.5 CVE-2021-41131 < 0.19.0 0.19.0
  4. Medium · 8.7 CVE-2020-15163 < 0.12.0 0.12.0
  5. Critical · 9.8 CVE-2020-6174 < 0.12.2 0.12.2
  6. Medium · 5.3 CVE-2020-6173 >= 0.7.2, < 0.12.2 0.12.2

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.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.