CVE-2018-1000802
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | python2.7 | Fixed | 2.7.15~rc1-1ubuntu0.1 | UBUNTU-CVE-2018-1000802 |
| Ubuntu 16.04 | python2.7 | Fixed | 2.7.12-1ubuntu0~16.04.4 | UBUNTU-CVE-2018-1000802 |
| Ubuntu 16.04 | python3.5 | Not affected vulnerable_code_not_present | ||
| Ubuntu 14.04 | python2.7 | Fixed | 2.7.6-8ubuntu0.5 | UBUNTU-CVE-2018-1000802 |
| Ubuntu 14.04 | python3.4 | Fixed | 3.4.3-1ubuntu1~14.04.7 | UBUNTU-CVE-2018-1000802 |
| Red Hat Enterprise Linux 7 | python | Not affected | ||
| Red Hat Enterprise Linux 7 | python-debug | Not affected | ||
| Red Hat Enterprise Linux 7 | python-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | python-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | python-test | Not affected | ||
| Red Hat Enterprise Linux 7 | python-tools | Not affected | ||
| Red Hat Enterprise Linux 7 | tkinter | Not affected | ||
| Red Hat Enterprise Linux 6 | python | Not affected | ||
| Red Hat Enterprise Linux 6 | python-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | python-libs | Not affected | ||
| Red Hat Enterprise Linux 6 | python-test | Not affected | ||
| Red Hat Enterprise Linux 6 | python-tools | Not affected | ||
| Red Hat Enterprise Linux 6 | tkinter | Not affected | ||
| Red Hat Enterprise Linux 5 | python | Not 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:
- https://www.debian.org/security/2018/dsa-4306 (vendor-advisory)
- https://usn.ubuntu.com/3817-2/ (vendor-advisory)
- https://usn.ubuntu.com/3817-1/ (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00040.html (vendor-advisory)
References
- https://www.debian.org/security/2018/dsa-4306
- https://lists.debian.org/debian-lts-announce/2018/09/msg00031.html
- https://usn.ubuntu.com/3817-2/
- https://github.com/python/cpython/pull/8985/commits/add531a1e55b0a739b0f42582f1c9747e5649ace
- https://mega.nz/#%21JUFiCC4R%21mq-jQ8ySFwIhX6WMDujaZuNBfttDVt7DETlfOIQE1ig
- https://github.com/python/cpython/pull/8985
- https://usn.ubuntu.com/3817-1/
- https://bugs.python.org/issue34540
- https://lists.debian.org/debian-lts-announce/2018/09/msg00030.html
- http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00040.html
- https://security.netapp.com/advisory/ntap-20230309-0002/
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.