python: Command injection in the shutil module
Published Sep 18, 2018
9.8
CRITICALCVSS 3.1
EPSS 20.13%
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 products
No data.
Configuration 2
- 12.04
- 14.04
- 16.04
- 18.04
- 8.0
- 9.0
- 15.1
Configuration 3
- 8.0
- 9.0
No data.
Red Hat Enterprise Linux 5
python
Not affected
Red Hat Enterprise Linux 6
python
Not affected
Red Hat Enterprise Linux 7
python
Not affected
Red Hat Software Collections
python27-python
Not affected
Red Hat Software Collections
rh-python35-python
Not affected
Red Hat Software Collections
rh-python36-python
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | python | Not affected | n/a |
| Red Hat Enterprise Linux 6 | python | Not affected | n/a |
| Red Hat Enterprise Linux 7 | python | Not affected | n/a |
| Red Hat Software Collections | python27-python | Not affected | n/a |
| Red Hat Software Collections | rh-python35-python | Not affected | n/a |
| Red Hat Software Collections | rh-python36-python | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This issue did not affect the versions of python as shipped with Red Hat Enterprise Linux 5, 6 and 7 as Linux does not use the vulnerable code.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
AV:N/AC:L/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 2, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (36 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 2, 2026 | 20.13% (0.20126) | 97.39th | v5 (v2026.06.15) |
| Jun 15, 2026 | 20.81% (0.20807) | 97.21th | v5 (v2026.06.15) |
| May 1, 2026 | 26.49% (0.26492) | 96.35th | v4 (v2025.03.14) |
| Mar 26, 2026 | 23.20% (0.23201) | 95.89th | v4 (v2025.03.14) |
| Dec 28, 2025 | 27.45% (0.27450) | 96.25th | v4 (v2025.03.14) |
| Dec 27, 2025 | 23.98% (0.23977) | 95.86th | v4 (v2025.03.14) |
| Nov 26, 2025 | 27.45% (0.27450) | 96.22th | v4 (v2025.03.14) |
| Nov 21, 2025 | 23.20% (0.23201) | 95.71th | v4 (v2025.03.14) |
| Nov 18, 2025 | 21.18% (0.21182) | 95.27th | v4 (v2025.03.14) |
| Oct 28, 2025 | 23.20% (0.23201) | 95.69th | v4 (v2025.03.14) |
| Oct 27, 2025 | 20.08% (0.20083) | 95.25th | v4 (v2025.03.14) |
| Oct 1, 2025 | 23.20% (0.23201) | 95.77th | v4 (v2025.03.14) |
| Sep 13, 2025 | 20.08% (0.20083) | 95.29th | v4 (v2025.03.14) |
| Aug 18, 2025 | 23.98% (0.23977) | 95.80th | v4 (v2025.03.14) |
| Jul 30, 2025 | 21.33% (0.21328) | 95.44th | v4 (v2025.03.14) |
| Jun 28, 2025 | 22.50% (0.22499) | 95.55th | v4 (v2025.03.14) |
| Mar 30, 2025 | 24.41% (0.24410) | 95.64th | v4 (v2025.03.14) |
| Mar 29, 2025 | 52.78% (0.52776) | 97.02th | v4 (v2025.03.14) |
| Mar 28, 2025 | 24.41% (0.24410) | 95.64th | v4 (v2025.03.14) |
| Mar 27, 2025 | 52.78% (0.52776) | 97.58th | v4 (v2025.03.14) |
| Mar 20, 2025 | 39.01% (0.39013) | 97.00th | v4 (v2025.03.14) |
| Mar 19, 2025 | 52.78% (0.52776) | 97.63th | v4 (v2025.03.14) |
| Mar 17, 2025 | 39.01% (0.39013) | 96.94th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.96% (0.00962) | 83.97th | v3 (v2023.03.01) |
| Feb 9, 2024 | 0.96% (0.00960) | 82.77th | v3 (v2023.03.01) |
| Nov 8, 2023 | 0.88% (0.00883) | 80.63th | v3 (v2023.03.01) |
| Sep 12, 2023 | 1.08% (0.01080) | 82.52th | v3 (v2023.03.01) |
| Jul 8, 2023 | 0.82% (0.00822) | 79.59th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.89% (0.00886) | 80.08th | v3 (v2023.03.01) |
| Mar 6, 2023 | 17.17% (0.17166) | 96.23th | v2 (v2022.01.01) |
| Apr 1, 2022 | 17.17% (0.17166) | 95.87th | v2 (v2022.01.01) |
| Feb 4, 2022 | 17.17% (0.17166) | 93.10th | v2 (v2022.01.01) |
| Feb 3, 2022 | 11.51% (0.11512) | 88.34th | v1 |
| Jan 6, 2022 | 11.51% (0.11512) | 88.20th | v1 |
| Sep 1, 2021 | 11.51% (0.11512) | 95.62th | v1 |
| Apr 14, 2021 | 11.51% (0.11512) | 0.00th | v1 |
References (15)
- http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00040.html vendor-advisoryMailing ListThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2018-1000802 Vendor Advisory
- https://bugs.python.org/issue34540 Issue TrackingPatchVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1631420 Issue Tracking
- https://github.com/python/cpython/pull/8985 PatchVendor Advisory
- https://github.com/python/cpython/pull/8985/commits/add531a1e55b0a739b0f42582f1c9747e5649ace PatchVendor Advisory
- https://lists.debian.org/debian-lts-announce/2018/09/msg00030.html mailing-listMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2018/09/msg00031.html mailing-listMailing ListThird Party Advisory
- https://mega.nz/#%21JUFiCC4R%21mq-jQ8ySFwIhX6WMDujaZuNBfttDVt7DETlfOIQE1ig
- https://nvd.nist.gov/vuln/detail/CVE-2018-1000802
- https://security.netapp.com/advisory/ntap-20230309-0002/
- https://usn.ubuntu.com/3817-1/ vendor-advisoryThird Party Advisory
- https://usn.ubuntu.com/3817-2/ vendor-advisoryThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2018-1000802
- https://www.debian.org/security/2018/dsa-4306 vendor-advisoryThird Party Advisory
Change history (0)
No recorded changes yet.