Advisory

GHSA-gpvv-69j7-gwj8

Also known as: CVE-2019-20916, PYSEC-2020-173

Summary

Path Traversal in pip

Details

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. A fix was committed 6704f2ace.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-06-09 17:35 UTC
Modified
2024-10-14 18:39 UTC

Affected packages and fixes

pip

PyPI · All systems

Affected

  • introduced 0, fixed 19.2 (ecosystem)

Fixed versions

19.2

Fix

  • Fixed version 19.2
    pip install --upgrade pip==19.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences