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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 11 | python2.7 | 2.7.15-5 | — |
| Debian 9 | python2.7 | 2.7.13-2+deb9u3 | DSA-4306-1 |
| Debian 8 | python2.7 | 2.7.9-2+deb8u2 | DLA-1519-1 |
| Debian 8 | python3.4 | 3.4.2-1+deb8u1 | DLA-1520-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | python2.7 | 2.7.15~rc1-1ubuntu0.1 | USN-3817-1 |
| Ubuntu 16.04 LTS | python2.7 | 2.7.12-1ubuntu0~16.04.4 | USN-3817-1 |
| Ubuntu 16.04 LTS | python3.5 | 3.5.2-2ubuntu0~16.04.5 | USN-3817-1 |
| Ubuntu 14.04 LTS | python2.7 | 2.7.6-8ubuntu0.5 | USN-3817-1 |
| Ubuntu 14.04 LTS | python3.4 | 3.4.3-1ubuntu1~14.04.7 | USN-3817-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP1 | python | 2.7.17-7.32.2 | SUSE-SU-2020:0234-1 |
| SLES 15 SP1 | python-base | 2.7.17-7.32.1 | SUSE-SU-2020:0234-1 |
| SLES 15 SP1 | python3 +1 | 3.6.10-3.42.2 | SUSE-SU-2020:0114-1 |
| SLES 15 | python +1 | 2.7.14-7.3.1 | SUSE-SU-2020:0234-1, SUSE-SU-2018:3002-1 |
| SLES 15 | python3 +1 | 3.6.10-3.42.2 | SUSE-SU-2020:0114-1 |
| SLES 12 SP5 | python36 +1 | 3.6.10-4.3.5 | SUSE-SU-2020:0302-1 |
| SLES 12 SP4 | python +2 | 2.7.13-28.16.1 | SUSE-SU-2018:3554-2 |
| SLES 12 SP4 | python3 +1 | 3.4.6-25.29.1 | SUSE-SU-2019:2053-1 |
| SLES 12 SP3 | python +2 | 2.7.13-28.16.1 | SUSE-SU-2018:3554-1 |
| SLES 12 SP3 | python3 +1 | 3.4.6-25.29.1 | SUSE-SU-2019:2053-2, SUSE-SU-2019:2053-1 |
Show 15 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP2 | python3 +1 | 3.4.6-25.29.1 | SUSE-SU-2019:2053-1 |
| SLES 12 SP1 | python3 +1 | 3.4.6-25.29.1 | SUSE-SU-2019:2053-1 |
| SLES 12 | python3 +1 | 3.4.6-25.29.1 | SUSE-SU-2019:2053-1 |
| SLES 2 | python | 2.7.17-7.32.2 | SUSE-SU-2020:0234-1 |
| SLES 2 | python-base | 2.7.17-7.32.1 | SUSE-SU-2020:0234-1 |
| SLES for SAP 12 SP5 | python36 +1 | 3.6.10-4.3.5 | SUSE-SU-2020:0302-1 |
| SLES for SAP 12 SP4 | python +2 | 2.7.13-28.16.1 | SUSE-SU-2018:3554-2 |
| SLES for SAP 12 SP4 | python3 +1 | 3.4.6-25.29.1 | SUSE-SU-2019:2053-1 |
| SLES for SAP 12 SP3 | python +2 | 2.7.13-28.16.1 | SUSE-SU-2018:3554-1 |
| SLES for SAP 12 SP3 | python3 +1 | 3.4.6-25.29.1 | SUSE-SU-2019:2053-1 |
| SLES for SAP 12 SP2 | python3 +1 | 3.4.6-25.29.1 | SUSE-SU-2019:2053-1 |
| SLES for SAP 12 SP1 | python3 +1 | 3.4.6-25.29.1 | SUSE-SU-2019:2053-1 |
| SUSE OpenStack Cloud Crowbar 8 | python3 +1 | 3.4.6-25.29.1 | SUSE-SU-2019:2053-2 |
| SUSE OpenStack Cloud 8 | python3 +1 | 3.4.6-25.29.1 | SUSE-SU-2019:2053-1 |
| SUSE OpenStack Cloud 7 | python3 +1 | 3.4.6-25.29.1 | SUSE-SU-2019:2053-1 |
| SUSE HPE Helion OpenStack 8 | python3 +1 | 3.4.6-25.29.1 | SUSE-SU-2019:2053-2 |
| SUSE Enterprise Storage 5 | python | 2.7.13-28.16.1 | SUSE-SU-2018:3554-1 |
| SUSE Enterprise Storage 5 | python3 +1 | 3.4.6-25.29.1 | SUSE-SU-2019:2053-2, SUSE-SU-2019:2053-1 |
| SUSE Enterprise Storage 4 | python3 +1 | 3.4.6-25.29.1 | SUSE-SU-2019:2053-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python | 2.7.18-8.1 | openSUSE-SU-2024:11202-1 |
| openSUSE Tumbleweed | python36 | 3.6.15-1.1 | openSUSE-SU-2024:11284-1 |
| openSUSE Leap 15.1 | python3 +1 | 3.6.10-lp151.6.7.1 | openSUSE-SU-2020:0086-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
tna0y/CVE-2018-1000802-PoC ★ 3 · Sep 14, 2018
Python CVE-2018-1000802 Proof-of-Concept
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 16
- USN-3817-1 python2.7, python3.4, python3.5 vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DSA-4306-1 python2.7 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1520-1 python3.4 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1519-1 python2.7 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2020:0302-1 Security update for python36 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:3002-1 Security update for python SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:3554-1 Security update for python, python-base SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:2053-1 Security update for python3 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:3554-2 Security update for python, python-base SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2020:0086-1 Security update for python3 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:2053-2 Security update for python3 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:0114-1 Security update for python3 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11284-1 python36-3.6.15-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11202-1 python-2.7.18-8.1 on GA media SUSE / openSUSE Security Updates · May 7, 2025
- SUSE-SU-2020:0234-1 Security update for python SUSE / openSUSE Security Updates · May 2, 2025
- WID-SEC-2024-1181 Python: Schwachstelle ermöglicht Ausführen von beliebigem Programmcode mit den Rechten des Dienstes BSI CERT-Bund (WID) · Aug 28, 2024
References
- DSA-4306 vendor-advisory
- [debian-lts-announce] 20180926 [SECURITY] [DLA 1520-1] python3.4 security update mailing-list
- USN-3817-2 vendor-advisory
- https://github.com/python/cpython/pull/8985/commits/add531a1e55b0a739b0f42582f1c9747e5649ace
- https://mega.nz/#%21JUFiCC4R%21mq-jQ8ySFwIhX6WMDujaZuNBfttDVt7DETlfOIQE1ig
- https://github.com/python/cpython/pull/8985
- USN-3817-1 vendor-advisory
- https://bugs.python.org/issue34540
- [debian-lts-announce] 20180925 [SECURITY] [DLA 1519-1] python2.7 security update mailing-list
- openSUSE-SU-2020:0086 vendor-advisory
- https://security.netapp.com/advisory/ntap-20230309-0002/