tuf's Metadata API: Targets.get_delegated_role() is missing input validation
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
- the
Targetsuses succinct delegation - the
delegated_roleargument is not actually delegated by theTargets
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
- the delegating
Targetsuses a succinct delegation - the
delegated_roleargument is the name of some unrelated Metadata - 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.metadatain 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.
Software afectado
Haz clic en una tecnología para ver todas sus vulnerabilidades.
| Plataforma | Paquete | Versiones vulnerables | Corregida en |
|---|---|---|---|
| Python (PyPI) | tuf | >= 2.0.0, < 3.1.1 | 3.1.1 |
Referencias
- https://github.com/theupdateframework/python-tuf/security/advisories/GHSA-77hh-43cm-v8j6
- https://github.com/theupdateframework/python-tuf/commit/77cb66bc879d108c449ba4c46dfb0e3a9e57a785
- https://github.com/theupdateframework/python-tuf/commit/eb4834d9205d07ae164bc6c5b97787585c0acfdc
- https://github.com/theupdateframework/python-tuf
- https://github.com/theupdateframework/python-tuf/releases/tag/v3.1.1
- Debilidad (CWE)
-- Plataforma
- Python (PyPI)
- Paquete
tuf- Publicada
- 16.02.2024
- Actualizado
- 11.10.2026 11:19
Fuentes y licencias
OSV / GitHub Advisory Database - GHSA-77hh-43cm-v8j6 - CC BY 4.0
Historial de vulnerabilidades: tuf
Todas las vulnerabilidades publicadas de este paquete (Python (PyPI)), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.
- Entradas en total
- 7
- Primera → última
- 01.2020 05.2026
- Sin corrección
- 0
- Explotada en ataques
- 0
Distribución por gravedad
- Crítica 1
- Media 4
- Baja 2
Divulgaciones por año
- 2020: 3
- 2021: 1
- 2022: 1
- 2023: 0
- 2024: 1
- 2025: 0
- 2026: 1
-
tuf's Metadata API: Targets.get_delegated_role() is missing input validation esta entrada
Identifica las vulnerabilidades de tu aplicación
Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.