CVE-2019-20916

HIGH EPSS 85.8%
Published Sep 4, 20205y ago · Modified Jun 17, 20262w ago
7.5 CVSS 3.1
High
Find Similar
Published Sep 4, 2020 5y ago
Last Modified Jun 17, 2026 2w ago

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.

CVSS Details

Base Score
7.5
Exploitability
3.9
Impact
3.6
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction None
Scope Unchanged
Confidentiality None
Integrity High
Availability None

Threat Intelligence

EPSS Exploit Probability
85.8% percentile
Exploit & Patch Status
Public Exploit Known
Patch Available

Weaknesses 1

CWE-22 Path Traversal Resource Mgmt

Affected Products 7

VendorProductVersionRange
pypapip* <19.2
opensuseleap15.1any
opensuseleap15.2any
debiandebian_linux9.0any
oraclecommunications_cloud_native_core_network_function_cloud_native_environment1.10.0any
oraclecommunications_cloud_native_core_network_function_cloud_native_environment22.1.0any
oraclecommunications_cloud_native_core_policy1.15.0any

References 8

  • lists.opensuse.org http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00005.html
    Mailing ListThird Party Advisory
  • lists.opensuse.org http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00010.html
    Mailing ListThird Party Advisory
  • github.com https://github.com/gzpan123/pip/commit/a4c735b14a62f9cb864533808ac63936704f2ace
    Patch
  • github.com https://github.com/pypa/pip/compare/19.1.1...19.2
    Patch
  • github.com https://github.com/pypa/pip/issues/6413
    ExploitPatch
  • lists.debian.org https://lists.debian.org/debian-lts-announce/2020/09/msg00010.html
    Mailing ListThird Party Advisory
  • oracle.com https://www.oracle.com/security-alerts/cpuapr2022.html
    PatchThird Party Advisory
  • oracle.com https://www.oracle.com/security-alerts/cpujul2022.html
    PatchThird Party Advisory

Remediation

  • github.com https://github.com/gzpan123/pip/commit/a4c735b14a62f9cb864533808ac63936704f2ace
    Patch
  • github.com https://github.com/pypa/pip/compare/19.1.1...19.2
    Patch
  • github.com https://github.com/pypa/pip/issues/6413
    ExploitPatch
  • oracle.com https://www.oracle.com/security-alerts/cpuapr2022.html
    PatchThird Party Advisory
  • oracle.com https://www.oracle.com/security-alerts/cpujul2022.html
    PatchThird Party Advisory