8.7high
Invalid root may become trusted root in The Update Framework (TUF)
- Severity
- 8.7high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.67% (higher than 53% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-f8mr-jv2c-v8mgPYSEC-2020-145
Description
Python TUF (The Update Framework) reference implementation before version 0.12 it will incorrectly trust a previously downloaded root metadata file which failed verification at download time. This allows an attacker who is able to serve multiple new versions of root metadata (i.e. by a person-in-the-middle attack) culminating in a version which has not been correctly signed to control the trust chain for future updates. This is fixed in version 0.12 and newer.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| theupdateframework tuf | < 0.12 | CVE List |
| tuf (PyPI) | before 0.12.0, before 3d342e648fbacdf43a13d7ba8886aaaf07334af7 | GitHub Advisory Database, PyPA Advisory Database |
| linuxfoundation the_update_framework | before 0.12.0 | NVD |
All scores
| GitHub_M | 8.7high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N |
| GitHub | 8.7medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N |
| NVD | 8.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N |
| NVD | 4.9medium CVSS:2.0 | AV:N/AC:M/Au:S/C:P/I:P/A:N |
Classification
What each source says
CVE List
Python TUF (The Update Framework) reference implementation before version 0.12 it will incorrectly trust a previously downloaded root metadata file which failed verification at download time. This allows an attacker who is able to serve multiple new versions of root metadata (i.e. by a person-in-the-middle attack) culminating in a version which has not been correctly signed to control the trust chain for future updates. This is fixed in version 0.12 and newer.
GitHub Advisory Database
Impact
The Python TUF reference implementation tuf<0.12 will incorrectly trust a previously downloaded root metadata file which failed verification at download time. This allows an attacker who is able to serve multiple new versions of root metadata (i.e. by a man-in-the-middle attack) culminating in a version which has not been correctly signed to control the trust chain for future updates.
While investigating the reported vulnerability, we discovered that the detailed client workflow was not fully implemented. Specifically, for step 1.3 the newly downloaded root metadata was not being verified with a threshold of keys specified in the new root metadata file. This missing step of the client workflow has been implemented in PR #1101, which is included in v0.14.0 of tuf.
Patches
A fix, is available in version 0.12 and newer.
Workarounds
No workarounds are known for this issue.
References
NVD (es)
Una implementación de referencia de Python TUF (The Update Framework) anterior a la versión 0.12, confiará incorrectamente en un archivo de metadatos root descargado previamente que presentó un fallo al verificar en el momento de la descarga. Esto permite a un atacante que es capaz servir múltiples versiones nuevas de metadatos root (es decir, mediante un ataque de tipo person-in-the-middle) culminar en una versión que no ha sido firmada correctamente para controlar la cadena de confianza de futuras actualizaciones. Esto es corregido en la versión 0.12 y mas recientes.
References
| https://github.com/theupdateframework/tuf/security/advisories/GHSA-f8mr-jv2c-v8mg | advisory, third-party-advisory, web | |
| https://github.com/theupdateframework/tuf/pull/885 | patch, third-party-advisory, web | |
| https://github.com/theupdateframework/tuf/releases/tag/v0.12.0 | third-party-advisory, web | |
| https://pypi.org/project/tuf | package, product, vendor-advisory, web | |
| https://github.com/theupdateframework/tuf/commit/3d342e648fbacdf43a13d7ba8886aaaf07334af7 | broken-link, fix, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-15163 | advisory | |
| https://github.com/pypa/advisory-database/tree/main/vulns/tuf/PYSEC-2020-145.yaml | web | |
| https://github.com/theupdateframework/tuf | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-15163 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-f8mr-jv2c-v8mg changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2020-15163 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2020-145 changed 2023-11-08 | CC-BY-4.0 |