Lucene search

K
ubuntucveUbuntu.comUB:CVE-2015-20107
HistoryApr 13, 2022 - 12:00 a.m.

CVE-2015-20107

2022-04-1300:00:00
ubuntu.com
ubuntu.com
24
python
cpython
mailcap module
shell command injection
system mailcap file
security fix
back-porting
patch
discussions
unix

CVSS2

8

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

SINGLE

Confidentiality Impact

PARTIAL

Integrity Impact

COMPLETE

Availability Impact

PARTIAL

AV:N/AC:L/Au:S/C:P/I:C/A:P

CVSS3

7.6

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

LOW

Integrity Impact

HIGH

Availability Impact

LOW

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

EPSS

0.002

Percentile

55.8%

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

Bugs

Notes

Author Note
leosilva patch was proposed in cpython Lib/mailcap.py but not merged yet. it sounds a better approach was PR to fix that issue, but still not merged yet. there are plenty of discussions going on about proper ways to fix that issue, but none was accept yet that fix the issue and keep the software working properly.
OSVersionArchitecturePackageVersionFilename
ubuntu18.04noarchpython2.7< 2.7.17-1~18.04ubuntu1.8UNKNOWN
ubuntu20.04noarchpython2.7< 2.7.18-1~20.04.3UNKNOWN
ubuntu21.10noarchpython2.7< 2.7.18-8ubuntu0.2UNKNOWN
ubuntu22.04noarchpython2.7< 2.7.18-13ubuntu1.1UNKNOWN
ubuntu22.10noarchpython2.7< 2.7.18-13ubuntu2UNKNOWN
ubuntu14.04noarchpython2.7< 2.7.6-8ubuntu0.6+esm11UNKNOWN
ubuntu16.04noarchpython2.7< 2.7.12-1ubuntu0~16.04.18+esm2UNKNOWN
ubuntu22.04noarchpython3.10< 3.10.4-3ubuntu0.1UNKNOWN
ubuntu14.04noarchpython3.4< 3.4.3-1ubuntu1~14.04.7+esm13UNKNOWN
ubuntu14.04noarchpython3.5< 3.5.2-2ubuntu0~16.04.4~14.04.1+esm1UNKNOWN
Rows per page:
1-10 of 171

CVSS2

8

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

SINGLE

Confidentiality Impact

PARTIAL

Integrity Impact

COMPLETE

Availability Impact

PARTIAL

AV:N/AC:L/Au:S/C:P/I:C/A:P

CVSS3

7.6

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

LOW

Integrity Impact

HIGH

Availability Impact

LOW

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

EPSS

0.002

Percentile

55.8%