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.

Published: 2023-10-25 Last update: 2025-11-03 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2023-5752 is rated Low Risk (31.1/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.09%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2023-5752

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2025-10-30 0.04% 0.09% +0.04%
2 2025-04-15 0.14% 0.04% -0.10%
3 2025-03-30 0.14%

Full EPSS history (6 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2023-5752

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
5.5 3.1 MEDIUM
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:N)
Service keeps running; no real outage angle.
1.8 3.6 [email protected]
3.3 3.1 LOW
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:N)
Service keeps running; no real outage angle.
1.8 1.4 [email protected]

Weakness enumeration for CVE-2023-5752

GitHub Security Advisory for CVE-2023-5752

GHSA-mq26-g339-26xf · Severity: medium · Ecosystem: pip — Command Injection in pip when used with Mercurial

OS Trackers for CVE-2023-5752

vendor priority summary link
debian not yet assigned CVE-2023-5752 not yet assigned priority: Debian including 1 source packages (python-pip), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 4, open 1. https://security-tracker.debian.org/tracker/CVE-2023-5752
gentoo normal CVE-2023-5752: 1 GLSA(s) (202501-03), 1 atom(s) (dev-python/pip); latest impact normal. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2023-5752
redhat low https://access.redhat.com/security/cve/CVE-2023-5752
suse medium CVE-2023-5752 severity moderate: SUSE including 249 source package names (0.20250329.151219-3.2:python311-pip-22.3.1-150400.17.12.1, 3.11.10-43.2:python311-pip-22.3.1-150400.17.12.1, …), 325 product×package rows across 82 product lines (Container bci/python, Container containers/open-webui-pipelines, … (82 product lines)): Known Affected 231, Fixed 89, Known Not Affected 5. https://www.suse.com/security/cve/CVE-2023-5752/
ubuntu medium CVE-2023-5752 medium priority: Ubuntu including 1 source packages (python-pip), 11 status rows across 11 suites (bionic, focal, jammy, lunar, mantic, noble, oracular, plucky, trusty, upstream, xenial): not-affected 7, ignored 3, released 1. https://ubuntu.com/security/CVE-2023-5752

Affected software / configurations for CVE-2023-5752

Vendor Product Version Raw CPE
pypa pip < 23.3 cpe:2.3:a:pypa:pip:*:*:*:*:*:*:*:*

References for CVE-2023-5752

cvelogic Threat Intelligence