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. A fix was committed 6704f2ace.
{
"severity": "HIGH",
"github_reviewed": true,
"cwe_ids": [
"CWE-22"
],
"nvd_published_at": "2020-09-04T20:15:00Z",
"github_reviewed_at": "2021-05-04T22:55:04Z"
}