Skip to main content
← All vulnerabilities
CVE-2023-5752PYSEC-2023-228GHSA-MQ26-G339-26XF

Mercurial configuration injectable in repo revision when installing via pip

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 23.3
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • pip

    Version range not reported

  • pipPyPI

    fixed in 23.3

References 7

GitHub · pypa/pip

mail.python.org

lists.fedoraproject.org