Skip to content
OpenAdvisories
Medium · 5.9 Public exploit CVE-2013-5123 EUVD-2019-0103GHSA-c5h8-cq4v-cvfmPYSEC-2019-160

Improper Authentication in pip

Published Nov 5, 2019 · Updated Aug 6, 2024 · Assigned by mitre

Description

The mirroring support (-M, --use-mirrors) in Python Pip before 1.5 uses insecure DNS querying and authenticity checks which allows attackers to perform man-in-the-middle attacks.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-pip 1.4.1-1 —
Debian 13 python-pip 1.4.1-1 —
Debian 12 python-pip 1.4.1-1 —
ReleasePackageFixed inAdvisory
SLES 15 SP3 python39-pip 20.2.4-7.5.1 SUSE-FU-2021:2130-1
SLES 15 SP3 python39-setuptools 44.1.1-7.3.1 SUSE-FU-2021:2130-1
SLES 12 SP4 python-ply 3.4-3.3.1 SUSE-RU-2019:2505-1
SLES 12 python-jmespath 0.9.2-10.6.1 SUSE-RU-2019:2505-1
SLES 12 python-jsonschema 2.2.0-3.3.1 SUSE-RU-2019:2505-1
SLES 12 python-paramiko 1.18.5-2.15.1 SUSE-RU-2019:2505-1
SLES 12 python-pip 10.0.1-11.6.1 SUSE-RU-2019:2505-1
SLES 12 python-ply 3.4-3.3.1 SUSE-RU-2019:2505-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP4 python-ply 3.4-3.3.1 SUSE-RU-2019:2505-1
SUSE OpenStack Cloud 7 python-pip 10.0.1-11.6.1 SUSE-RU-2019:2505-1
SUSE OpenStack Cloud 7 python-ply 3.4-3.3.1 SUSE-RU-2019:2505-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-pip 9.0.1-1.1 openSUSE-SU-2024:10098-1
openSUSE Tumbleweed python2-pip 20.0.2-2.6 openSUSE-SU-2024:11281-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI pip < 1.5 1.5 GHSA-c5h8-cq4v-cvfm

Advisories 4

References