Niedrig

tuf's Metadata API: Targets.get_delegated_role() is missing input validation

  • Veröffentlicht: 16.02.2024
  • Aktualisiert: 11.10.2026 11:19

The security of both a TUF client and repository implementations depend on the concept of trusted Metadata objects verifying the signatures over other Metadata that it delegates to. This verification process uses Targets.get_delegated_role(delegated_role: str) to find the delegation information.

tuf.api.metadata.Targets.get_delegated_role() should ensure that the given delegated_rolename is actually a name of a role that is delegated by that Targets, but in the case of "succinct delegation" this does not happen.

tuf.ngclient users are not impacted but direct users of tuf.api.metadata could be impacted.

Impact

If an attacker can make a Metadata API user run Targets.get_delegated_role() so that

  1. the Targets uses succinct delegation
  2. the delegated_role argument is not actually delegated by the Targets

the result will be incorrect.

This also means that if an attacker can make a Metadata API user run Targets.verify_delegate() or Targets.get_verification_result() so that

  1. the delegating Targets uses a succinct delegation
  2. the delegated_role argument is the name of some unrelated Metadata
  3. that other Metadata is correctly signed by the keys defined in the succinct delegation

the result would be a successful verification even though the Targets in question does not actually delegate to delegated_role.

The impact is estimated to be low for following reasons:

  • This cannot impact a TUF client that implements the client workflow as specified since the delegated role name is not an input but is collected from the (trusted) delegating Targets itself
  • Actual signature verification is not bypassed: The verified metadata must still be correctly signed by the keys specified in the delegating role.
  • The described situations are somewhat hypothetical: there does not seem to be any reason for a python-tuf user (whether client or a repository) to use tuf.api.metadata in this way.

All users of tuf.ngclient are specifically not impacted. Users of tuf.api.metadata could be impacted if they use succinct delegations in a way described above.

Patches

A fix is available in python-tuf 3.1.1 as commit 77cb66bc and in later releases as commit eb4834d9._

Workarounds

tuf.api.metadata users should only call Targets.get_delegated_role(), Targets.verify_delegate() or Targets.get_verification_result() with delegated_role argument that is known to be delegated by the Targets in question.

Betroffene Software

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

PlattformPaketAnfällige VersionenBehoben in
Python (PyPI) tuf >= 2.0.0, < 3.1.1 3.1.1

Verweise

CVSS-Wert -
Schwäche (CWE)
-
Plattform
Python (PyPI)
Paket
tuf
Veröffentlicht
16.02.2024
Aktualisiert
11.10.2026 11:19

Quellen und Lizenzen

OSV / GitHub Advisory Database - GHSA-77hh-43cm-v8j6 - 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. tuf's Metadata API: Targets.get_delegated_role() is missing input validation dieser Eintrag
    Niedrig ghsa-77hh-43cm-v8j6 >= 2.0.0, < 3.1.1 3.1.1
  3. Mittel · 7.5 CVE-2021-41131 < 0.19.0 0.19.0
  4. Mittel · 8.7 CVE-2020-15163 < 0.12.0 0.12.0
  5. Kritisch · 9.8 CVE-2020-6174 < 0.12.2 0.12.2
  6. 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.