UBUNTU-CVE-2018-20225 (CVE-2018-20225)
Vulnerability from osv_ubuntu – Published: 2020-05-08 18:15 – Updated: 2026-04-27 08:07 – Source websiteAn issue was discovered in pip (all versions) because it installs the version with the highest version number, even if the user had intended to obtain a private package from a private index. This only affects use of the --extra-index-url option, and exploitation requires that the package does not already exist in the public index (and thus the attacker can put the package there with an arbitrary version number). NOTE: it has been reported that this is intended functionality and the user is responsible for using --extra-index-url securely
{
"affected": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python-pip",
"binary_version": "1.5.4-1ubuntu4+esm5"
},
{
"binary_name": "python-pip-whl",
"binary_version": "1.5.4-1ubuntu4+esm5"
},
{
"binary_name": "python3-pip",
"binary_version": "1.5.4-1ubuntu4+esm5"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:14.04:LTS",
"name": "python-pip",
"purl": "pkg:deb/ubuntu/python-pip@1.5.4-1ubuntu4+esm5?arch=source\u0026distro=esm-infra-legacy/trusty"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.4.1-2",
"1.5.4-1",
"1.5.4-1ubuntu1",
"1.5.4-1ubuntu3",
"1.5.4-1ubuntu4",
"1.5.4-1ubuntu4+esm1",
"1.5.4-1ubuntu4+esm2",
"1.5.4-1ubuntu4+esm3",
"1.5.4-1ubuntu4+esm4",
"1.5.4-1ubuntu4+esm5"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python-pip",
"binary_version": "8.1.1-2ubuntu0.6+esm12"
},
{
"binary_name": "python-pip-whl",
"binary_version": "8.1.1-2ubuntu0.6+esm12"
},
{
"binary_name": "python3-pip",
"binary_version": "8.1.1-2ubuntu0.6+esm12"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:16.04:LTS",
"name": "python-pip",
"purl": "pkg:deb/ubuntu/python-pip@8.1.1-2ubuntu0.6+esm12?arch=source\u0026distro=esm-apps/xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.5.6-7ubuntu1",
"1.5.6-7ubuntu2",
"8.0.2-7",
"8.0.3-1",
"8.0.3-2",
"8.1.0-1",
"8.1.0-2",
"8.1.1-1",
"8.1.1-2",
"8.1.1-2ubuntu0.1",
"8.1.1-2ubuntu0.2",
"8.1.1-2ubuntu0.4",
"8.1.1-2ubuntu0.6",
"8.1.1-2ubuntu0.6+esm2",
"8.1.1-2ubuntu0.6+esm3",
"8.1.1-2ubuntu0.6+esm4",
"8.1.1-2ubuntu0.6+esm5",
"8.1.1-2ubuntu0.6+esm6",
"8.1.1-2ubuntu0.6+esm8",
"8.1.1-2ubuntu0.6+esm10",
"8.1.1-2ubuntu0.6+esm11",
"8.1.1-2ubuntu0.6+esm12"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python-pip",
"binary_version": "9.0.1-2.3~ubuntu1.18.04.8+esm8"
},
{
"binary_name": "python-pip-whl",
"binary_version": "9.0.1-2.3~ubuntu1.18.04.8+esm8"
},
{
"binary_name": "python3-pip",
"binary_version": "9.0.1-2.3~ubuntu1.18.04.8+esm8"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:18.04:LTS",
"name": "python-pip",
"purl": "pkg:deb/ubuntu/python-pip@9.0.1-2.3~ubuntu1.18.04.8+esm8?arch=source\u0026distro=esm-apps/bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"9.0.1-2",
"9.0.1-2.3~ubuntu1",
"9.0.1-2.3~ubuntu1.18.04.1",
"9.0.1-2.3~ubuntu1.18.04.2",
"9.0.1-2.3~ubuntu1.18.04.3",
"9.0.1-2.3~ubuntu1.18.04.4",
"9.0.1-2.3~ubuntu1.18.04.5",
"9.0.1-2.3~ubuntu1.18.04.5+esm2",
"9.0.1-2.3~ubuntu1.18.04.5+esm3",
"9.0.1-2.3~ubuntu1.18.04.6",
"9.0.1-2.3~ubuntu1.18.04.6+esm1",
"9.0.1-2.3~ubuntu1.18.04.7",
"9.0.1-2.3~ubuntu1.18.04.7+esm1",
"9.0.1-2.3~ubuntu1.18.04.8",
"9.0.1-2.3~ubuntu1.18.04.8+esm1",
"9.0.1-2.3~ubuntu1.18.04.8+esm2",
"9.0.1-2.3~ubuntu1.18.04.8+esm4",
"9.0.1-2.3~ubuntu1.18.04.8+esm6",
"9.0.1-2.3~ubuntu1.18.04.8+esm7",
"9.0.1-2.3~ubuntu1.18.04.8+esm8"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python-pip-whl",
"binary_version": "20.0.2-5ubuntu1.11+esm4"
},
{
"binary_name": "python3-pip",
"binary_version": "20.0.2-5ubuntu1.11+esm4"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:20.04:LTS",
"name": "python-pip",
"purl": "pkg:deb/ubuntu/python-pip@20.0.2-5ubuntu1.11+esm4?arch=source\u0026distro=esm-apps/focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"18.1-5",
"18.1-5build1",
"18.1-5ubuntu1",
"20.0.2-2",
"20.0.2-4",
"20.0.2-5",
"20.0.2-5ubuntu1",
"20.0.2-5ubuntu1.1",
"20.0.2-5ubuntu1.3",
"20.0.2-5ubuntu1.4",
"20.0.2-5ubuntu1.5",
"20.0.2-5ubuntu1.6",
"20.0.2-5ubuntu1.7",
"20.0.2-5ubuntu1.8",
"20.0.2-5ubuntu1.9",
"20.0.2-5ubuntu1.10",
"20.0.2-5ubuntu1.10+esm2",
"20.0.2-5ubuntu1.11",
"20.0.2-5ubuntu1.11+esm2",
"20.0.2-5ubuntu1.11+esm3",
"20.0.2-5ubuntu1.11+esm4"
]
}
],
"aliases": [],
"details": "An issue was discovered in pip (all versions) because it installs the version with the highest version number, even if the user had intended to obtain a private package from a private index. This only affects use of the --extra-index-url option, and exploitation requires that the package does not already exist in the public index (and thus the attacker can put the package there with an arbitrary version number). NOTE: it has been reported that this is intended functionality and the user is responsible for using --extra-index-url securely",
"id": "UBUNTU-CVE-2018-20225",
"modified": "2026-04-27T08:07:48Z",
"published": "2020-05-08T18:15:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2018-20225"
},
{
"type": "REPORT",
"url": "https://cowlicks.website/posts/arbitrary-code-execution-from-pips-extra-index-url.html"
},
{
"type": "REPORT",
"url": "https://pip.pypa.io/en/stable/news/"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2018-20225"
}
],
"related": [],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "negligible",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2018-20225"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.