CVE-2015-20107

HIGH CVSS 3.1: 7.6 EPSS 2.78%
Updated Oct 14, 2026
Fedoraproject
Parameter Value
CVSS 7.6 (HIGH)
Affected Versions 3.10.0 — 3.9.15
Fixed In 3.10.8
Type CWE-77 (Command Injection)
Vendor Fedoraproject
Public PoC No

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

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
Low
Basic privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
Low
Partial data leak
Integrity
High
Complete data modification
Availability
Low
Partial disruption

CVSS Vector v3.1

Weakness Type (CWE)

Vulnerable Products 11

Configuration From (including) Up to (excluding)
Python Python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
3.7.0 <= 3.7.15
Python Python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
3.8.0 <= 3.8.15
Python Python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
3.9.0 <= 3.9.15
Python Python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
3.10.0 3.10.8
Netapp Active_Iq_Unified_Manager
cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:vmware_vsphere:*:*
— —
Netapp Active_Iq_Unified_Manager
cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:windows:*:*
— —
Netapp Ontap_Select_Deploy_Administration_Utility
cpe:2.3:a:netapp:ontap_select_deploy_administration_utility:-:*:*:*:*:*:*:*
— —
Netapp Snapcenter
cpe:2.3:a:netapp:snapcenter:-:*:*:*:*:*:*:*
— —
Fedoraproject Fedora
cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
— —
Fedoraproject Fedora
cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*
— —
Fedoraproject Fedora
cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*
— —

References 31

https://bugs.python.org/issue24778
cve@mitre.org
https://github.com/python/cpython/issues/68966
cve@mitre.org
https://lists.debian.org/debian-lts-announce/2023/05/msg00024.html
cve@mitre.org
https://lists.debian.org/debian-lts-announce/2023/06/msg00039.html
cve@mitre.org
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
cve@mitre.org
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
cve@mitre.org
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
cve@mitre.org
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
cve@mitre.org
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
cve@mitre.org
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
cve@mitre.org
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
cve@mitre.org
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
cve@mitre.org
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
cve@mitre.org
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
cve@mitre.org
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
cve@mitre.org
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
cve@mitre.org
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
cve@mitre.org
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
cve@mitre.org
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
cve@mitre.org
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
cve@mitre.org
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
cve@mitre.org
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
cve@mitre.org
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
cve@mitre.org
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
cve@mitre.org
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
cve@mitre.org
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
cve@mitre.org
https://python-security.readthedocs.io/vuln/mailcap-shell-injection.html
cve@mitre.org
https://security.gentoo.org/glsa/202305-02
cve@mitre.org
https://security.netapp.com/advisory/ntap-20220616-0001/
cve@mitre.org
https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html
af854a3a-2127-422b-91ae-364da2661108
https://cert-portal.siemens.com/productcert/html/ssa-398330.html
0b142b55-0307-4c5a-b3c9-f314f3fb7c5e