CVE-2023-5752
CVE-2023-5752 is a medium-severity vulnerability in Pypa Pip with a CVSS 3.x base score of 5.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-77.
Key facts
- Severity: Medium (CVSS 3.x base score 5.5)
- EPSS exploit prediction: 1% (44th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-77
- Affected product: Pypa Pip
- Published:
- Last modified:
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.
Frequently asked questions
- What is 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.
- How severe is CVE-2023-5752?
- CVE-2023-5752 has a CVSS 3.x base score of 5.5, rated medium severity. It is exploitable over local access with low attack complexity, requires low privileges and no user interaction. Impact on confidentiality is none, integrity high, and availability none.
- Is CVE-2023-5752 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (44th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2023-5752?
- CVE-2023-5752 affects Pypa Pip. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2023-5752?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- When was CVE-2023-5752 published?
- CVE-2023-5752 was published on 2023-10-25 and last updated on 2026-06-17.
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
Affected products (1)
- cpe:2.3:a:pypa:pip:*:*:*:*:*:*:*:*
More vulnerabilities in Pypa Pip
- CVE-2018-20225 — High (CVSS 7.8): An issue was discovered in pip (all versions) because it installs the version with the highest version number, even if…
- CVE-2019-20916 — High (CVSS 7.5): The pip package before 19.2 for Python allows Directory Traversal when a URL is given in an install command, because a…
- CVE-2013-1629 — Medium (CVSS 6.8): pip before 1.3 uses HTTP to retrieve packages from the PyPI repository, and does not perform integrity checks on…
- CVE-2026-13346 — Medium (CVSS 6.5): pip would incorrectly handle doubly-encoded package URLs from indexes allowing for files to be installed to arbitrary…
- CVE-2013-5123 — Medium (CVSS 5.9): The mirroring support (-M, --use-mirrors) in Python Pip before 1.5 uses insecure DNS querying and authenticity checks…
- CVE-2021-3572 — Medium (CVSS 5.7): A flaw was found in python-pip in the way it handled Unicode separators in git references. A remote attacker could…
Other CWE-77 (Command Injection) vulnerabilities
- CVE-2026-133493 — Critical (CVSS 10.0): A vulnerability was identified in D-Link DIR-600L 2.17b02. Affected is the function genacgi_main of the file gena.cgi…
- CVE-2026-124580 — Critical (CVSS 10.0): A vulnerability was found in Chengdu Feiyuxing Technology VW2100 and VEC10GP 1.0 B-MB3W202-210825-r11775. This impacts…
- CVE-2026-121932 — Critical (CVSS 10.0): A vulnerability was detected in Linksys E5350 1.0.00.037. This affects the function system of the file…
- CVE-2026-121607 — Critical (CVSS 10.0): A vulnerability was found in Qihoo 360 D603-2, D600-2, D606-6 and D706 up to 6.4.9. This affects the function…
- CVE-2026-120345 — Critical (CVSS 10.0): A vulnerability was found in WAVLINK WN551X3-A M51X3_V251020-WO-182e965. This impacts the function sub_41a430 of the…
- CVE-2026-120344 — Critical (CVSS 10.0): A vulnerability has been found in WAVLINK WN551X3-A M51X3_V251020-WO-182e965. This affects the function system of the…