5.5
MEDIUM
CVE-2023-5752
pip Mercurial Configuration Injection Vulnerability
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.

INFO

Published Date :

Oct. 25, 2023, 6:17 p.m.

Last Modified :

Feb. 13, 2025, 6:16 p.m.

Remotely Exploitable :

No

Impact Score :

3.6

Exploitability Score :

1.8
Public PoC/Exploit Available at Github

CVE-2023-5752 has a 16 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2023-5752 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Pypa pip
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2023-5752.

URL Resource
https://github.com/pypa/pip/pull/12306 Patch
https://lists.fedoraproject.org/archives/list/[email protected]/message/622OZXWG72ISQPLM5Y57YCVIMWHD4C3U/
https://lists.fedoraproject.org/archives/list/[email protected]/message/65UKKF5LBHEFDCUSPBHUN4IHYX7SRMHH/
https://lists.fedoraproject.org/archives/list/[email protected]/message/FXUVMJM25PUAZRQZBF54OFVKTY3MINPW/
https://lists.fedoraproject.org/archives/list/[email protected]/message/KFC2SPFG5FLCZBYY2K3T5MFW2D22NG6E/
https://lists.fedoraproject.org/archives/list/[email protected]/message/YBSB3SUPQ3VIFYUMHPO3MEQI4BJAXKCZ/
https://mail.python.org/archives/list/[email protected]/thread/F4PL35U6X4VVHZ5ILJU3PWUWN7H7LZXL/ Vendor Advisory
https://github.com/pypa/pip/pull/12306 Patch
https://lists.fedoraproject.org/archives/list/[email protected]/message/622OZXWG72ISQPLM5Y57YCVIMWHD4C3U/
https://lists.fedoraproject.org/archives/list/[email protected]/message/65UKKF5LBHEFDCUSPBHUN4IHYX7SRMHH/
https://lists.fedoraproject.org/archives/list/[email protected]/message/FXUVMJM25PUAZRQZBF54OFVKTY3MINPW/
https://lists.fedoraproject.org/archives/list/[email protected]/message/KFC2SPFG5FLCZBYY2K3T5MFW2D22NG6E/
https://lists.fedoraproject.org/archives/list/[email protected]/message/YBSB3SUPQ3VIFYUMHPO3MEQI4BJAXKCZ/
https://mail.python.org/archives/list/[email protected]/thread/F4PL35U6X4VVHZ5ILJU3PWUWN7H7LZXL/ Vendor Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Weather forecasting web application focusing on containerization with Docker and Kubernetes. The system leverages machine learning for weather predictions while ensuring scalability, high availability, and security through advanced deployment strategies.

Dockerfile Python Jupyter Notebook

Updated: 1 month ago
0 stars 0 fork 0 watcher
Born at : March 8, 2025, 4:11 p.m. This repo has been linked 3 different CVEs too.

Baseproject

Updated: 4 weeks ago
0 stars 0 fork 0 watcher
Born at : March 2, 2025, 4:39 p.m. This repo has been linked 5 different CVEs too.

None

Dockerfile HTML

Updated: 2 months, 4 weeks ago
0 stars 0 fork 0 watcher
Born at : Nov. 4, 2024, 12:56 p.m. This repo has been linked 29 different CVEs too.

None

Dockerfile Shell

Updated: 5 months, 1 week ago
0 stars 0 fork 0 watcher
Born at : Oct. 30, 2024, 10:41 p.m. This repo has been linked 31 different CVEs too.

System-wide Python package discovery, validation, and allow-listing

Rust Python

Updated: 1 week, 1 day ago
2 stars 0 fork 0 watcher
Born at : Sept. 13, 2024, 3:40 p.m. This repo has been linked 5 different CVEs too.

System-wide Python package discovery, validation, and allow-listing

Rust

Updated: 21 hours, 51 minutes ago
6 stars 1 fork 1 watcher
Born at : Aug. 26, 2024, 11:17 p.m. This repo has been linked 5 different CVEs too.

Radisys Vulnerability Assessment and Management System

Rust Makefile

Updated: 9 months ago
0 stars 0 fork 0 watcher
Born at : June 25, 2024, 9:44 a.m. This repo has been linked 13 different CVEs too.

None

Dockerfile Python

Updated: 11 months, 4 weeks ago
0 stars 0 fork 0 watcher
Born at : April 13, 2024, 6:31 a.m. This repo has been linked 3 different CVEs too.

None

Python Dockerfile

