CVE-2021-41131

Published on: 10/19/2021 12:00:00 AM UTC

Last Modified on: 10/22/2021 08:44:00 PM UTC

CVE-2021-41131 - advisory for GHSA-wjw6-2cqr-j4qr

Source: Mitre Source: Nist Print: PDF PDF
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N

Certain versions of The Update Framework from Linuxfoundation contain the following vulnerability:

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.

  • CVE-2021-41131 has been assigned by URL Logo [email protected] to track the vulnerability - currently rated as HIGH severity.
  • Affected Vendor/Software: URL Logo theupdateframework - python-tuf version < 0.19

CVSS3 Score: 8.7 - HIGH

Attack
Vector
Attack
Complexity
Privileges
Required
User
Interaction
NETWORK HIGH NONE NONE
Scope Confidentiality
Impact
Integrity
Impact
Availability
Impact
CHANGED NONE HIGH HIGH

CVSS2 Score: 8.8 - HIGH

Access
Vector
Access
Complexity
Authentication
NETWORK MEDIUM NONE
Confidentiality
Impact
Integrity
Impact
Availability
Impact
NONE COMPLETE COMPLETE

CVE References

Description Tags Link
Client metadata path-traversal flaw can result in files written outside of metadata store · Advisory · theupdateframework/python-tuf · GitHub github.com
text/html
URL Logo CONFIRM github.com/theupdateframework/python-tuf/security/advisories/GHSA-wjw6-2cqr-j4qr
Merge pull request from GHSA-wjw6-2cqr-j4qr · theupdateframework/[email protected] · GitHub github.com
text/html
URL Logo MISC github.com/theupdateframework/python-tuf/commit/4ad7ae48fda594b640139c3b7eae21ed5155a102
Metadata API: Delegation role names validation · Issue #1527 · theupdateframework/python-tuf · GitHub github.com
text/html
URL Logo MISC github.com/theupdateframework/python-tuf/issues/1527

Related QID Numbers

  • 980406 Python (pip) Security Update for tuf (GHSA-wjw6-2cqr-j4qr)

Known Affected Configurations (CPE V2.3)

Type Vendor Product Version Update Edition Language
ApplicationLinuxfoundationThe Update FrameworkAllAllAllAll
  • cpe:2.3:a:linuxfoundation:the_update_framework:*:*:*:*:*:python:*:*:

Social Mentions

Source Title Posted (UTC)
Twitter Icon @CVEreport CVE-2021-41131 : python-tuf is a Python reference implementation of The Update Framework TUF . In both clients `t… twitter.com/i/web/status/1… 2021-10-19 17:53:40
© CVE.report 2021 Twitter Nitter Twitter Viewer |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report