8.8

CVE-2021-41131: Client metadata path-traversal in python-tuf

Modified
AliasesGHSA-wjw6-2cqr-j4qrPYSEC-2021-376
Published 19-10-2021Last modified 18-11-2024

Vulnerability summary

CVE-2021-41131 is a high (CVSS 8.8) vulnerability in linuxfoundation the_update_framework. EPSS estimates a 1.45% chance of exploitation in the next 30 days, higher than 74.2% of scored vulnerabilities.

Priority
Prioritisesevere

Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)

Source freshness unavailable

How is this decided?
CVSS score
8.8/10
010
High · v2.0 (NVD)
EPSS score
1.45%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 0 · Related 1

Timeline

  1. 19-10-2021
    PublishedVulnerability first disclosed.
  2. 18-11-2024
    Last 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

EPSS trend

Probability

1.45%

Chance of exploitation in the next 30 days

Percentile

74%

Versus all other CVEs

30-day change

No change 0.00 pp

From 1.45% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Linuxfoundation1 product
PyPI1 product
  • tuf< 4ad7ae48fda594b640139c3b7eae21ed5155a102 | < 0.19.0
Theupdateframework1 product

3 vendors · 3 products

References

6 links