Path Traversal in pip
High severity
GitHub Reviewed
Published
Jun 9, 2021
to the GitHub Advisory Database
•
Updated Oct 11, 2024
Description
Published by the National Vulnerability Database
Sep 4, 2020
Reviewed
May 4, 2021
Published to the GitHub Advisory Database
Jun 9, 2021
Last updated
Oct 11, 2024
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.
References