Advisory

PYSEC-2020-173

Also known as: CVE-2019-20916, GHSA-gpvv-69j7-gwj8

Summary

The record has no summary.

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.

Severity

Not rated by the source.

Dates

Published
2020-09-04 20:15 UTC
Modified
2023-11-08 04:01 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: PyPA Advisory Database · CC BY 4.0

Sources & licences