~ / search / GHSA-mq26-g339-26xf

GHSA-mq26-g339-26xf

Command Injection in pip when used with Mercurial

Source: GitHub Advisory Database (reviewed) Moderate CVE-2023-5752

Packages

EcosystemPackageAffectedFixed in
PyPI pip < 23.3 23.3

Details

As written in the advisory (Markdown source, shown as plain text).

When installing a package from a Mercurial VCS URL, e.g. `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 (e.g. `--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.

References

External links from the advisory. They lead to third-party sites.