Live threats

All CVEs / Pypa

CVE-2023-5752Pypa Pip

Low 3.3

Priority
20
CVSS 3.1
3.3
EPSS
0.5%
probability of exploitation in 30 days · percentile 34
Auth required
Yes
Published
Oct 25, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-77
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Pip.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI pip < 23.3 23.3 pip install "pip>=23.3"
PyPI pip < 23.3 23.3 pip install "pip>=23.3"

Per OSV / GitHub Advisories (GHSA-mq26-g339-26xf, PYSEC-2023-228). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
pypapip< 23.3

Official sources

References

Links published by the sources. Open them with care.