GHSA-wjw6-2cqr-j4qr · Severity: medium · Ecosystem: pip — Client metadata path-traversal
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.
Conclusion & alert: CVE-2021-41131 is rated Moderate Risk (54.9/100): CVSS High severity, with medium exploitation likelihood (EPSS 1.40%). Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.64% | 1.40% | +0.76% |
| 2 | 2025-11-21 | 0.83% | 0.64% | -0.19% |
| 3 | 2025-11-18 | — | 0.83% | — |
Full EPSS history (12 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 7.5 | 3.1 | HIGH |
|
2.2 | 4.7 | [email protected] |
| 8.7 | 3.1 | HIGH |
|
2.2 | 5.8 | [email protected] |
| 8.8 | 2.0 | HIGH |
|
8.6 | 9.2 | [email protected] |
GHSA-wjw6-2cqr-j4qr · Severity: medium · Ecosystem: pip — Client metadata path-traversal
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
unimportant | CVE-2021-41131 unimportant priority: Debian including 1 source packages (python-tuf), 3 status rows across 3 suites (forky, sid, trixie): resolved 3. | https://security-tracker.debian.org/tracker/CVE-2021-41131 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| linuxfoundation | the_update_framework | <= 0.18.1 | cpe:2.3:a:linuxfoundation:the_update_framework:*:*:*:*:*:python:*:* |
| URL | Tags |
|---|---|
| https://github.com/theupdateframework/python-tuf/commit/4ad7ae48fda594b640139c3b7eae21ed5155a102 | Patch Third Party Advisory |
| https://github.com/theupdateframework/python-tuf/issues/1527 | Issue Tracking Third Party Advisory |
| https://github.com/theupdateframework/python-tuf/security/advisories/GHSA-wjw6-2cqr-j4qr | Third Party Advisory |