RCE in Python
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.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.201, 97.5th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Python
- Canonical Ubuntu Linux — versions 12.04, 14.04, 16.04
- Debian Linux — versions 8.0, 9.0
- openSUSE Leap — versions 15.1
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- tna0y/CVE-2018-1000802-PoC (3 stars, last pushed 2018-09-14): Python CVE-2018-1000802 Proof-of-Concept
Also mentioned in 4 other repositories (0xT11/CVE-POC, ARPSyndicate/cvemon, BSolarV/cvedetails-summary, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- DSA-4306 (vendor-advisory, Third Party Advisory)
- [debian-lts-announce] 20180926 [SECURITY] [DLA 1520-1] python3.4 security update (mailing-list, Mailing List, Third Party Advisory)
- USN-3817-2 (vendor-advisory, Third Party Advisory)
- github.com/python/cpython/pull/8985/commits/add531a1e55b0a739b0f42582f1c9747e56… (Patch, Vendor Advisory)
- mega.nz/
- github.com/python/cpython/pull/8985 (Patch, Vendor Advisory)
- USN-3817-1 (vendor-advisory, Third Party Advisory)
- bugs.python.org/issue34540 (Patch, Issue Tracking, Vendor Advisory)
- [debian-lts-announce] 20180925 [SECURITY] [DLA 1519-1] python2.7 security update (mailing-list, Mailing List, Third Party Advisory)
- openSUSE-SU-2020:0086 (vendor-advisory, Mailing List, Third Party Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.