CVE Database›CVE-2015-20107

CVE-2015-20107

python: mailcap: findmatch() function does not sanitize the second argument

Loading…

Severity

Moderate

Red Hat Product Security

7.6

CVSS 3.1

Review impact separately from score.

Published · August 2, 2015

Updated · November 2, 2026

Description

A command injection vulnerability was found in the Python mailcap module. The issue occurs due to not adding escape characters into the system mailcap file commands. This flaw allows attackers to inject shell commands into applications that call the mailcap.findmatch function with untrusted input.

Statement

Versions of python36:3.6/python36 as shipped with Red Hat Enterprise Linux 8 are marked as 'Not affected' as they just provide "symlinks" to the main python3 component, which provides the actual interpreter of the Python programming language.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Users should upgrade to the latest version. If this is not possible and the affected version of the Python mailcap module has to be used then applications that use mailcap module should verify user input before passing it to the mailcap module, and the returned command before executing it.

CVSS / CWE

CVSS 3.1 · 7.6
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L

CWE-88 · Improper Neutralization of Argument Delimiters in a Command