CVE-2021-41131: linuxfoundation the_update_framework Path Traversal
Vulnerability summary
CVE-2021-41131 is a high (CVSS 8.8) Path Traversal vulnerability in linuxfoundation the_update_framework. EPSS estimates a 1.45% chance of exploitation in the next 30 days, higher than 72.9% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 19-10-2021PublishedVulnerability first disclosed.
- 18-11-2024Last modifiedVulnerability information updated.
Description
python-tuf is a Python reference implementation of The Update Framework (TUF). In both clients (`tuf/client` and `tuf/ngclient`), there is a path traversal vulnerability that in the worst case can overwrite files ending in `.json` anywhere on the client system on a call to `get_one_valid_targetinfo()`. It occurs because the rolename is used to form the filename, and may contain path traversal characters (ie `../../name.json`). The impact is mitigated by a few facts: It only affects implementations that allow arbitrary rolename selection for delegated targets metadata, The attack requires the ability to A) insert new metadata for the path-traversing role and B) get the role delegated by an existing targets metadata, The written file content is heavily restricted since it needs to be a valid, signed targets file. The file extension is always .json. A fix is available in version 0.19 or newer. There are no workarounds that do not require code changes. Clients can restrict the allowed character set for rolenames, or they can store metadata in files named in a way that is not vulnerable: neither of these approaches is possible without modifying python-tuf.
CVSS metrics
5 scores · 3 sources · 3 versions- OSV · PypiEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N
- NVDNIST8.7HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:HDiffers
EPSS trend
Probability
1.45%
Chance of exploitation in the next 30 days
Percentile
73%
Versus all other CVEs
30-day change
0.00 pp
From 1.45% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Linuxfoundation1 product
- the_update_framework≤ 0.18.1
PyPI1 product
- tuf< 4ad7ae48fda594b640139c3b7eae21ed5155a102 | < 0.19.0
Theupdateframework1 product
- python-tuf< 0.19.0
3 vendors · 3 products
References
6 links- github.com/theupdateframework/python-tuf/security/advisories/GHSA-wjw6-2cqr-j4qrX Refsource CONFIRMWEBAdvisoryThird Party Advisory
- github.com/theupdateframework/python-tuf/issues/1527X Refsource MISCWEBREPORTIssue TrackingThird Party Advisory
- github.com/theupdateframework/python-tuf/commit/4ad7ae48fda594b640139c3b7eae21ed5155a102X Refsource MISCWEBFIXPatchThird Party Advisory