CVE-2019-20916

python-pip: directory traversal in _download_http_url() function in src/pip/_internal/download.py

Published Sep 4, 2020 CVSS 3.1 · 7.5 High EPSS 3.0% KEV · Not listed
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.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-2370-1 python-pip security update
Github GHSA Github GHSA GHSA-gpvv-69j7-gwj8 Path Traversal in pip
Ubuntu USN Ubuntu USN USN-4601-1 pip vulnerability
History

No history.

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 5, 2024, 3:00 AM
Reserved
Sep 4, 2020, 12:00 AM
Status
Modified
Published
Sep 4, 2020, 8:15 PM
Modified
Jun 17, 2026, 2:31 AM
Severity
Moderate
Public date
Apr 16, 2019, 12:00 AM