Vulnerability Description
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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Pypa | Pip | < 23.3 |
Related Weaknesses (CWE)
References
- https://github.com/pypa/pip/pull/12306Patch
- https://lists.fedoraproject.org/archives/list/[email protected]
- https://lists.fedoraproject.org/archives/list/[email protected]
- https://lists.fedoraproject.org/archives/list/[email protected]
- https://lists.fedoraproject.org/archives/list/[email protected]
- https://lists.fedoraproject.org/archives/list/[email protected]
- https://mail.python.org/archives/list/[email protected]/thread/F4PL35Vendor Advisory
- https://github.com/pypa/pip/pull/12306Patch
- https://lists.debian.org/debian-lts-announce/2025/10/msg00028.html
- https://lists.fedoraproject.org/archives/list/[email protected]
- https://lists.fedoraproject.org/archives/list/[email protected]
- https://lists.fedoraproject.org/archives/list/[email protected]
- https://lists.fedoraproject.org/archives/list/[email protected]
- https://lists.fedoraproject.org/archives/list/[email protected]
- https://mail.python.org/archives/list/[email protected]/thread/F4PL35Vendor Advisory
FAQ
What is CVE-2023-5752?
CVE-2023-5752 is a vulnerability with a CVSS score of 5.5 (MEDIUM). 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...
How severe is CVE-2023-5752?
CVE-2023-5752 has been rated MEDIUM with a CVSS base score of 5.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2023-5752?
Check the references section above for vendor advisories and patch information. Affected products include: Pypa Pip.