UBUNTU-CVE-2018-1000802 (CVE-2018-1000802)
Vulnerability from osv_ubuntu – Published: 2018-09-18 00:00 – Updated: 2026-04-22 07:38 – Source websitePython Software Foundation Python (CPython) version 2.7 contains a CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') vulnerability in shutil module (make_archive function) that can result in Denial of service, Information gain via injection of arbitrary files on the system or entire drive. This attack appear to be exploitable via Passage of unfiltered user input to the function. This vulnerability appears to have been fixed in after commit add531a1e55b0a739b0f42582f1c9747e5649ace.
{
"affected": [
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "idle-python2.7",
"binary_version": "2.7.6-8ubuntu0.5"
},
{
"binary_name": "libpython2.7",
"binary_version": "2.7.6-8ubuntu0.5"
},
{
"binary_name": "libpython2.7-minimal",
"binary_version": "2.7.6-8ubuntu0.5"
},
{
"binary_name": "libpython2.7-stdlib",
"binary_version": "2.7.6-8ubuntu0.5"
},
{
"binary_name": "libpython2.7-testsuite",
"binary_version": "2.7.6-8ubuntu0.5"
},
{
"binary_name": "python2.7",
"binary_version": "2.7.6-8ubuntu0.5"
},
{
"binary_name": "python2.7-examples",
"binary_version": "2.7.6-8ubuntu0.5"
},
{
"binary_name": "python2.7-minimal",
"binary_version": "2.7.6-8ubuntu0.5"
}
]
},
"package": {
"ecosystem": "Ubuntu:14.04:LTS",
"name": "python2.7",
"purl": "pkg:deb/ubuntu/python2.7@2.7.6-8ubuntu0.5?arch=source\u0026distro=trusty"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.7.6-8ubuntu0.5"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.7.5-8ubuntu3",
"2.7.5-8ubuntu4",
"2.7.6-2",
"2.7.6-2ubuntu1",
"2.7.6-3",
"2.7.6-3ubuntu1",
"2.7.6-4",
"2.7.6-4ubuntu1",
"2.7.6-5",
"2.7.6-7",
"2.7.6-8",
"2.7.6-8ubuntu0.2",
"2.7.6-8ubuntu0.3",
"2.7.6-8ubuntu0.4"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "idle-python3.4",
"binary_version": "3.4.3-1ubuntu1~14.04.7"
},
{
"binary_name": "libpython3.4",
"binary_version": "3.4.3-1ubuntu1~14.04.7"
},
{
"binary_name": "libpython3.4-minimal",
"binary_version": "3.4.3-1ubuntu1~14.04.7"
},
{
"binary_name": "libpython3.4-stdlib",
"binary_version": "3.4.3-1ubuntu1~14.04.7"
},
{
"binary_name": "libpython3.4-testsuite",
"binary_version": "3.4.3-1ubuntu1~14.04.7"
},
{
"binary_name": "python3.4",
"binary_version": "3.4.3-1ubuntu1~14.04.7"
},
{
"binary_name": "python3.4-examples",
"binary_version": "3.4.3-1ubuntu1~14.04.7"
},
{
"binary_name": "python3.4-minimal",
"binary_version": "3.4.3-1ubuntu1~14.04.7"
},
{
"binary_name": "python3.4-venv",
"binary_version": "3.4.3-1ubuntu1~14.04.7"
}
]
},
"package": {
"ecosystem": "Ubuntu:14.04:LTS",
"name": "python3.4",
"purl": "pkg:deb/ubuntu/python3.4@3.4.3-1ubuntu1~14.04.7?arch=source\u0026distro=trusty"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "3.4.3-1ubuntu1~14.04.7"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.4~b1-0ubuntu3",
"3.4~b1-4ubuntu4",
"3.4~b1-4ubuntu6",
"3.4~b1-5ubuntu2",
"3.4~b2-1",
"3.4~b3-1ubuntu1",
"3.4~rc1-1build1",
"3.4~rc2-1",
"3.4~rc3-0ubuntu1",
"3.4.0-1",
"3.4.0-2ubuntu1",
"3.4.0-2ubuntu1.1",
"3.4.3-1ubuntu1~14.04.1",
"3.4.3-1ubuntu1~14.04.3",
"3.4.3-1ubuntu1~14.04.4",
"3.4.3-1ubuntu1~14.04.5",
"3.4.3-1ubuntu1~14.04.6"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "idle-python2.7",
"binary_version": "2.7.12-1ubuntu0~16.04.4"
},
{
"binary_name": "libpython2.7",
"binary_version": "2.7.12-1ubuntu0~16.04.4"
},
{
"binary_name": "libpython2.7-minimal",
"binary_version": "2.7.12-1ubuntu0~16.04.4"
},
{
"binary_name": "libpython2.7-stdlib",
"binary_version": "2.7.12-1ubuntu0~16.04.4"
},
{
"binary_name": "libpython2.7-testsuite",
"binary_version": "2.7.12-1ubuntu0~16.04.4"
},
{
"binary_name": "python2.7",
"binary_version": "2.7.12-1ubuntu0~16.04.4"
},
{
"binary_name": "python2.7-examples",
"binary_version": "2.7.12-1ubuntu0~16.04.4"
},
{
"binary_name": "python2.7-minimal",
"binary_version": "2.7.12-1ubuntu0~16.04.4"
}
]
},
"package": {
"ecosystem": "Ubuntu:16.04:LTS",
"name": "python2.7",
"purl": "pkg:deb/ubuntu/python2.7@2.7.12-1ubuntu0~16.04.4?arch=source\u0026distro=xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.7.12-1ubuntu0~16.04.4"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.7.10-4ubuntu1",
"2.7.10-4ubuntu2",
"2.7.11-2",
"2.7.11-3",
"2.7.11-4",
"2.7.11-6",
"2.7.11-7",
"2.7.11-7ubuntu1",
"2.7.12-1~16.04",
"2.7.12-1ubuntu0~16.04.1",
"2.7.12-1ubuntu0~16.04.2",
"2.7.12-1ubuntu0~16.04.3"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "idle-python2.7",
"binary_version": "2.7.15~rc1-1ubuntu0.1"
},
{
"binary_name": "libpython2.7",
"binary_version": "2.7.15~rc1-1ubuntu0.1"
},
{
"binary_name": "libpython2.7-minimal",
"binary_version": "2.7.15~rc1-1ubuntu0.1"
},
{
"binary_name": "libpython2.7-stdlib",
"binary_version": "2.7.15~rc1-1ubuntu0.1"
},
{
"binary_name": "libpython2.7-testsuite",
"binary_version": "2.7.15~rc1-1ubuntu0.1"
},
{
"binary_name": "python2.7",
"binary_version": "2.7.15~rc1-1ubuntu0.1"
},
{
"binary_name": "python2.7-examples",
"binary_version": "2.7.15~rc1-1ubuntu0.1"
},
{
"binary_name": "python2.7-minimal",
"binary_version": "2.7.15~rc1-1ubuntu0.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:18.04:LTS",
"name": "python2.7",
"purl": "pkg:deb/ubuntu/python2.7@2.7.15~rc1-1ubuntu0.1?arch=source\u0026distro=bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.7.15~rc1-1ubuntu0.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.7.14-2ubuntu2",
"2.7.14-4",
"2.7.14-6",
"2.7.14-7",
"2.7.14-8",
"2.7.15~rc1-1"
]
}
],
"aliases": [],
"details": "Python Software Foundation Python (CPython) version 2.7 contains a CWE-77: Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027) vulnerability in shutil module (make_archive function) that can result in Denial of service, Information gain via injection of arbitrary files on the system or entire drive. This attack appear to be exploitable via Passage of unfiltered user input to the function. This vulnerability appears to have been fixed in after commit add531a1e55b0a739b0f42582f1c9747e5649ace.",
"id": "UBUNTU-CVE-2018-1000802",
"modified": "2026-04-22T07:38:48Z",
"published": "2018-09-18T00:00:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2018-1000802"
},
{
"type": "REPORT",
"url": "https://mega.nz/#!JUFiCC4R!mq-jQ8ySFwIhX6WMDujaZuNBfttDVt7DETlfOIQE1ig"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-3817-1"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-3817-2"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2018-1000802"
}
],
"related": [
"USN-3817-1",
"USN-3817-2"
],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2018-1000802"
]
}
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.