CVE-2018-1000802: Command injection in CPython 2.7 shutil.make_archive
- Vendors
- Debian ProjectOpensusePythonCanonical
CVE-2018-1000802 is a command-injection vulnerability in the shutil.make_archive function in CPython 2.7. Passing unfiltered user-controlled input to the function can cause denial of service or information disclosure by injecting arbitrary system files or an entire drive into an archive.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Exploitation can cause denial of service and disclose information by including arbitrary system files or an entire drive in an archive. F5 products were evaluated and found not to be affected.
Mitigation
If you can’t patch tonight, do this now.
Avoid passing untrusted, unfiltered input to shutil.make_archive. Restrict inputs to trusted values or validate them against a strict allowlist. No mitigation is required for unaffected F5 products.
Remediation
Patch, then assume compromise.
Apply the upstream fix associated with commit add531a1e55b0a739b0f42582f1c9747e5649ace, or upgrade to a release verified to include it. A specific fixed release version is not identified. No remediation is required for unaffected F5 products.
Exploits
1 exploit validated by Mallory's analysis.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2018-1000802 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2018-1000802 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2018-1000802?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2018-1000802, the earliest disclosed Sep 14, 2018.
- Is there a patch for CVE-2018-1000802?
- Apply the upstream fix associated with commit add531a1e55b0a739b0f42582f1c9747e5649ace, or upgrade to a release verified to include it. A specific fixed release version is not identified.
- What products are affected by CVE-2018-1000802?
- Python, Debian Project Debian Linux, Opensuse Leap, and Canonical Ubuntu Linux.
- How severe is CVE-2018-1000802?
- CVE-2018-1000802 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 20.1% (98th percentile) as of Oct 16, 2026.
Recent activity
1 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.