8.8

CVE-2021-41131: linuxfoundation the_update_framework Path Traversal

CVSS: 8.8v2.0HighModified
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) 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.

Overall risk
35/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.8/10
010
High · v2.0 (NVD)
EPSS score
1.45%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known 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

73%

Versus all other CVEs

30-day change

0.00 pp

From 1.45% on 18-09-2026

18-09-202618-10-2026
EPSS score
1.45%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

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

3 vendors · 3 products

References

6 links