cve.bz

CVE-2018-1000802

9.8 criticalEPSS 20%Fix available

Critical (9.8). EPSS 20% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
20% (unchanged from 20% a week ago; 20% 30 days ago) estimated probability of exploitation activity in the next 30 days; 98th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2026-10-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-77 Improper Neutralization of Special Elements used in a Command
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-1000802 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-1000802?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-1000802?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-1000802 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
python:pythonfrom 2.7.0 before 2.7.16
canonical:ubuntu_linux12.04
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
debian:debian_linux8.0
debian:debian_linux9.0
opensuse:leap15.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8python2.72.7.9-2+deb8u2DLA-1519-1
Debian8python3.43.4.2-1+deb8u1DLA-1520-1
Debian9python2.72.7.13-2+deb9u3DSA-4306-1
Debian11python2.72.7.15-5DEBIAN-CVE-2018-1000802
Ubuntu14.04:LTSpython2.72.7.6-8ubuntu0.5UBUNTU-CVE-2018-1000802 USN-3817-1
Ubuntu14.04:LTSpython3.43.4.3-1ubuntu1~14.04.7UBUNTU-CVE-2018-1000802 USN-3817-1
Ubuntu16.04:LTSpython2.72.7.12-1ubuntu0~16.04.4UBUNTU-CVE-2018-1000802 USN-3817-1
Ubuntu16.04:LTSpython3.53.5.2-2ubuntu0~16.04.5USN-3817-1
Ubuntu18.04:LTSpython2.72.7.15~rc1-1ubuntu0.1UBUNTU-CVE-2018-1000802 USN-3817-1
SUSEEnterprise Storage 4, Enterprise Storage 5, Linux Enterprise Desktop 12 SP4 and 13 morepython3, python3-base3.4.6-25.29.1SUSE-SU-2019:2053-1
SUSEEnterprise Storage 5python2.7.13-28.16.1SUSE-SU-2018:3554-1
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Server 12 SP3-BCL and 2 morepython3, python3-base3.4.6-25.29.1SUSE-SU-2019:2053-2
SUSELinux Enterprise Desktop 12 SP3python, python-base2.7.13-28.16.1SUSE-SU-2018:3554-1
SUSELinux Enterprise Desktop 12 SP4python, python-base2.7.13-28.16.1SUSE-SU-2018:3554-2
SUSELinux Enterprise Module for Basesystem 15python, python-base2.7.14-7.3.1SUSE-SU-2018:3002-1
SUSELinux Enterprise Module for Basesystem 15, Linux Enterprise Module for Basesystem 15 SP1python3, python3-base3.6.10-3.42.2SUSE-SU-2020:0114-1
SUSELinux Enterprise Module for Basesystem 15, Linux Enterprise Module for Basesystem 15 SP1, Linux Enterprise Module for Desktop Applications 15 and 2 morepython2.7.17-7.32.2SUSE-SU-2020:0234-1
SUSELinux Enterprise Module for Basesystem 15, Linux Enterprise Module for Basesystem 15 SP1, Linux Enterprise Module for Python 2 15 SP1python-base2.7.17-7.32.1SUSE-SU-2020:0234-1
SUSELinux Enterprise Module for Desktop Applications 15python2.7.14-7.3.1SUSE-SU-2018:3002-1
SUSELinux Enterprise Module for Development Tools 15, Linux Enterprise Module for Development Tools 15 SP1python3-base3.6.10-3.42.2SUSE-SU-2020:0114-1
SUSELinux Enterprise Server 12 SP3, Linux Enterprise Server for SAP Applications 12 SP3python, python-doc, python-base2.7.13-28.16.1SUSE-SU-2018:3554-1
4 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.1python3, python3-base3.6.10-lp151.6.7.1openSUSE-SU-2020:0086-1
openSUSETumbleweedpython2.7.18-8.1openSUSE-SU-2024:11202-1
openSUSETumbleweedpython363.6.15-1.1openSUSE-SU-2024:11284-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue did not affect the versions of python as shipped with Red Hat Enterprise Linux 5, 6 and 7 as Linux does not use the vulnerable code.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 5pythonNot affected
Red Hat Enterprise Linux 6pythonNot affected
Red Hat Enterprise Linux 7pythonNot affected
Red Hat Software Collectionspython27-pythonNot affected
Red Hat Software Collectionsrh-python35-pythonNot affected
Red Hat Software Collectionsrh-python36-pythonNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-1000802.

Attack patterns (CAPEC)

  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-40 Manipulating Writeable Terminal Devices Likelihood: High · Severity: Very High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-75 Manipulating Writeable Configuration Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-136 LDAP Injection Likelihood: High · Severity: High
  • CAPEC-183 IMAP/SMTP Command Injection Severity: Medium
  • CAPEC-248 Command Injection Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON