Security mailing lists by PureSourceCode

CVE-2021-41131

HIGH 8.7CVSS 3.1

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.

Published
19 Oct 2021
Last modified
8 Jul 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-22
Also known as
GHSA-wjw6-2cqr-j4qrPYSEC-2021-376
Sources
NVDJSONOSV GHSA-wjw6-2cqr-j4qrJSONOSV PYSEC-2021-376JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:H/SA:N
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 8.7 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:H
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 HIGH 8.8 AV:N/AC:M/Au:N/C:N/I:C/A:C

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD linuxfoundation the_update_framework
cpe:2.3:a:linuxfoundation:the_update_framework:*:*:*:*:*:python:*:*
<= 0.18.1
OSV PyPI tuf < 0.19.0 0.19.0

References

History

  • 25 Nov 2026 20:33 UTC · NVD: first stored (published 19 Oct 2021)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 19 Oct 2021)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 19 Oct 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.