Vulnerability
CVE-2023-5752
When installing a package from a Mercurial VCS URL (ie "pip install hg+...") with pip prior to v23.3, the specified Mercurial revision could be used to inject arbitrary configuration options to the "hg clone" call (ie "--config"). Controlling the Mercurial configuration can modify how and which repository is installed. This vulnerability does not affect users who aren't installing from Mercurial.
26 advisories report this vulnerability, across 11 ecosystems.
Advisories
-
ALAS2-2023-2349
Amazon Linux 2 2017.12 - ALAS2-2023-2349: medium priority package update for python-pip
-
ALAS2023-2023-442
Amazon Linux 2023 - ALAS2023-2023-442: Medium priority package update for python-pip
-
AZL-39958
CVE-2023-5752 affecting package python3 for versions less than 3.12.3-1
-
AZL-60006
CVE-2023-5752 affecting package python3 for versions less than 3.9.19-14
- CGA-9qfh-j3xq-r9qp
- CGA-f5fm-x686-93gq
- CGA-q59f-3xcf-jvmq
- CGA-q86w-jgr7-vgvg
- CGA-r9xh-5862-7p3m
- CGA-wg96-6537-c5r3
- CGA-wj68-qfx6-wf95
- CGA-xvjw-p6rj-6f7f
-
DEBIAN-CVE-2023-5752
When installing a package from a Mercurial VCS URL (ie "pip install hg+...") with pip prior to v23.3, the specified Mercurial revision could be used to inject arbitrary configuration options to the "hg clone" call (ie…
-
DLA-4348-1
python-pip - security update
-
GHSA-mq26-g339-26xf
Command Injection in pip when used with Mercurial
-
OESA-2026-2541
python-pip security update
-
OESA-2026-2542
python-pip security update
-
PYSEC-2023-228
When installing a package from a Mercurial VCS URL (ie "pip install hg+...") with pip prior to v23.3, the specified Mercurial revision could be used to inject arbitrary configuration options to the "hg clone" call (ie…
-
RHSA-2024:3781
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update
-
RHVEX-CVE-2023-5752
pip: Mercurial configuration injectable in repo revision when installing via pip
-
SUSE-SU-2023:4987-1
Security update for python-pip
-
SUSE-SU-2023:4988-1
Security update for python-pip
-
SUSE-SU-2024:0892-1
Security update for python36-pip
-
SUSE-SU-2024:3156-1
Security update for python312-pip
-
SUSEVEX-CVE-2023-5752
When installing a package from a Mercurial VCS URL (ie "pip install hg+...") with pip prior to v23.3, the specified Mercurial revision could be used to inject arbitrary configuration options to the "hg clone" call (ie…
-
UBUNTU-CVE-2023-5752
When installing a package from a Mercurial VCS URL (ie "pip install hg+...") with pip prior to v23.3, the specified Mercurial revision could be used to inject arbitrary configuration options to the "hg clone" call (ie…
References
- https://github.com/pypa/pip/pull/12306
- https://lists.fedoraproject.org/archives/list/[email protected]/message/622OZXWG72ISQPLM5Y57YCVIMWHD4C3U/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/65UKKF5LBHEFDCUSPBHUN4IHYX7SRMHH/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/FXUVMJM25PUAZRQZBF54OFVKTY3MINPW/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/KFC2SPFG5FLCZBYY2K3T5MFW2D22NG6E/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/YBSB3SUPQ3VIFYUMHPO3MEQI4BJAXKCZ/
- https://mail.python.org/archives/list/[email protected]/thread/F4PL35U6X4VVHZ5ILJU3PWUWN7H7LZXL/
- https://lists.debian.org/debian-lts-announce/2025/10/msg00028.html