Niedrig

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

  • Veröffentlicht: 15.09.2022
  • Aktualisiert: 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

Betroffene Software

Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.

PlattformPaketAnfällige VersionenBehoben in
Python (PyPI) tuf >= 0.14.0, < 0.16.0 0.16.0

Verweise

CVSS-Wert -
Schwäche (CWE)
-
Plattform
Python (PyPI)
Paket
tuf
Veröffentlicht
15.09.2022
Aktualisiert
11.10.2026 12:18

Quellen und Lizenzen

OSV / GitHub Advisory Database - GHSA-r7vq-6425-j94w - CC BY 4.0

Schwachstellenhistorie: tuf

Alle veröffentlichten Schwachstellen dieses Pakets (Python (PyPI)), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.

Einträge insgesamt
7
Erste → letzte
01.2020 05.2026
Ohne Fix
0
In Angriffen ausgenutzt
0

Verteilung nach Schweregrad

  • Kritisch 1
  • Mittel 4
  • Niedrig 2

Veröffentlichungen pro Jahr

  1. 2020: 3
  2. 2021: 1
  3. 2022: 1
  4. 2023: 0
  5. 2024: 1
  6. 2025: 0
  7. 2026: 1
  1. Mittel · 4.0 ghsa-qp9x-wp8f-qgjj < 7.0.0 7.0.0
  2. Niedrig ghsa-77hh-43cm-v8j6 >= 2.0.0, < 3.1.1 3.1.1
  3. Python-TUF vulnerable to incorrect threshold signature computation for new root metadata dieser Eintrag
    Niedrig ghsa-r7vq-6425-j94w >= 0.14.0, < 0.16.0 0.16.0
  4. Mittel · 7.5 CVE-2021-41131 < 0.19.0 0.19.0
  5. Mittel · 8.7 CVE-2020-15163 < 0.12.0 0.12.0
  6. Kritisch · 9.8 CVE-2020-6174 < 0.12.2 0.12.2
  7. Mittel · 5.3 CVE-2020-6173 >= 0.7.2, < 0.12.2 0.12.2

Erkennen Sie Schwachstellen in Ihrer Anwendung

Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.

Anwendung verbinden
DockRay Newsletter

Anwendungssicherheit in Ihrem Postfach

Wichtige Schwachstellen, konkrete Empfehlungen und praktische Tipps für Ihre Anwendungen. Wählen Sie Ihre Technologien und verfolgen Sie, was für Ihr Projekt relevant ist.

  • Eine tägliche Zusammenfassung neuer Schwachstellen, auch kritischer.
  • Benachrichtigungen über wichtige Updates.
  • Praktische Tipps zur Sicherheit und Überwachung von Anwendungen.

Leer lassen, um Meldungen zu allen Technologien zu erhalten.

Kostenlos anmelden. In jeder E-Mail mit einem Klick abmelden.