CVE-2015-20107

7.6 HIGH
Published: April 13, 2022 Modified: November 03, 2025

Description

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

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
https://bugs.python.org/issue24778
Source: cve@mitre.org
Exploit Issue Tracking Vendor Advisory
https://github.com/python/cpython/issues/68966
Source: cve@mitre.org
Issue Tracking Third Party Advisory
https://security.netapp.com/advisory/ntap-20220616-0001/
Source: cve@mitre.org
Third Party Advisory
https://bugs.python.org/issue24778
Source: af854a3a-2127-422b-91ae-364da2661108
Exploit Issue Tracking Vendor Advisory
https://github.com/python/cpython/issues/68966
Source: af854a3a-2127-422b-91ae-364da2661108
Issue Tracking Third Party Advisory
https://python-security.readthedocs.io/vuln/mailcap-shell-injection.html
Source: af854a3a-2127-422b-91ae-364da2661108
Patch Third Party Advisory
https://security.gentoo.org/glsa/202305-02
Source: af854a3a-2127-422b-91ae-364da2661108
https://security.netapp.com/advisory/ntap-20220616-0001/
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory

59 reference(s) from NVD

Quick Stats

CVSS v3 Score
7.6 / 10.0
EPSS (Exploit Probability)
0.9%
75th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

python fedoraproject netapp