CVE-2023-5752 MEDIUM

CVE-2023-5752: Mercurial configuration injectable in repo revision when installing via pip

Weakness CWE-77
Published October 24, 2023
Last update November 3, 2025

CVSS base score

5.5/10
Attack vector Local
Attack complexity Low
Privileges required Low
User interaction None
Confidentiality None
Integrity High

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

October 24, 2023 CVE published
November 3, 2025 Record updated