CVE-2023-5752

NameCVE-2023-5752
DescriptionWhen 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
python-pip (PTS)buster18.1-5vulnerable
bullseye20.3.4-4+deb11u1vulnerable
bookworm23.0.1+dfsg-1vulnerable
sid, trixie24.0+dfsg-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
python-pipsource(unstable)23.3+dfsg-1

Notes

[bookworm] - python-pip <no-dsa> (Minor issue)
[bullseye] - python-pip <no-dsa> (Minor issue)
[buster] - python-pip <no-dsa> (Minor issue)
https://github.com/pypa/pip/pull/12306
https://mail.python.org/archives/list/security-announce@python.org/thread/F4PL35U6X4VVHZ5ILJU3PWUWN7H7LZXL/

Search for package or bug name: Reporting problems