Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.

Mercurial config injection when installing from Mercurial repo

published 2 years ago
Summary

If you install software from a Mercurial repository using pip, a malicious revision could be used to change how the repository is cloned. This only affects users who install software from Mercurial repositories. To protect yourself, make sure you're using pip version 23.3 or later.

What to do
  • Update pip to version 23.3.0.
Affected software
Ecosystem VendorProductAffected versions
Bitnami – pip < 23.3.0
Fix: upgrade to 23.3.0
Original advisory text
Mercurial configuration injectable in repo revision when installing via pip
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.
Timeline
Published6 Mar 2024
Updated24 Mar 2026
First seen24 Mar 2026
Sources
Track software like this
Free during beta