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.
Fix
Public exploits 1
- tna0y/CVE-2018-1000802-PoC PoC on GitHub
Each line links to the index that lists it, never to exploit code. Exploit-DB's "verified" and a Metasploit rank of good or better count as verified; a PoC-in-GitHub entry is a repository's claim.
Patch, vendor advisory and mitigation references on NVD 6
- https://bugs.python.org/issue34540 Issue Tracking, Patch, Vendor Advisory
- https://github.com/python/cpython/pull/8985 Patch, Vendor Advisory
- https://github.com/python/cpython/pull/8985/commits/add531a1e55b0a739b0f42582f1c9747e5649ace Patch, Vendor Advisory
- https://bugs.python.org/issue34540 Issue Tracking, Patch, Vendor Advisory
- https://github.com/python/cpython/pull/8985 Patch, Vendor Advisory
- https://github.com/python/cpython/pull/8985/commits/add531a1e55b0a739b0f42582f1c9747e5649ace Patch, Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 9.8 · python, canonical, debianNVD modified 2026-10-08 21:17
Affected (CPE criteria) 8
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:esm:*:*:*cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:esm:*:*:*cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*
References 22
- http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00040.html Mailing List, Third Party Advisory
- https://bugs.python.org/issue34540 Issue Tracking, Patch, Vendor Advisory
- https://github.com/python/cpython/pull/8985 Patch, Vendor Advisory
- https://github.com/python/cpython/pull/8985/commits/add531a1e55b0a739b0f42582f1c9747e5649ace Patch, Vendor Advisory
- https://lists.debian.org/debian-lts-announce/2018/09/msg00030.html Mailing List, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2018/09/msg00031.html Mailing List, Third Party Advisory
- https://mega.nz/#%21JUFiCC4R%21mq-jQ8ySFwIhX6WMDujaZuNBfttDVt7DETlfOIQE1ig
- https://security.netapp.com/advisory/ntap-20230309-0002/
- https://usn.ubuntu.com/3817-1/ Third Party Advisory
- https://usn.ubuntu.com/3817-2/ Third Party Advisory
- https://www.debian.org/security/2018/dsa-4306 Third Party Advisory
- http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00040.html Mailing List, Third Party Advisory
- https://bugs.python.org/issue34540 Issue Tracking, Patch, Vendor Advisory
- https://github.com/python/cpython/pull/8985 Patch, Vendor Advisory
- https://github.com/python/cpython/pull/8985/commits/add531a1e55b0a739b0f42582f1c9747e5649ace Patch, Vendor Advisory
- https://lists.debian.org/debian-lts-announce/2018/09/msg00030.html Mailing List, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2018/09/msg00031.html Mailing List, Third Party Advisory
- https://mega.nz/#%21JUFiCC4R%21mq-jQ8ySFwIhX6WMDujaZuNBfttDVt7DETlfOIQE1ig
- https://security.netapp.com/advisory/ntap-20230309-0002/
- https://usn.ubuntu.com/3817-1/ Third Party Advisory
- https://usn.ubuntu.com/3817-2/ Third Party Advisory
- https://www.debian.org/security/2018/dsa-4306 Third Party Advisory