Pip <23.3 Config Injection via Mercurial VCS URLs
CVE-2023-5752 Published on October 25, 2023

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.

Vendor Advisory NVD

Vulnerability Analysis

CVE-2023-5752 is exploitable with local system access, and requires small amount of user privileges. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality, a high impact on integrity, and no impact on availability.

Attack Vector:
LOCAL
Attack Complexity:
LOW
Privileges Required:
LOW
User Interaction:
NONE
Scope:
UNCHANGED
Confidentiality Impact:
NONE
Integrity Impact:
HIGH
Availability Impact:
NONE

Weakness Type

What is a Command Injection Vulnerability?

The software constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.

CVE-2023-5752 has been classified to as a Command Injection vulnerability or weakness.


Products Associated with CVE-2023-5752

You can be notified by email with stack.watch whenever vulnerabilities like CVE-2023-5752 are published in these products:

 
 
 

Affected Versions

Pip maintainers pip Version 23.3 is unaffected by CVE-2023-5752

Exploit Probability

EPSS
0.08%
Percentile
22.44%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.