CVEfocus › CVE database › CVE-2018-1000802

CVE-2018-1000802

CVSS 9.8 CriticalEPSS 20.1% (higher than 98% of CVEs)Published 2018-09-18Updated 2026-10-08Assigner: mitre

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.

What to do

Likely to be exploited: EPSS gives a 20% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from Ubuntu: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
15Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 18.04python2.7Fixed2.7.15~rc1-1ubuntu0.1UBUNTU-CVE-2018-1000802
Ubuntu 16.04python2.7Fixed2.7.12-1ubuntu0~16.04.4UBUNTU-CVE-2018-1000802
Ubuntu 16.04python3.5Not affected
vulnerable_code_not_present
Ubuntu 14.04python2.7Fixed2.7.6-8ubuntu0.5UBUNTU-CVE-2018-1000802
Ubuntu 14.04python3.4Fixed3.4.3-1ubuntu1~14.04.7UBUNTU-CVE-2018-1000802
Red Hat Enterprise Linux 7pythonNot affected
Red Hat Enterprise Linux 7python-debugNot affected
Red Hat Enterprise Linux 7python-develNot affected
Red Hat Enterprise Linux 7python-libsNot affected
Red Hat Enterprise Linux 7python-testNot affected
Red Hat Enterprise Linux 7python-toolsNot affected
Red Hat Enterprise Linux 7tkinterNot affected
Red Hat Enterprise Linux 6pythonNot affected
Red Hat Enterprise Linux 6python-develNot affected
Red Hat Enterprise Linux 6python-libsNot affected
Red Hat Enterprise Linux 6python-testNot affected
Red Hat Enterprise Linux 6python-toolsNot affected
Red Hat Enterprise Linux 6tkinterNot affected
Red Hat Enterprise Linux 5pythonNot affected

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.