CVE-2021-41131
Python vulnerability analysis and mitigation

Overview

A path traversal vulnerability was discovered in python-tuf (The Update Framework) versions 0.18.1 and earlier. The vulnerability exists in both client implementations (tuf/client and tuf/ngclient) where rolename validation is insufficient when handling delegated targets metadata (GitHub Advisory).

Technical details

The vulnerability occurs because rolenames are used to form filenames without proper validation, allowing path traversal characters (e.g., ../../name.json) in delegated targets metadata. When get_one_valid_targetinfo() is called, this can lead to files being written outside the intended metadata store directory. The vulnerability requires the ability to both insert new metadata for the path-traversing role and get the role delegated by existing targets metadata (GitHub Advisory).

Impact

The vulnerability could allow an attacker to overwrite files ending in .json anywhere on the client system. However, the impact is somewhat limited since the written file content must be a valid, signed targets file and the file extension is always restricted to .json (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in version 0.19 and newer releases of python-tuf. There are no workarounds available that don't require code changes. While clients could theoretically restrict the allowed character set for rolenames or modify how metadata is stored in files, these approaches require modifying the python-tuf codebase (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-5882-5rx9-xgxpCRITICAL10
  • PythonPython
  • crawl4ai
NoYesJan 16, 2026
CVE-2026-23949HIGH8.6
  • PythonPython
  • jaraco.context
NoYesJan 20, 2026
GHSA-vx9w-5cx4-9796HIGH8.6
  • PythonPython
  • crawl4ai
NoYesJan 16, 2026
CVE-2026-23535HIGH8
  • PythonPython
  • wlc
NoYesJan 16, 2026
CVE-2026-23490HIGH7.5
  • PythonPython
  • fence-agents-intelmodular
NoYesJan 16, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management