GitHub Advisoryadvisory · PyPI
GHSA-f8mr-jv2c-v8mg Invalid root may become trusted root in The Update Framework (TUF)
MEDIUM
Official page ↗
- Aliases
- CVE-2020-15163
- Ecosystem
- PyPI
- Packages
- tuf
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
- Weaknesses
- CWE-345, CWE-863
- Reviewed
- 2020-09-09
Affected packages
• PyPI tuf: < 0.12.0 → fixed in 0.12.0
Description
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
• Pull request resolving the invalid root becoming trusted issue PR 885
• Pull request implementing self verification of newly downloaded root metadata PR 1101
Related
Alias · CVE (1)
- CVE-2020-15163 Python TUF (The Update Framework) reference implementation before version 0.12 it will incorrectly trust a previously downloaded root… vulnerability
References
- https://github.com/theupdateframework/tuf/security/advisories/GHSA-f8mr-jv2c-v8mg web
- https://nvd.nist.gov/vuln/detail/CVE-2020-15163 advisory
- https://github.com/theupdateframework/tuf/pull/885 web
- https://github.com/theupdateframework/tuf/commit/3d342e648fbacdf43a13d7ba8886aaaf07334af7 web
- https://github.com/pypa/advisory-database/tree/main/vulns/tuf/PYSEC-2020-145.yaml web
- https://github.com/theupdateframework/tuf package
- https://github.com/theupdateframework/tuf/releases/tag/v0.12.0 web
- https://pypi.org/project/tuf web