ADVISORIES

Vulnerability

CVE-2023-5752

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.

26 advisories report this vulnerability, across 11 ecosystems.

Advisories

  • ALAS2-2023-2349

    Amazon Linux 2 2017.12 - ALAS2-2023-2349: medium priority package update for python-pip

    Medium CVE-2023-5752 Amazon Linux Updated 4 December 2023
  • ALAS2023-2023-442

    Amazon Linux 2023 - ALAS2023-2023-442: Medium priority package update for python-pip

    Medium CVE-2023-5752 Amazon Linux Updated 14 December 2023
  • AZL-39958

    CVE-2023-5752 affecting package python3 for versions less than 3.12.3-1

    CVE-2023-5752 Azure Linux Updated 21 April 2026
  • AZL-60006

    CVE-2023-5752 affecting package python3 for versions less than 3.9.19-14

    CVE-2023-5752 Azure Linux Updated 21 April 2026
  • CGA-9qfh-j3xq-r9qp
    CVE-2023-5752 Chainguard Updated 11 September 2026
  • CGA-f5fm-x686-93gq
    CVE-2023-5752 Chainguard Updated 5 November 2026
  • CGA-q59f-3xcf-jvmq
    CVE-2023-5752 ChainguardWolfi Updated 5 November 2026
  • CGA-q86w-jgr7-vgvg
    CVE-2023-5752 ChainguardWolfi Updated 5 November 2026
  • CGA-r9xh-5862-7p3m
    CVE-2023-5752 Chainguard Updated 11 September 2026
  • CGA-wg96-6537-c5r3
    CVE-2023-5752 Chainguard Updated 5 November 2026
  • CGA-wj68-qfx6-wf95
    CVE-2023-5752 Chainguard Updated 11 September 2026
  • CGA-xvjw-p6rj-6f7f
    CVE-2023-5752 Chainguard Updated 11 September 2026
  • DEBIAN-CVE-2023-5752

    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…

    CVE-2023-5752 Debian Updated 26 October 2026
  • DLA-4348-1

    python-pip - security update

    CVE-2023-5752CVE-2025-8869 Debian Updated 20 November 2026
  • GHSA-mq26-g339-26xf

    Command Injection in pip when used with Mercurial

    Moderate CVE-2023-5752 PyPI Updated 10 September 2026
  • OESA-2026-2541

    python-pip security update

    High CVE-2023-5752CVE-2026-44431 openEuler Updated 18 August 2026
  • OESA-2026-2542

    python-pip security update

    High CVE-2023-5752CVE-2026-44431 openEuler Updated 18 August 2026
  • PYSEC-2023-228

    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…

    CVE-2023-5752 PyPI Updated 10 June 2026
  • RHSA-2024:3781

    Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update

    CVE-2023-45288CVE-2023-45290CVE-2023-49083CVE-2023-50447 Red Hat Updated 23 November 2026
  • RHVEX-CVE-2023-5752

    pip: Mercurial configuration injectable in repo revision when installing via pip

    Low CVE-2023-5752 Red Hat Updated 7 November 2026
  • SUSE-SU-2023:4987-1

    Security update for python-pip

    CVE-2023-5752 SUSE Updated 2 May 2025
  • SUSE-SU-2023:4988-1

    Security update for python-pip

    CVE-2023-5752 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2024:0892-1

    Security update for python36-pip

    CVE-2023-5752 SUSE Updated 4 February 2026
  • SUSE-SU-2024:3156-1

    Security update for python312-pip

    CVE-2023-5752 SUSEopenSUSE Updated 4 February 2026
  • SUSEVEX-CVE-2023-5752

    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…

    Moderate CVE-2023-5752 SUSE Updated 21 November 2026
  • UBUNTU-CVE-2023-5752

    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…

    CVE-2023-5752 Ubuntu Updated 8 September 2025

References