---
title: "CVE-2018-1000802\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2018-1000802?format=md
keywords: index, follow
---

# CVE-2018-1000802

Publication date 18 September 2018

Last updated 25 August 2025

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**9.8 · Critical**

[Score breakdown](https://ubuntu.com/security/CVE-2018-1000802?format=md#impact-score)

Toggle side navigation

## 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.

[Read the notes from the security team](https://ubuntu.com/security/CVE-2018-1000802?format=md#notes)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| python2.7 | 18.10 cosmic | Not affected |
| 18.04 LTS bionic | Fixed 2.7.15~rc1-1ubuntu0.1 |
| 16.04 LTS xenial | Fixed 2.7.12-1ubuntu0~16.04.4 |
| 14.04 LTS trusty | Fixed 2.7.6-8ubuntu0.5 |
| python3.4 | 18.10 cosmic | Not in release |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Fixed 3.4.3-1ubuntu1~14.04.7 |
| python3.5 | 18.10 cosmic | Not in release |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not affected |
| 14.04 LTS trusty | Not affected |
| python3.6 | 18.10 cosmic | Not affected |
| 18.04 LTS bionic | Not affected |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| python3.7 | 18.10 cosmic | Not affected |
| 18.04 LTS bionic | Not affected |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2018-1000802?format=md#patch-details)

## Notes

---

### [mdeslaur](https://launchpad.net/~mdeslaur)

later versions of python removed \_call\_external\_zip completely

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| python2.7 | * Upstream:   [d8b103b](https://github.com/python/cpython/commit/d8b103b8b3ef9644805341216963a64098642435) |

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

9.8 · Critical

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | Low |
  | Privileges required | None |
  | User interaction | None |
  | Scope | Unchanged |
  | Confidentiality impact | High |
  | Integrity impact | High |
  | Availability impact | High |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 9.8 · Critical |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-1000802)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2018-1000802)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2018-1000802)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2018-1000802)

### Related Ubuntu Security Notices (USN)

+ [USN-3817-1](https://usn.ubuntu.com/USN-3817-1)
+ Python vulnerabilities
+ 13 November 2018

+ [USN-3817-2](https://usn.ubuntu.com/USN-3817-2)
+ Python vulnerabilities
+ 15 November 2018

### Other references

* <https://mega.nz/#!JUFiCC4R!mq-jQ8ySFwIhX6WMDujaZuNBfttDVt7DETlfOIQE1ig>
* <https://www.cve.org/CVERecord?id=CVE-2018-1000802>
