PyPi: Python

CVE-2015-20107

Safety vulnerability ID: 48131

This vulnerability was reviewed by experts

The information on this page was manually curated by our Cybersecurity Intelligence Team.

Created at Apr 13, 2022 Updated at Dec 05, 2024
Scan your Python projects for vulnerabilities →

Advisory

Python 3.7.16, 3.8.16, 3.9.16, 3.10.6 and 3.11.0b4 include a fix for CVE-2015-20107: 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).
https://python-security.readthedocs.io/vuln/mailcap-shell-injection.html

Affected package

python

Latest version: 0.9.8

Affected versions

Fixed versions

Vulnerability changelog

In Python (aka CPython) through 3.10.4, 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). See CVE-2015-20107.


MISC:https://bugs.python.org/issue24778: https://bugs.python.org/issue24778
MISC:https://github.com/python/cpython/issues/68966: https://github.com/python/cpython/issues/68966

Resources

Use this package?

Scan your Python project for dependency vulnerabilities in two minutes

Scan your application

Severity Details

CVSS Base Score

HIGH 7.6

CVSS v3 Details

HIGH 7.6
Attack Vector (AV)
NETWORK
Attack Complexity (AC)
LOW
Privileges Required (PR)
LOW
User Interaction (UI)
NONE
Scope (S)
UNCHANGED
Confidentiality Impact (C)
LOW
Integrity Impact (I)
HIGH
Availability Availability (A)
LOW

CVSS v2 Details

HIGH 8.0
Access Vector (AV)
NETWORK
Access Complexity (AC)
LOW
Authentication (Au)
SINGLE
Confidentiality Impact (C)
PARTIAL
Integrity Impact (I)
COMPLETE
Availability Impact (A)
PARTIAL