Command Injection in pip when used with Mercurial
Moderate severity
GitHub Reviewed
Published
Oct 25, 2023
to the GitHub Advisory Database
•
Updated Oct 14, 2024
Description
Published by the National Vulnerability Database
Oct 25, 2023
Published to the GitHub Advisory Database
Oct 25, 2023
Reviewed
Oct 30, 2023
Last updated
Oct 14, 2024
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 thehg 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