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...
Critical CVSS 9.8
- CVE id
- CVE-2018-1000802
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Python Runtimes and servers |
>= 2.7.0, < 2.7.16 | 2.7.16 |
How to fix it
Upgrade Python to 2.7.16 or later.
python --version
- Install the patched Python release of your minor line (pyenv, the python image tag, or your OS packages) and recreate virtual environments.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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.
References
- CVE-2018-1000802 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2018-1000802
- Web: https://bugs.python.org/issue34540
- Web: https://github.com/python/cpython/pull/8985
- Web: https://github.com/python/cpython/pull/8985/commits/add531a1e55b0a739b0f42582f1c9747e5649ace
- Web: https://lists.debian.org/debian-lts-announce/2018/09/msg00030.html
- Web: https://lists.debian.org/debian-lts-announce/2018/09/msg00031.html
- Web: https://mega.nz/#%21JUFiCC4R%21mq-jQ8ySFwIhX6WMDujaZuNBfttDVt7DETlfOIQE1ig
- Web: https://security.netapp.com/advisory/ntap-20230309-0002/
- Web: https://usn.ubuntu.com/3817-1/
- Web: https://usn.ubuntu.com/3817-2/
- Web: https://www.debian.org/security/2018/dsa-4306
- Web: https://bugs.python.org/issue34540
- Web: https://github.com/python/cpython/pull/8985
- Web: https://github.com/python/cpython/pull/8985/commits/add531a1e55b0a739b0f42582f1c9747e5649ace
- Web: https://lists.debian.org/debian-lts-announce/2018/09/msg00030.html
- Web: https://lists.debian.org/debian-lts-announce/2018/09/msg00031.html
- Web: https://mega.nz/#%21JUFiCC4R%21mq-jQ8ySFwIhX6WMDujaZuNBfttDVt7DETlfOIQE1ig
- Web: https://security.netapp.com/advisory/ntap-20230309-0002/
- Web: https://usn.ubuntu.com/3817-1/
- Web: https://usn.ubuntu.com/3817-2/
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.