Rapid7 Vulnerability & Exploit Database

FreeBSD: VID-85D976BE-93E3-11EC-AAAD-14DAE9D5A9D2 (CVE-2021-41131): The Update Framwork -- path traversal vulnerability

Free InsightVM Trial No Credit Card Necessary
Watch Demo See how it all works
Back to Search

FreeBSD: VID-85D976BE-93E3-11EC-AAAD-14DAE9D5A9D2 (CVE-2021-41131): The Update Framwork -- path traversal vulnerability

Severity
9
CVSS
(AV:N/AC:M/Au:N/C:N/I:C/A:C)
Published
10/19/2021
Created
11/08/2022
Added
11/04/2022
Modified
11/04/2022

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.

Solution(s)

  • freebsd-upgrade-package-py310-tuf
  • freebsd-upgrade-package-py311-tuf
  • freebsd-upgrade-package-py37-tuf
  • freebsd-upgrade-package-py38-tuf
  • freebsd-upgrade-package-py39-tuf

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;