In Python (aka CPython) up to 3.10.8, the mailcap module does not add escape characters…
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 8 fixed, 2 without a fix
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and Red Hat. Impact type from CWE-77.
Summary
In Python (aka CPython) up to 3.10.8, the mailcap module does not add escape characters into commands discovered in the system mailcap file. This may allow attackers to inject shell commands into applications that call mailcap.findmatch with untrusted input (if they lack validation of user-provided filenames or arguments). The fix is also back-ported to 3.7, 3.8, 3.9
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 8
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:python:python:*:*:*:*:*:*:*:* | 3.7.0 – 3.7.15; 3.8.0 – 3.8.15; 3.9.0 – 3.9.15; 3.10.0 to before 3.10.8 | Vulnerable | python-pillow |
| cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:vmware_vsphere:*:* | not specified by NVD | Vulnerable | NetApp |
| cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:windows:*:* | not specified by NVD | Vulnerable | NetApp |
| cpe:2.3:a:netapp:ontap_select_deploy_administration_utility:-:*:*:*:*:*:*:* | not specified by NVD | Vulnerable | NetApp |
| cpe:2.3:a:netapp:snapcenter:-:*:*:*:*:*:*:* | not specified by NVD | Vulnerable | NetApp |
| cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* | 35 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* | 36 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* | 37 | Vulnerable | Fedoraproject |
- cpe:2.3:a:python:python:*:*:*:*:*:*:*:* Versions 3.7.0 – 3.7.15; 3.8.0 – 3.8.15; 3.9.0 – 3.9.15; 3.10.0 to before 3.10.8 Vulnerable ·python-pillow
- cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:vmware_vsphere:*:* Versions not specified by NVD Vulnerable ·NetApp
- cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:windows:*:* Versions not specified by NVD Vulnerable ·NetApp
- cpe:2.3:a:netapp:ontap_select_deploy_administration_utility:-:*:*:*:*:*:*:* Versions not specified by NVD Vulnerable ·NetApp
- cpe:2.3:a:netapp:snapcenter:-:*:*:*:*:*:*:* Versions not specified by NVD Vulnerable ·NetApp
- cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* Versions 35 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* Versions 36 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* Versions 37 Vulnerable ·Fedoraproject
Remediation
Red Hat 6 advisories
- RHSA-2022:8353 Released 2022-11-15 · Red Hat rating Moderatepython3.9 security, bug fix, and enhancement update
- Red Hat CodeReady Linux Builder (v. 9) python3-3.9.14-1.el9, python3-debug-3.9.14-1.el9, python3-idle-3.9.14-1.el9 +2
- Red Hat Enterprise Linux AppStream (v. 9) python-unversioned-command-3.9.14-1.el9, python3-devel-3.9.14-1.el9, python3-tkinter-3.9.14-1.el9
- Red Hat Enterprise Linux BaseOS (v. 9) python3-3.9.14-1.el9, python3-libs-3.9.14-1.el9, python3.9-3.9.14-1.el9
- RHSA-2022:7593 Released 2022-11-08 · Red Hat rating Moderatepython27:2.7 security update
- Red Hat Enterprise Linux AppStream (v. 8) Cython-0.28.1-7.module+el8.1.0+3111+de3f2d8e.src::python27:2.7, PyYAML-3.12-16.module+el8.1.0+3111+de3f2d8e.src::python27:2.7, babel-2.5.1-10.module+el8.5.0+11014+88fc0d0b.noarch::python27:2.7 +47
- RHSA-2022:7581 Released 2022-11-08 · Red Hat rating Moderatepython38:3.8 and python38-devel:3.8 security update
- Red Hat CodeReady Linux Builder (v. 8) pytest-4.6.6-3.module+el8.4.0+8888+89bc7e79.src::python38-devel:3.8, python-atomicwrites-1.3.0-8.module+el8.4.0+8888+89bc7e79.src::python38-devel:3.8, python-attrs-19.3.0-3.module+el8.4.0+8888+89bc7e79.src::python38-devel:3.8 +15
- Red Hat Enterprise Linux AppStream (v. 8) Cython-0.29.14-4.module+el8.4.0+8888+89bc7e79.src::python38:3.8, PyYAML-5.4.1-1.module+el8.5.0+10721+14d8e0d5.src::python38:3.8, babel-2.7.0-11.module+el8.5.0+11015+9c1c7c42.src::python38:3.8 +47
Show 3 more Red Hat advisories
- RHSA-2022:7592 Released 2022-11-08 · Red Hat rating Moderatepython39:3.9 and python39-devel:3.9 security update
- Red Hat CodeReady Linux Builder (v. 8) Cython-0.29.21-5.module+el8.4.0+9822+20bf1249.src::python39-devel:3.9, pybind11-2.7.1-1.module+el8.6.0+12838+640e6226.src::python39-devel:3.9, pytest-6.0.2-2.module+el8.4.0+9822+20bf1249.src::python39-devel:3.9 +33
- Red Hat Enterprise Linux AppStream (v. 8) PyYAML-5.4.1-1.module+el8.5.0+10613+59a13ec4.src::python39:3.9, mod_wsgi-4.7.1-5.module+el8.7.0+16654+645aad7f.src::python39:3.9, numpy-1.19.4-3.module+el8.5.0+12204+54860423.src::python39:3.9 +47
- RHSA-2022:6766 Released 2022-10-03 · Red Hat rating Moderaterh-python38-python security update
- Red Hat Software Collections for RHEL Workstation(v. 7) rh-python38-python-3.8.14-1.el7, rh-python38-python-debug-3.8.14-1.el7, rh-python38-python-devel-3.8.14-1.el7 +6
- Red Hat Software Collections for RHEL(v. 7) rh-python38-python-3.8.14-1.el7, rh-python38-python-debug-3.8.14-1.el7, rh-python38-python-devel-3.8.14-1.el7 +6
- RHSA-2022:6457 Released 2022-09-13 · Red Hat rating Moderatepython3 security update
- Red Hat Enterprise Linux AppStream (v. 8) platform-python-3.6.8-47.el8_6, platform-python-debug-3.6.8-47.el8_6, platform-python-devel-3.6.8-47.el8_6 +3
- Red Hat Enterprise Linux BaseOS (v. 8) platform-python-3.6.8-47.el8_6, python3-3.6.8-47.el8_6, python3-libs-3.6.8-47.el8_6 +1
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
| Red Hat Software Collections | Affected | No fix planned: Will not fix |
| Red Hat CodeReady Linux Builder (v. 8) | Fixed | RHSA-2022:7581, RHSA-2022:7592 |
| Red Hat CodeReady Linux Builder (v. 9) | Fixed | RHSA-2022:8353 |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2022:6457, RHSA-2022:7581, RHSA-2022:7592, RHSA-2022:7593 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2022:8353 |
| Red Hat Enterprise Linux BaseOS (v. 8) | Fixed | RHSA-2022:6457 |
| Red Hat Enterprise Linux BaseOS (v. 9) | Fixed | RHSA-2022:8353 |
| Red Hat Software Collections for RHEL Workstation(v. 7) | Fixed | RHSA-2022:6766 |
| Red Hat Software Collections for RHEL(v. 7) | Fixed | RHSA-2022:6766 |
Not affected: 3 products
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
Timeline
- 2026-10-02 Threatist record created from CVE-2015-20107
- 2026-10-03 Alias added: GHSA-wvcr-2gc8-63gg
- 2026-10-08 EPSS moved to the 50th–90th percentile
- 2026-10-08 CVSS score added · CISA ADP
- 2026-10-08 Weakness changed · CISA ADP
- 2026-10-08 CISA SSVC decision points changed
References
Exploit 1
Advisory 25
- https://github.com/python/cpython/issues/68966
- https://security.netapp.com/advisory/ntap-20220616-0001/
- FEDORA-2022-5ad25e3d3c
- FEDORA-2022-cece1d07d9
- FEDORA-2022-2e1d1205cf
- FEDORA-2022-4b0dfda810
- FEDORA-2022-1358cedf2d
- FEDORA-2022-0be85556b4
- FEDORA-2022-a8e50dc83e
- FEDORA-2022-4c788bdc40
- FEDORA-2022-9da5703d22
- FEDORA-2022-4a69d20cf4
- FEDORA-2022-5ea8aa7518
- FEDORA-2022-ec74ac4079
- FEDORA-2022-17a1bb7e78
- FEDORA-2022-dbe9a8f9ac
- FEDORA-2022-9dd70781cb
- FEDORA-2022-20e87fb0d1
- FEDORA-2022-9cd41b6709
- FEDORA-2022-d157a91e10
- FEDORA-2022-ce55d01569
- FEDORA-2022-b499f2a9c6
- FEDORA-2022-d1682fef04
- FEDORA-2022-79843dfb3c
- GLSA-202305-02
Sources
- CVE-2015-20107 · CVE Program
- CVE-2015-20107 · NVD
- FIRST EPSS
- GHSA-wvcr-2gc8-63gg · GitHub Advisory Database · CC BY 4.0
- CVE-2015-20107 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences