RCE in Pip Maintainers
CVE-2023-5752
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.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N.
EPSS exploit prediction
EPSS: 0.005 (39.7th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 40th percentile — 39.7% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.005 · newest: 0.005 · change: 0.000
Affected products
- Pip Maintainers — versions 23.3
- Pypa Pip
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/pypa/pip/pull/12306 (Patch, patch)
- mail.python.org/archives/list/security-announce@python.org/thread/F4PL35U6X4VVH… (vendor-advisory, Vendor Advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/…
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/…
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/…
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/…
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/…
- af854a3a-2127-422b-91ae-364da2661108
Frequently asked questions
- What is CVE-2023-5752?
- CVE-2023-5752 is a medium-severity vulnerability in Pip Maintainers, classified under Command Injection. CVSS score: 5.5/10. Published 2023-10-25.
- How severe is CVE-2023-5752?
- Medium severity. CVSS v3 base score is 5.5 out of 10.
- Is CVE-2023-5752 known to be exploited?
- 20 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.