CVE-2023-5752: Mercurial configuration injectable in repo revision when installing via pip
Vulnerability summary
CVE-2023-5752 is a medium (CVSS 5.5) vulnerability in pypa pip. EPSS estimates a 0.50% chance of exploitation in the next 30 days, higher than 43% of scored vulnerabilities.
Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 2 · Related 4Timeline
- 24-10-2023PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
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 metrics
7 scores · 7 sources · 1 version- OSV · PypiEcosystem advisory · calculated3.3LowCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated3.3LowCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:NDiffers
- OSV · DebianEcosystem advisory · calculated3.3LowCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:NDiffers
- OSV · WolfiEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
- OSV · ChainguardEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
- NVDNIST3.3LowCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:NDiffers
EPSS trend
Probability
0.50%
Chance of exploitation in the next 30 days
Percentile
43%
Versus all other CVEs
30-day change
Increase +0.03 pp
From 0.48% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Suse7 products
- python-pip&distro=SUSE Linux Enterprise Module for Python 3 15 SP4< 22.3.1-150400.17.12.1
- python-pip&distro=SUSE Linux Enterprise Module for Python 3 15 SP5< 22.3.1-150400.17.12.1
- python-pip&distro=SUSE Linux Enterprise Server 12 SP5< 10.0.1-13.14.1
- python-pip&distro=SUSE Linux Enterprise Server for SAP Applications 12 SP5< 10.0.1-13.14.1
- python312-pip&distro=SUSE Linux Enterprise Module for Python 3 15 SP6< 23.2.1-150600.3.3.1
Chainguard4 products
- graalvm-24-graalpyAll versions (No fix recorded)
- graalvm-24-graalpy-venvAll versions (No fix recorded)
- jwt-tool< 2.2.7-r0
- k8s-sidecar-1.22< 1.22.4-r2
Opensuse3 products
- python-pip&distro=openSUSE Leap 15.4< 22.3.1-150400.17.12.1
- python-pip&distro=openSUSE Leap 15.5< 22.3.1-150400.17.12.1
- python312-pip&distro=openSUSE Leap 15.6< 23.2.1-150600.3.3.1
Debian1 product
- python-pipAll versions (No fix recorded) | < 23.3+dfsg-1
Mageia1 product
- python-pip< 23.0.1-1.1.mga9
Pypa1 product
- pip< 23.3
PyPI1 product
- pip< 23.3
Ubuntu1 product
- python-pipAll versions (No fix recorded)
Wolfi1 product
- jwt-tool< 2.2.7-r0
9 vendors · 20 products
References
33 links- mail.python.org/archives/list/security-announce@python.org/thread/F4PL35U6X4VVHZ5ILJU3PWUWN7H7LZXL/Vendor AdvisoryAdvisoryREPORT
Show all 33 references
- github.com/pypa/pipPACKAGE
- pypi.orgWEB