Vulnerabilities / CVE-2018-1000802

critical

CVE-2018-1000802

python: Command injection in the shutil module

Published Modified CWE 77
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat6.5CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L

Trivy's own label is CRITICAL. Rated critical by NVD, Photon OS. Rated lower by Red Hat (medium), Ubuntu (medium).

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.

Affected packages and fixed versions

SourcePackageFixed in
Photon OS 2.0python22.7.15-18.ph2
debian 11python2.72.7.15-5
debian 8python2.7, python3.42.7.9-2+deb8u2 and 1 more
debian 9python2.72.7.13-2+deb9u3
ubuntu 14.04python2.7, python3.42.7.6-8ubuntu0.5 and 1 more
ubuntu 14.04-ESMpython2.7, python3.42.7.6-8ubuntu0.5 and 1 more
ubuntu 16.04python2.72.7.12-1ubuntu0~16.04.4
ubuntu 16.04-ESMpython2.72.7.12-1ubuntu0~16.04.4
ubuntu 18.04python2.72.7.15~rc1-1ubuntu0.1
ubuntu 18.04-ESMpython2.72.7.15~rc1-1ubuntu0.1
Show all 13 entries from 10 sources
SourcePackageFixed in
Photon OS 2.0python22.7.15-18.ph2
debian 11python2.72.7.15-5
debian 8python2.72.7.9-2+deb8u2
debian 8python3.43.4.2-1+deb8u1
debian 9python2.72.7.13-2+deb9u3
ubuntu 14.04python2.72.7.6-8ubuntu0.5
ubuntu 14.04python3.43.4.3-1ubuntu1~14.04.7
ubuntu 14.04-ESMpython2.72.7.6-8ubuntu0.5
ubuntu 14.04-ESMpython3.43.4.3-1ubuntu1~14.04.7
ubuntu 16.04python2.72.7.12-1ubuntu0~16.04.4
ubuntu 16.04-ESMpython2.72.7.12-1ubuntu0~16.04.4
ubuntu 18.04python2.72.7.15~rc1-1ubuntu0.1
ubuntu 18.04-ESMpython2.72.7.15~rc1-1ubuntu0.1

References

All 17 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.