CVE-2023-5752
published medium CVSS 3.1 · 5.5Mercurial configuration injectable in repo revision when installing via pip
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Pip maintainers | — | pip23.3 · Other versions: affected | Unaffected | Not stated | PSF |
| Amazon Linux | AL2 | Release evaluationALAS2-2023-2349 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-442 | Fixed | Not stated | Amazon Linux assessment |
| Debian | bullseye | python-pip | Advisory build | 20.3.4-4+deb11u2 | DLA-4348-1 |
| SUSE / openSUSE | SLE-12-SP5 | python-pipnoarch | Advisory build | 10.0.1-13.14.1 | SUSE-SU-2023:4987-1 |
| Amazon Linux | AL2 | python-pipnoarch | Listed in advisory | Not stated | ALAS2-2023-2349 |
| SUSE / openSUSE | SLE-12-SP5 | python3-pipnoarch | Advisory build | 10.0.1-13.14.1 | SUSE-SU-2023:4987-1 |
| SUSE / openSUSE | SLE-12-SP5 | python36-pipnoarch | Advisory build | 20.2.4-8.15.1 | SUSE-SU-2024:0892-1 |
Show 24 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP4 | python311-pipnoarch | Advisory build | 22.3.1-150400.17.12.1 | SUSE-SU-2023:4988-1 |
| SUSE / openSUSE | SLE-15-SP5 | python311-pipnoarch | Advisory build | 22.3.1-150400.17.12.1 | SUSE-SU-2023:4988-1 |
| SUSE / openSUSE | SLE-15-SP6 | python312-pipnoarch | Advisory build | 23.2.1-150600.3.3.1 | SUSE-SU-2024:3156-1 |
| SUSE / openSUSE | SLE-3-SP4 | python311-pipnoarch | Advisory build | 22.3.1-150400.17.12.1 | SUSE-SU-2023:4988-1 |
| SUSE / openSUSE | SLE-3-SP5 | python311-pipnoarch | Advisory build | 22.3.1-150400.17.12.1 | SUSE-SU-2023:4988-1 |
| SUSE / openSUSE | SLE-3-SP6 | python312-pipnoarch | Advisory build | 23.2.1-150600.3.3.1 | SUSE-SU-2024:3156-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | python311-pipnoarch | Advisory build | 22.3.1-150400.17.12.1 | SUSE-SU-2023:4988-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | python311-pipnoarch | Advisory build | 22.3.1-150400.17.12.1 | SUSE-SU-2023:4988-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python312-pipnoarch | Advisory build | 23.2.1-150600.3.3.1 | SUSE-SU-2024:3156-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-pipaarch64 | Advisory build | 23.3.1-1.1 | OPENSUSE-SU-2024:13454-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-pipppc64le | Advisory build | 23.3.1-1.1 | OPENSUSE-SU-2024:13454-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-pips390x | Advisory build | 23.3.1-1.1 | OPENSUSE-SU-2024:13454-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-pipx86_64 | Advisory build | 23.3.1-1.1 | OPENSUSE-SU-2024:13454-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-pipaarch64 | Advisory build | 23.3.1-1.1 | OPENSUSE-SU-2024:13454-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-pipppc64le | Advisory build | 23.3.1-1.1 | OPENSUSE-SU-2024:13454-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-pips390x | Advisory build | 23.3.1-1.1 | OPENSUSE-SU-2024:13454-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-pipx86_64 | Advisory build | 23.3.1-1.1 | OPENSUSE-SU-2024:13454-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-pipaarch64 | Advisory build | 23.3.1-1.1 | OPENSUSE-SU-2024:13454-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-pipppc64le | Advisory build | 23.3.1-1.1 | OPENSUSE-SU-2024:13454-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-pips390x | Advisory build | 23.3.1-1.1 | OPENSUSE-SU-2024:13454-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-pipx86_64 | Advisory build | 23.3.1-1.1 | OPENSUSE-SU-2024:13454-1 |
| Amazon Linux | AL2 | python-pipsrc | Listed in advisory | Not stated | ALAS2-2023-2349 |
| Amazon Linux | AL2023 | python-pipnoarch | Listed in advisory | Not stated | ALAS2023-2023-442 |
| Amazon Linux | AL2023 | python-pipsrc | Listed in advisory | Not stated | ALAS2023-2023-442 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.5 / 10
- Severity
- medium
- Provider
- PSF · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Pip maintainers | pip | 23.3 (unaffected)Default: affected | PSF · cna |
Weaknesses
1- CWE-77 CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')
References
8- https://github.com/pypa/pip/pull/12306
- https://lists.debian.org/debian-lts-announce/2025/10/msg00028.html
- https://lists.fedoraproject.org/archives/list/[email protected]/message/622OZXWG72ISQPLM5Y57YCVIMWHD4C3U/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/65UKKF5LBHEFDCUSPBHUN4IHYX7SRMHH/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/FXUVMJM25PUAZRQZBF54OFVKTY3MINPW/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/KFC2SPFG5FLCZBYY2K3T5MFW2D22NG6E/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/YBSB3SUPQ3VIFYUMHPO3MEQI4BJAXKCZ/
- https://mail.python.org/archives/list/[email protected]/thread/F4PL35U6X4VVHZ5ILJU3PWUWN7H7LZXL/
Provider assertions
3PSF · cna
Mercurial configuration injectable in repo revision when installing via pip
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5d4c1e5c134a532c2078ac7b5f187af3fcf131d7f120b5b586f3297458dde50c
- Ingested
- 23 Sep 2026, 08:15:31 UTC
- Source record
- Official CVE record