python-pip — security advisory
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.
- Products
- python-pip
- Affected versions
- 23.0.1+dfsg-1, 23.1.2+dfsg-1, 23.1.2+dfsg-2, 23.2+dfsg-1, 23.2.1+dfsg-1, 23.3+dfsg-1, 24.0+dfsg-1, 24.0+dfsg-2, 24.1+dfsg-1, 24.1.1+dfsg-1, 24.2+dfsg-1, 24.3.1+dfsg-1, 25.0+dfsg-1, 25.0.1+dfsg-1, 25.1+dfsg-1, 25.1.1+dfsg-1, 25.2+dfsg-1, 25.3+dfsg-1, 26.0+dfsg-1, 26.0.1+dfsg-1, 26.1.1+dfsg-1, 26.1.2+dfsg-1, 26.1.2+dfsg-2, 26.2.2+dfsg-1
- Fixed versions
- 23.3+dfsg-1
- CVEs
- CVE-2023-5752
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 16:17 UTC · Revision 1
Source evidence
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.
osv:DEBIAN-CVE-2023-5752
python-pip
Fixed versions: Not specified
python-pip
Fixed versions: 23.3+dfsg-1
python-pip
Fixed versions: 23.3+dfsg-1
Complete source record
{
"id": "aaf87ae7769d9afc976988772dce74b576449e2a074a79c7e8672907bb3ec0f2",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2023-5752",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2023-5752",
"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.",
"evidence": "osv:DEBIAN-CVE-2023-5752",
"products": [
{
"name": {
"value": "python-pip",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "23.0.1+dfsg-1",
"evidence": "/affected/0/versions"
},
{
"value": "23.1.2+dfsg-1",
"evidence": "/affected/0/versions"
},
{
"value": "23.1.2+dfsg-2",
"evidence": "/affected/0/versions"
},
{
"value": "23.2+dfsg-1",
"evidence": "/affected/0/versions"
},
{
"value": "23.2.1+dfsg-1",
"evidence": "/affected/0/versions"
},
{
"value": "23.3+dfsg-1",
"evidence": "/affected/0/versions"
},
{
"value": "24.0+dfsg-1",
"evidence": "/affected/0/versions"
},
{
"value": "24.0+dfsg-2",
"evidence": "/affected/0/versions"
},
{
"value": "24.1+dfsg-1",
"evidence": "/affected/0/versions"
},
{
"value": "24.1.1+dfsg-1",
"evidence": "/affected/0/versions"
},
{
"value": "24.2+dfsg-1",
"evidence": "/affected/0/versions"
},
{
"value": "24.3.1+dfsg-1",
"evidence": "/affected/0/versions"
},
{
"value": "25.0+dfsg-1",
"evidence": "/affected/0/versions"
},
{
"value": "25.0.1+dfsg-1",
"evidence": "/affected/0/versions"
},
{
"value": "25.1+dfsg-1",
"evidence": "/affected/0/versions"
},
{
"value": "25.1.1+dfsg-1",
"evidence": "/affected/0/versions"
},
{
"value": "25.2+dfsg-1",
"evidence": "/affected/0/versions"
},
{
"value": "25.3+dfsg-1",
"evidence": "/affected/0/versions"
},
{
"value": "26.0+dfsg-1",
"evidence": "/affected/0/versions"
},
{
"value": "26.0.1+dfsg-1",
"evidence": "/affected/0/versions"
},
{
"value": "26.1.1+dfsg-1",
"evidence": "/affected/0/versions"
},
{
"value": "26.1.2+dfsg-1",
"evidence": "/affected/0/versions"
},
{
"value": "26.1.2+dfsg-2",
"evidence": "/affected/0/versions"
},
{
"value": "26.2.2+dfsg-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "python-pip",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "23.3+dfsg-1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "python-pip",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "23.3+dfsg-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "low",
"structured": {
"id": "DEBIAN-CVE-2023-5752",
"aliases": [
"DEBIAN-CVE-2023-5752"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-pip",
"purl": "pkg:deb/debian/python-pip?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"23.0.1+dfsg-1",
"23.1.2+dfsg-1",
"23.1.2+dfsg-2",
"23.2+dfsg-1",
"23.2.1+dfsg-1",
"23.3+dfsg-1",
"24.0+dfsg-1",
"24.0+dfsg-2",
"24.1+dfsg-1",
"24.1.1+dfsg-1",
"24.2+dfsg-1",
"24.3.1+dfsg-1",
"25.0+dfsg-1",
"25.0.1+dfsg-1",
"25.1+dfsg-1",
"25.1.1+dfsg-1",
"25.2+dfsg-1",
"25.3+dfsg-1",
"26.0+dfsg-1",
"26.0.1+dfsg-1",
"26.1.1+dfsg-1",
"26.1.2+dfsg-1",
"26.1.2+dfsg-2",
"26.2.2+dfsg-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-5752.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "23.3+dfsg-1"
}
]
}
],
"package": {
"name": "python-pip",
"purl": "pkg:deb/debian/python-pip?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-5752.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "23.3+dfsg-1"
}
]
}
],
"package": {
"name": "python-pip",
"purl": "pkg:deb/debian/python-pip?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-5752.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-26T18:02:56.706374752Z",
"provider": "osv",
"upstream": [
"CVE-2023-5752"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2023-5752"
]
},
"related_cves": [
{
"value": "CVE-2023-5752",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 457248,
"published_at": "2023-10-25T18:17:44.867+00:00"
}