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/authorizedkeys file. This occurs in _downloadhttp_url in _internal/download.py.
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "binary_version": "9.0.1-2.3~ubuntu1.18.04.4", "binary_name": "python-pip" }, { "binary_version": "9.0.1-2.3~ubuntu1.18.04.4", "binary_name": "python-pip-whl" }, { "binary_version": "9.0.1-2.3~ubuntu1.18.04.4", "binary_name": "python3-pip" } ] }