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
Czego dotyczy
Kliknij technologię, aby zobaczyć wszystkie dotyczące jej podatności.
| Platforma | Paczka | Podatne wersje | Poprawka w wersji |
|---|---|---|---|
| Python (PyPI) | tuf | >= 0.14.0, < 0.16.0 | 0.16.0 |
Odnośniki
- 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
- Słabość (CWE)
-- Platforma
- Python (PyPI)
- Paczka
tuf- Ujawniono
- 15.09.2022
- Aktualizacja
- 11.10.2026 12:18
Źródła i licencje
OSV / GitHub Advisory Database - GHSA-r7vq-6425-j94w - CC BY 4.0
Historia podatności: tuf
Wszystkie opisane podatności tej paczki (Python (PyPI)), od najnowszej. Widać, czy to jednorazowa wpadka, czy paczka, której trzeba pilnować.
- Wszystkich wpisów
- 7
- Pierwsza → ostatnia
- 01.2020 05.2026
- Bez poprawki
- 0
- Wykorzystywana w atakach
- 0
Rozkład istotności
- Krytyczna 1
- Średnia 4
- Niska 2
Ujawnienia w latach
- 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 ten wpis
Dowiedz się, które podatności dotyczą Twojej aplikacji
Po podłączeniu integracji DockRay i włączeniu raportowania oprogramowania DockRay porównuje zgłoszone wersje komponentów ze znanymi podatnościami i powiadamia o potwierdzonych dopasowaniach. Zakres zależy od obsługiwanej technologii i dostępnych biuletynów.