Updated: 1 year ago
0 stars 0 fork 0 watcher
Born at : April 10, 2024, 3:40 p.m. This repo has been linked 5 different CVEs too.

Repository of SENECHAL-Morgan-M1-APP-BDML

Dockerfile PowerShell Shell Python JavaScript HCL

Updated: 9 months, 3 weeks ago
0 stars 0 fork 0 watcher
Born at : March 28, 2024, 1:58 p.m. This repo has been linked 2 different CVEs too.

Docker image with installed Go and Python made for checking student works at DevOps course

Python Dockerfile Shell

Updated: 3 weeks, 6 days ago
1 stars 0 fork 0 watcher
Born at : March 27, 2024, 11:02 p.m. This repo has been linked 5 different CVEs too.

None

Dockerfile Python HTML

Updated: 1 year ago
0 stars 0 fork 0 watcher
Born at : March 26, 2024, 5:03 p.m. This repo has been linked 1 different CVEs too.

None

Dockerfile Python

Updated: 1 year, 1 month ago
0 stars 0 fork 0 watcher
Born at : Feb. 22, 2024, 10:35 a.m. This repo has been linked 3 different CVEs too.

None

Dockerfile Python

Updated: 1 year, 1 month ago
0 stars 0 fork 0 watcher
Born at : Feb. 20, 2024, 1:58 p.m. This repo has been linked 3 different CVEs too.

None

Dockerfile Shell

Updated: 1 year, 2 months ago
0 stars 0 fork 0 watcher
Born at : Jan. 18, 2024, 5:59 p.m. This repo has been linked 4 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2023-5752 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2023-5752 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    Feb. 13, 2025

    Action Type Old Value New Value
    Changed 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.
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://github.com/pypa/pip/pull/12306
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/622OZXWG72ISQPLM5Y57YCVIMWHD4C3U/
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/65UKKF5LBHEFDCUSPBHUN4IHYX7SRMHH/
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/FXUVMJM25PUAZRQZBF54OFVKTY3MINPW/
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/KFC2SPFG5FLCZBYY2K3T5MFW2D22NG6E/
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/YBSB3SUPQ3VIFYUMHPO3MEQI4BJAXKCZ/
    Added Reference https://mail.python.org/archives/list/[email protected]/thread/F4PL35U6X4VVHZ5ILJU3PWUWN7H7LZXL/
  • CVE Modified by [email protected]

    Jun. 10, 2024

    Action Type Old Value New Value
    Added Reference Python Software Foundation https://lists.fedoraproject.org/archives/list/[email protected]/message/65UKKF5LBHEFDCUSPBHUN4IHYX7SRMHH/ [No types assigned]
    Added Reference Python Software Foundation https://lists.fedoraproject.org/archives/list/[email protected]/message/FXUVMJM25PUAZRQZBF54OFVKTY3MINPW/ [No types assigned]
  • CVE Modified by [email protected]

    Jun. 10, 2024

    Action Type Old Value New Value
    Added Reference Python Software Foundation https://lists.fedoraproject.org/archives/list/[email protected]/message/622OZXWG72ISQPLM5Y57YCVIMWHD4C3U/ [No types assigned]
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    May. 03, 2024

    Action Type Old Value New Value
    Added Reference Python Software Foundation https://lists.fedoraproject.org/archives/list/[email protected]/message/KFC2SPFG5FLCZBYY2K3T5MFW2D22NG6E/ [No types assigned]
  • CVE Modified by [email protected]

    Apr. 21, 2024

    Action Type Old Value New Value
    Added Reference Python Software Foundation https://lists.fedoraproject.org/archives/list/[email protected]/message/YBSB3SUPQ3VIFYUMHPO3MEQI4BJAXKCZ/ [No types assigned]
  • Initial Analysis by [email protected]

    Nov. 03, 2023

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
    Changed Reference Type https://github.com/pypa/pip/pull/12306 No Types Assigned https://github.com/pypa/pip/pull/12306 Patch
    Changed Reference Type https://mail.python.org/archives/list/[email protected]/thread/F4PL35U6X4VVHZ5ILJU3PWUWN7H7LZXL/ No Types Assigned https://mail.python.org/archives/list/[email protected]/thread/F4PL35U6X4VVHZ5ILJU3PWUWN7H7LZXL/ Vendor Advisory
    Added CWE NIST CWE-77
    Added CPE Configuration OR *cpe:2.3:a:pypa:pip:*:*:*:*:*:*:*:* versions up to (excluding) 23.3
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2023-5752 is associated with the following CWEs:

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.14 }} -0.04%

score

0.31197

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability