CVEvulnerability

CVE-2019-20916

7.5 HIGH Published 2020-09-04 Modified 2026-06-17 Official page ↗
Status
Modified
Published
2020-09-04
Last modified
2026-06-17
Assigner
[email protected]
CVSS 3.1 ([email protected])
7.5 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS 2.0 ([email protected])
5.0 MEDIUM — AV:N/AC:L/Au:N/C:N/I:P/A:N
Weaknesses
CWE-22

Description

The pip package before 19.2 for Python allows Directory Traversal when a URL is given in an install command, because a Content-Disposition header can have ../ in a filename, as demonstrated by overwriting the /root/.ssh/authorized_keys file. This occurs in _download_http_url in _internal/download.py.

Affected configurations

• pypa pip (< 19.2) • opensuse leap 15.1 • opensuse leap 15.2 • debian debian linux 9.0 • oracle communications cloud native core network function cloud native environment 1.10.0 • oracle communications cloud native core network function cloud native environment 22.1.0 • oracle communications cloud native core policy 1.15.0

Related

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

Referenced by CWE · observed example (2)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
  • CWE-23 Relative Path Traversal weakness

References