Home / Pip maintainers / pip / CVE-2023-5752
CVE-2023-5752: is it exploited, and which versions of Pip maintainers pip are affected and fixed?
CVE-2023-5752 is a command injection vulnerability in Pip maintainers pip. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 11:08 UTC). Affected: pip before 23.3 (GitHub advisory GHSA-mq26-g339-26xf). Fixed in 23.3 (GitHub advisory GHSA-mq26-g339-26xf). Severity: Medium (5.5, CVSS 3.1, from PSF).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:08 UTC, CVE record November 19, 2026, 07:13 UTC and NVD November 19, 2026, 07:35 UTC.
What is CVE-2023-5752?
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.
From the CVE record by PSF, last updated November 3, 2025, 17:31 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Pip maintainers | pip | all versions (default) | 23.3 |
As the CVE record by PSF states it, last updated November 3, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | pip | < 23.3 | 23.3 | GHSA-mq26-g339-26xf |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated November 3, 2025. Summary: Command Injection in pip when used with Mercurial.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| pypa | pip | before 23.3 | application |
NVD analysis (status Modified), last modified June 17, 2026, 06:49 UTC.
How severe is CVE-2023-5752?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.5 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N | PSF |
| Low 3.3 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2023-5752 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, August 8, 2024)
- EPSS
- 0.50% probability of exploitation activity in the next 30 days, percentile 44.6 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-77 Improper Neutralization of Special Elements used in a Command
Where are the vendor advisories and references?
- https://github.com/pypa/pip/pull/12306 patch
- https://mail.python.org/archives/list/[email protected]/thread/F4PL35U6X4VVHZ5ILJU3PWUWN7H7LZXL/ vendor-advisory
- https://lists.fedoraproject.org/archives/list/[email protected]/message/YBSB3SUPQ3VIFYUMHPO3MEQI4BJAXKCZ/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/KFC2SPFG5FLCZBYY2K3T5MFW2D22NG6E/
- 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.debian.org/debian-lts-announce/2025/10/msg00028.html
Who found and reported it?
- Paul Gerste (reporter)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- October 24, 2023
- Published
- October 24, 2023, 20:56 UTC
- CVE record updated
- November 3, 2025, 17:31 UTC by PSF
- NVD
- Modified, last modified June 17, 2026, 06:49 UTC
- Last checked
- CVE list November 19, 2026, 07:13 UTC; NVD November 19, 2026, 07:35 UTC; KEV December 3, 2026, 11:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect pip?
- Nov 20, 2026CVE-2026-133949 Pip maintainers pip: improper certificate validation
- Apr 27, 2026CVE-2026-6357 Pip maintainers pip: inclusion of code from an untrusted source
Questions about CVE-2023-5752
Is CVE-2023-5752 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:08 UTC. FIRST's EPSS gives it a 0.50% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Pip maintainers pip are affected by CVE-2023-5752?
pip before 23.3, per the GitHub advisory GHSA-mq26-g339-26xf. The tables above give every range the sources list.
Which version fixes CVE-2023-5752?
23.3, per the GitHub advisory GHSA-mq26-g339-26xf. Check the vendor's advisory before you rely on it.
How severe is CVE-2023-5752?
Medium (5.5, CVSS 3.1, from PSF). The severity table above shows each score with its source.
Where is the official record of CVE-2023-5752?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.