Security mailing lists by PureSourceCode

CVE-2023-5752

LOW 3.3CVSS 3.1

Command Injection in pip when used with Mercurial

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.

Published
25 Oct 2023
Last modified
10 Sep 2026
Assigned by
cna@python.org
NVD status
Modified
Weakness
CWE-77
Also known as
GHSA-mq26-g339-26xfPYSEC-2023-228
Sources
NVDJSONOSV GHSA-mq26-g339-26xfJSONOSV PYSEC-2023-228JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
NVD cna@python.org (Secondary) CVSS 3.1 MEDIUM 5.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
OSV GitHub CVSS 3.1 MEDIUM 5.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
NVD nvd@nist.gov (Primary) CVSS 3.1 LOW 3.3 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
OSV PyPA CVSS 3.1 LOW 3.3 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD pypa pip
cpe:2.3:a:pypa:pip:*:*:*:*:*:*:*:*
< 23.3 23.3
OSV PyPI pip < 23.3 23.3

References

History

  • 25 Nov 2026 20:37 UTC · NVD: first stored (published 25 Oct 2023)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 25 Oct 2023)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 25 Oct 2023)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.