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.
Advisories
Source ID Title
Debian DLA Debian DLA DLA-4348-1 python-pip security update
EUVD EUVD EUVD-2023-0200 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.
Github GHSA Github GHSA GHSA-mq26-g339-26xf Command Injection in pip when used with Mercurial
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Mon, 03 Nov 2025 18:30:00 +0000

Type Values Removed Values Added
References

Wed, 16 Jul 2025 13:45:00 +0000

Type Values Removed Values Added
Metrics epss

{'score': 0.0004}

epss

{'score': 0.00045}


Thu, 13 Feb 2025 17:30:00 +0000

Type Values Removed Values Added
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. 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.

Wed, 18 Sep 2024 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


cve-icon MITRE

Status: PUBLISHED

Assigner: PSF

Published:

Updated: 2025-11-03T17:31:06.982Z

Reserved: 2023-10-24T15:04:01.631Z

Link: CVE-2023-5752

cve-icon Vulnrichment

Updated: 2025-11-03T17:31:06.982Z

cve-icon NVD

Status : Modified

Published: 2023-10-25T18:17:44.867

Modified: 2025-11-03T18:15:41.173

Link: CVE-2023-5752

cve-icon Redhat

Severity : Low

Publid Date: 2023-10-25T00:00:00Z

Links: CVE-2023-5752 - Bugzilla

cve-icon OpenCVE Enrichment

No data.