Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
Mercurial config injection when installing from Mercurial repo
published 2 years ago
Summary
If you install software from a Mercurial repository using pip, a malicious revision could be used to change how the repository is cloned. This only affects users who install software from Mercurial repositories. To protect yourself, make sure you're using pip version 23.3 or later.
What to do
- Update pip to version 23.3.0.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| Bitnami | – | pip |
< 23.3.0 Fix: upgrade to 23.3.0
|
Original advisory text
Mercurial configuration injectable in repo revision when installing via pip
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.
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.
References
- https://github.com/pypa/pip/pull/12306 URL
- https://mail.python.org/archives/list/[email protected]/thread/F4PL35... URL
- https://lists.fedoraproject.org/archives/list/[email protected]... URL
- https://lists.fedoraproject.org/archives/list/[email protected]... URL
- https://lists.fedoraproject.org/archives/list/[email protected]... URL
- https://lists.fedoraproject.org/archives/list/[email protected]... URL
- https://lists.fedoraproject.org/archives/list/[email protected]... URL
- https://nvd.nist.gov/vuln/detail/CVE-2023-5752 URL
- https://lists.debian.org/debian-lts-announce/2025/10/msg00028.html URL
Timeline
Published6 Mar 2024
Updated24 Mar 2026
First seen24 Mar 2026
Sources
BIT-pip-2023-5752 · OSV
Track software like this
Free during beta