CVE-2018-1000802: Command Injection

Published Sep 18, 2018
·
Updated

Last updated 25 August 2025

Other sources

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 (makearchive 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.

Launchpad

Affected Software

9 affected componentsFixes available
debian/python2.7
2.7.18-8+deb11u1
Python Python>=2.7.0<2.7.16
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04
Debian Debian Linux=8.0
Debian Debian Linux=9.0
openSUSE Leap=15.1

Event History

Sep 18, 2018
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Jan 11, 2024
Data Sourced
via Launchpad·10:45 PM
Description
Feb 20, 2026
Data Sourced
via Ubuntu·03:18 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2018-1000802?

CVE-2018-1000802 is considered a medium-severity vulnerability that can lead to command injection and denial of service.

2

How do I fix CVE-2018-1000802?

To fix CVE-2018-1000802, update Python to version 2.7.18 or later where the vulnerability has been patched.

3

What versions of Python are affected by CVE-2018-1000802?

CVE-2018-1000802 affects all versions of Python 2.7 up to 2.7.16.

4

Can CVE-2018-1000802 lead to information disclosure?

Yes, CVE-2018-1000802 can potentially lead to information disclosure through command injection vulnerabilities.

5

What function in Python is associated with CVE-2018-1000802?

The vulnerability in CVE-2018-1000802 is located in the shutil module, specifically the make_archive function.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203