CVE-2018-1000802

CRITICAL

Python Software Foundation Python <2.7 - Command Injection

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2018-1000802. PoCs published by tna0y.

AI-analyzed exploit summary This PoC demonstrates a command injection vulnerability in Python's `shutil.make_archive` function (CVE-2018-1000802) on Windows systems. It exploits improper handling of user-supplied input to execute arbitrary commands via the zip utility when `zipfile` import fails.

Description

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.

Exploits (1)

nomisec WORKING POC 4 stars
by tna0y · poc
https://github.com/tna0y/CVE-2018-1000802-PoC

This PoC demonstrates a command injection vulnerability in Python's `shutil.make_archive` function (CVE-2018-1000802) on Windows systems. It exploits improper handling of user-supplied input to execute arbitrary commands via the zip utility when `zipfile` import fails.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: CPython (Python) 2.7 prior to commit add531a1e55b0a739b0f42582f1c9747e5649ace
No auth needed
Prerequisites: Windows OS · Zip utility accessible via command line · Failed `zipfile` import
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (11)

Core 11
Core References
Issue Tracking, Patch, Vendor Advisory
https://bugs.python.org/issue34540
Third Party Advisory vendor-advisory
https://www.debian.org/security/2018/dsa-4306
Mailing List, Third Party Advisory mailing-list
https://lists.debian.org/debian-lts-announce/2018/09/msg00031.html
Third Party Advisory vendor-advisory
https://usn.ubuntu.com/3817-2/
Third Party Advisory vendor-advisory
https://usn.ubuntu.com/3817-1/
Mailing List, Third Party Advisory mailing-list
https://lists.debian.org/debian-lts-announce/2018/09/msg00030.html
Mailing List, Third Party Advisory vendor-advisory
http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00040.html

Scores

CVSS v3 9.8
EPSS 0.2081
EPSS Percentile 97.2%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-77
Status published
Products (8)
canonical/ubuntu_linux 12.04
canonical/ubuntu_linux 14.04
canonical/ubuntu_linux 16.04
canonical/ubuntu_linux 18.04
debian/debian_linux 8.0
debian/debian_linux 9.0
opensuse/leap 15.1
python/python 2.7.0 - 2.7.16
Published Sep 18, 2018
Tracked Since Feb 18, 2026