Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🐍
🐍 PyPI
Not in CISA KEV
HIGH severity

CVE-2019-20916 — pip

HIGHFix: gzpan123/pip@a4c735b

CVE-2019-20916 is a high-severity (CVSS 7.5) Path Traversal vulnerability in pip. 1 public exploit reference exists, so weaponization risk is real. A fix is available for pip — see the affected versions and patch details below.

Path Traversal in pip

Also known asGHSA-gpvv-69j7-gwj8PYSEC-2020-173
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
1 known
Exploitation data as of Oct 9, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
3.0%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs87th percentile — riskier than 87% of all scored CVEsHighest risk
0.00%1.25%2.50%3.75%0.6%3.0%Apr 26Aug 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

CVE-2019-20916 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.

Where this sits among everything scored

Of 385,738 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.

Real-World Exposure

1 pkg affected
🐍pip

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.

Description

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.

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐍PyPIpipall versions19.2pip install --upgrade 'pip==19.2'

Affected Products

5 products · 7 configurations
OS
debian linuxdebian
1 version
9.0
OS
leapopensuse
2 versions
15.115.2
Application
communications cloud native core network function cloud native environmentoracle
2 versions
1.10.022.1.0
Application
communications cloud native core policyoracle
1 version
1.15.0
Application
pippypa
< 19.2
range
Exploits & PoCs
1

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for pip, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update pip to 19.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2019-20916 is resolved across your whole dependency graph.

  3. Workarounds

    Resolve every user-supplied path to its canonical form and reject anything that escapes the intended directory, and run the component under an account that has no read or write access outside the directory it legitimately serves.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatModerate

This issue has been rated as having Moderate impact because of the preconditions needed to trigger the flaw: it only affects Python Wheels and requires the user to pip-install a wheel from a malicious server. Installing software from untrusted servers is insecure by definition and strongly discouraged, as it may lead…

Workaround published by Red Hat
Avoid downloading or installing packages from potentially malicious servers via the command-line "pip download" or "pip install".
Source: Red Hat security advisory for CVE-2019-20916 (CC BY 4.0)
ProductFixed inAdvisory
Red Hat Enterprise Linux 7python-virtualenv-0:15.1.0-7.el7_9RHSA-2022:5234
Red Hat Enterprise Linux 8python-pip-0:9.0.3-18.el8RHSA-2020:4432
Red Hat Enterprise Linux 8python27:2.7-8030020200819165638.851f4228RHSA-2020:4654
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-python36-python-0:3.6.12-1.el6RHSA-2020:4285
Red Hat Software Collections for Red Hat Enterprise Linux 7python27-python-0:2.7.18-2.el7RHSA-2020:4273

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is CVE-2019-20916 in your dependencies?

Find it across PyPI, including transitive dependencies.

CVE-2019-20916: pip Path Traversal — Fixed in 19.2