Vulnerabilities · 2018 · Python
CVE-2018-1000802
Python vulnerability
Python 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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Python, Ubuntu Linux, Debian Linux, Leap. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Python runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- bugs.python.org/issue34540 · Patch
- github.com/python/cpython/pull/8985 · Patch
- github.com/python/cpython/pull/8985/commits/add531a1e55b0a739b0f42582f1c9747e5649ace · Patch
- lists.opensuse.org/opensuse-security-announce/2020-01/msg00040.html · Third Party Advisory
- lists.debian.org/debian-lts-announce/2018/09/msg00030.html · Third Party Advisory
- lists.debian.org/debian-lts-announce/2018/09/msg00031.html · Third Party Advisory
- usn.ubuntu.com/3817-1/ · Third Party Advisory
- usn.ubuntu.com/3817-2/ · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2018-1000802
- cve.org/CVERecord?id=CVE-2018-1000802
More vulnerabilities in Python products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.