Advisory record · GHSA-mq26-g339-26xf

Command Injection in pip when used with Mercurial

CVSS 5.5 MediumEPSS 0.0050 · 43rd percentile

Published by the GitHub Advisory Database at 25 Oct 2023, 18:32 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
pipPyPI<23.323.3
Identifiers
GHSA-mq26-g339-26xf · CVE-2023-5752 · PYSEC-2023-228
Weakness (CWE)
CWE-77
Published
25 Oct 2023
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

pip versions before 23.3 are vulnerable to command injection when installing packages from a Mercurial VCS URL (hg+...). An attacker who can supply the Mercurial revision in such a URL can inject arbitrary configuration options into the hg clone call, which can change which repository is installed. Upgrade pip to version 23.3 or later. Users who do not install from Mercurial are not affected.

Written 5 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
5.5 Medium 3.1 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N CNA (PSF)
  • CISA KEV Not listed.
  • EPSS 0.0050, the 43rd percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:36 UTC First seen by agentprime
  2. 31 Oct 2026, 14:36 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.