---
title: "CVE-2015-20107"
canonical_url: "https://pkgseek.com/security/CVE-2015-20107"
locale: "zh-CN"
source: "pkgseek"
entity_type: "cve"
severity: "high"
---

# CVE-2015-20107

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

CVE-2015-20107 严重级别为 HIGH (7.6)，共索引 171 条受影响软件包构建记录，涉及 4 个发行版。

- **级别 / 评分**: HIGH (7.6)
- **受影响构建数**: 171
- **涉及发行版**: 4
- **已标明修复版本发行版**: Alibaba Cloud Linux, Oracle Linux, Red Hat Enterprise Linux, Ubuntu

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Alibaba Cloud Linux | 3 | platform-python | 3.6.8-39.1.al8 | 3.6.8-47.0.3.al8 |
| Alibaba Cloud Linux | 3 | platform-python-debug | 3.6.8-39.1.al8 | 3.6.8-47.0.3.al8 |
| Alibaba Cloud Linux | 3 | platform-python-devel | 3.6.8-39.1.al8 | 3.6.8-47.0.3.al8 |
| Alibaba Cloud Linux | 3 | python3-devel | 3.6.8-39.1.al8 | 3.6.8-47.0.3.al8 |
| Alibaba Cloud Linux | 3 | python3-idle | 3.6.8-39.1.al8 | 3.6.8-47.0.3.al8 |
| Alibaba Cloud Linux | 3 | python3-libs | 3.6.8-39.1.al8 | 3.6.8-47.0.3.al8 |
| Alibaba Cloud Linux | 3 | python3-test | 3.6.8-39.1.al8 | 3.6.8-47.0.3.al8 |
| Alibaba Cloud Linux | 3 | python3-tkinter | 3.6.8-39.1.al8 | 3.6.8-47.0.3.al8 |
| Oracle Linux | 8 | babel | 2.5.1-9.module+el8.3.0+7833+4aaf98ce | 2.5.1-10.module+el8.5.0+20361+8a9d3d27 |
| Oracle Linux | 8 | platform-python | 3.6.8-47.0.1.el8 | 3.6.8-47.0.1.el8_6 |
| Oracle Linux | 8 | platform-python-debug | 3.6.8-47.0.1.el8 | 3.6.8-47.0.1.el8_6 |
| Oracle Linux | 8 | platform-python-devel | 3.6.8-47.0.1.el8 | 3.6.8-47.0.1.el8_6 |
| Oracle Linux | 8 | python2 | 2.7.18-10.0.1.module+el8.6.0+20550+a85dc526 | 2.7.18-11.0.1.module+el8.7.0+20809+34912fc4 |
| Oracle Linux | 8 | python2-attrs | 17.4.0-10.module+el8.2.0+5577+bb63ba72 | 17.4.0-10.module+el8.3.0+7833+4aaf98ce |
| Oracle Linux | 8 | python2-babel | 2.5.1-9.module+el8.3.0+7833+4aaf98ce | 2.5.1-10.module+el8.5.0+20361+8a9d3d27 |
| Oracle Linux | 8 | python2-backports | 1.0-15.0.1.module+el8.3.0+7833+4aaf98ce | 1.0-16.module+el8.4.0+20050+79c7b4ee |
| Oracle Linux | 8 | python2-backports-ssl_match_hostname | 3.5.0.1-11.module+el8.3.0+7833+4aaf98ce | 3.5.0.1-12.module+el8.4.0+20050+79c7b4ee |
| Oracle Linux | 8 | python2-bson | 3.6.1-11.module+el8.3.0+7833+4aaf98ce | 3.7.0-1.module+el8.5.0+20361+8a9d3d27 |
| Oracle Linux | 8 | python2-chardet | 3.0.4-10.module+el8.2.0+5577+bb63ba72 | 3.0.4-10.module+el8.3.0+7833+4aaf98ce |
| Oracle Linux | 8 | python2-coverage | 4.5.1-4.module+el8.2.0+5577+bb63ba72 | 4.5.1-4.module+el8.3.0+7833+4aaf98ce |
| Oracle Linux | 8 | python2-Cython | 0.28.1-7.module+el8.2.0+5577+bb63ba72 | 0.28.1-7.module+el8.3.0+7833+4aaf98ce |
| Oracle Linux | 8 | python2-debug | 2.7.18-10.0.1.module+el8.6.0+20550+a85dc526 | 2.7.18-11.0.1.module+el8.7.0+20809+34912fc4 |
| Oracle Linux | 8 | python2-devel | 2.7.18-10.0.1.module+el8.6.0+20550+a85dc526 | 2.7.18-11.0.1.module+el8.7.0+20809+34912fc4 |
| Oracle Linux | 8 | python2-dns | 1.15.0-10.module+el8.2.0+5577+bb63ba72 | 1.15.0-10.module+el8.3.0+7833+4aaf98ce |
| Oracle Linux | 8 | python2-docs | 2.7.16-2.module+el8.2.0+5577+bb63ba72 | 2.7.16-2.module+el8.3.0+7833+4aaf98ce |
| Oracle Linux | 8 | python2-docs-info | 2.7.16-2.module+el8.2.0+5577+bb63ba72 | 2.7.16-2.module+el8.3.0+7833+4aaf98ce |
| Oracle Linux | 8 | python2-docutils | 0.14-12.module+el8.2.0+5577+bb63ba72 | 0.14-12.module+el8.3.0+7833+4aaf98ce |
| Oracle Linux | 8 | python2-funcsigs | 1.0.2-13.module+el8.2.0+5577+bb63ba72 | 1.0.2-13.module+el8.3.0+7833+4aaf98ce |
| Oracle Linux | 8 | python2-idna | 2.5-7.module+el8.2.0+5577+bb63ba72 | 2.5-7.module+el8.3.0+7833+4aaf98ce |
| Oracle Linux | 8 | python2-ipaddress | 1.0.18-6.module+el8.2.0+5577+bb63ba72 | 1.0.18-6.module+el8.3.0+7833+4aaf98ce |
| Oracle Linux | 8 | python2-jinja2 | 2.10-8.module+el8.3.0+7833+4aaf98ce | 2.10-9.module+el8.5.0+20361+8a9d3d27 |
| Oracle Linux | 8 | python2-libs | 2.7.18-10.0.1.module+el8.6.0+20550+a85dc526 | 2.7.18-11.0.1.module+el8.7.0+20809+34912fc4 |
| Oracle Linux | 8 | python2-lxml | 4.2.3-5.module+el8.5.0+20361+8a9d3d27 | 4.2.3-6.module+el8.6.0+20550+a85dc526 |
| Oracle Linux | 8 | python2-markupsafe | 0.23-19.module+el8.2.0+5577+bb63ba72 | 0.23-19.module+el8.3.0+7833+4aaf98ce |
| Oracle Linux | 8 | python2-mock | 2.0.0-13.module+el8.2.0+5577+bb63ba72 | 2.0.0-13.module+el8.3.0+7833+4aaf98ce |
| Oracle Linux | 8 | python2-nose | 1.3.7-30.module+el8.3.0+7833+4aaf98ce | 1.3.7-31.module+el8.5.0+20361+8a9d3d27 |
| Oracle Linux | 8 | python2-numpy | 1:1.14.2-13.module+el8.3.0+7833+4aaf98ce | 1:1.14.2-16.module+el8.4.0+20050+79c7b4ee |
| Oracle Linux | 8 | python2-numpy-doc | 1:1.14.2-13.module+el8.3.0+7833+4aaf98ce | 1:1.14.2-16.module+el8.4.0+20050+79c7b4ee |
| Oracle Linux | 8 | python2-numpy-f2py | 1:1.14.2-13.module+el8.3.0+7833+4aaf98ce | 1:1.14.2-16.module+el8.4.0+20050+79c7b4ee |
| Oracle Linux | 8 | python2-pip | 9.0.3-18.module+el8.3.0+7833+4aaf98ce | 9.0.3-19.module+el8.6.0+20550+a85dc526 |
| Oracle Linux | 8 | python2-pip-wheel | 9.0.3-18.module+el8.3.0+7833+4aaf98ce | 9.0.3-19.module+el8.6.0+20550+a85dc526 |
| Oracle Linux | 8 | python2-pluggy | 0.6.0-8.module+el8.2.0+5577+bb63ba72 | 0.6.0-8.module+el8.3.0+7833+4aaf98ce |
| Oracle Linux | 8 | python2-psycopg2 | 2.7.5-7.module+el8.2.0+5577+bb63ba72 | 2.7.5-7.module+el8.3.0+7833+4aaf98ce |
| Oracle Linux | 8 | python2-psycopg2-debug | 2.7.5-7.module+el8.2.0+5577+bb63ba72 | 2.7.5-7.module+el8.3.0+7833+4aaf98ce |
| Oracle Linux | 8 | python2-psycopg2-tests | 2.7.5-7.module+el8.2.0+5577+bb63ba72 | 2.7.5-7.module+el8.3.0+7833+4aaf98ce |
| Oracle Linux | 8 | python2-py | 1.5.3-6.module+el8.2.0+5577+bb63ba72 | 1.5.3-6.module+el8.3.0+7833+4aaf98ce |
| Oracle Linux | 8 | python2-pygments | 2.2.0-20.module+el8.3.0+7833+4aaf98ce | 2.2.0-22.module+el8.5.0+20361+8a9d3d27 |
| Oracle Linux | 8 | python2-pymongo | 3.6.1-11.module+el8.3.0+7833+4aaf98ce | 3.7.0-1.module+el8.5.0+20361+8a9d3d27 |
| Oracle Linux | 8 | python2-pymongo-gridfs | 3.6.1-11.module+el8.3.0+7833+4aaf98ce | 3.7.0-1.module+el8.5.0+20361+8a9d3d27 |
| Oracle Linux | 8 | python2-PyMySQL | 0.8.0-10.module+el8.2.0+5577+bb63ba72 | 0.8.0-10.module+el8.3.0+7833+4aaf98ce |
| Oracle Linux | 8 | python2-pysocks | 1.6.8-6.module+el8.2.0+5577+bb63ba72 | 1.6.8-6.module+el8.3.0+7833+4aaf98ce |
| Oracle Linux | 8 | python2-pytest | 3.4.2-13.module+el8.2.0+5577+bb63ba72 | 3.4.2-13.module+el8.3.0+7833+4aaf98ce |
| Oracle Linux | 8 | python2-pytest-mock | 1.9.0-4.module+el8.2.0+5577+bb63ba72 | 1.9.0-4.module+el8.3.0+7833+4aaf98ce |
| Oracle Linux | 8 | python2-pytz | 2017.2-12.module+el8.2.0+5577+bb63ba72 | 2017.2-12.module+el8.3.0+7833+4aaf98ce |
| Oracle Linux | 8 | python2-pyyaml | 3.12-16.module+el8.2.0+5577+bb63ba72 | 3.12-16.module+el8.3.0+7833+4aaf98ce |
| Oracle Linux | 8 | python2-requests | 2.20.0-3.module+el8.2.0+5577+bb63ba72 | 2.20.0-3.module+el8.3.0+7833+4aaf98ce |
| Oracle Linux | 8 | python2-rpm-macros | 3-38.module+el8.2.0+5577+bb63ba72 | 3-38.module+el8.3.0+7833+4aaf98ce |
| Oracle Linux | 8 | python2-scipy | 1.0.0-20.module+el8.3.0+7833+4aaf98ce | 1.0.0-21.module+el8.5.0+20361+8a9d3d27 |
| Oracle Linux | 8 | python2-setuptools | 39.0.1-12.module+el8.3.0+7833+4aaf98ce | 39.0.1-13.module+el8.4.0+20050+79c7b4ee |
| Oracle Linux | 8 | python2-setuptools_scm | 1.15.7-6.module+el8.2.0+5577+bb63ba72 | 1.15.7-6.module+el8.3.0+7833+4aaf98ce |
| Oracle Linux | 8 | python2-setuptools-wheel | 39.0.1-12.module+el8.3.0+7833+4aaf98ce | 39.0.1-13.module+el8.4.0+20050+79c7b4ee |
| Oracle Linux | 8 | python2-six | 1.11.0-5.module+el8.3.0+7833+4aaf98ce | 1.11.0-6.module+el8.4.0+20050+79c7b4ee |
| Oracle Linux | 8 | python2-sqlalchemy | 1.3.2-1.module+el8.2.0+5577+bb63ba72 | 1.3.2-2.module+el8.3.0+7833+4aaf98ce |
| Oracle Linux | 8 | python2-test | 2.7.18-10.0.1.module+el8.6.0+20550+a85dc526 | 2.7.18-11.0.1.module+el8.7.0+20809+34912fc4 |
| Oracle Linux | 8 | python2-tkinter | 2.7.18-10.0.1.module+el8.6.0+20550+a85dc526 | 2.7.18-11.0.1.module+el8.7.0+20809+34912fc4 |
| Oracle Linux | 8 | python2-tools | 2.7.18-10.0.1.module+el8.6.0+20550+a85dc526 | 2.7.18-11.0.1.module+el8.7.0+20809+34912fc4 |
| Oracle Linux | 8 | python2-urllib3 | 1.24.2-1.module+el8.3.0+7833+4aaf98ce | 1.24.2-3.module+el8.4.0+20050+79c7b4ee |
| Oracle Linux | 8 | python2-virtualenv | 15.1.0-19.module+el8.3.0+7833+4aaf98ce | 15.1.0-21.module+el8.5.0+20361+8a9d3d27 |
| Oracle Linux | 8 | python2-wheel | 1:0.31.1-2.module+el8.3.0+7833+4aaf98ce | 1:0.31.1-3.module+el8.5.0+20361+8a9d3d27 |
| Oracle Linux | 8 | python2-wheel-wheel | 1:0.31.1-2.module+el8.3.0+7833+4aaf98ce | 1:0.31.1-3.module+el8.5.0+20361+8a9d3d27 |
| Oracle Linux | 8 | python38 | 3.8.12-1.module+el8.6.0+20556+9910889d | 3.8.13-1.module+el8.7.0+20792+22659047 |
| Oracle Linux | 8 | python38-asn1crypto | 1.2.0-3.module+el8.3.0+7824+e0098946 | 1.2.0-3.module+el8.4.0+20068+32a535e2 |
| Oracle Linux | 8 | python38-babel | 2.7.0-10.module+el8.4.0+20068+32a535e2 | 2.7.0-11.module+el8.5.0+20371+4f24d723 |
| Oracle Linux | 8 | python38-cffi | 1.13.2-3.module+el8.3.0+7824+e0098946 | 1.13.2-3.module+el8.4.0+20068+32a535e2 |
| Oracle Linux | 8 | python38-chardet | 3.0.4-19.module+el8.3.0+7824+e0098946 | 3.0.4-19.module+el8.4.0+20068+32a535e2 |
| Oracle Linux | 8 | python38-cryptography | 2.8-3.module+el8.3.0+7824+e0098946 | 2.8-3.module+el8.4.0+20068+32a535e2 |
| Oracle Linux | 8 | python38-Cython | 0.29.14-4.module+el8.3.0+7824+e0098946 | 0.29.14-4.module+el8.4.0+20068+32a535e2 |
| Oracle Linux | 8 | python38-debug | 3.8.12-1.module+el8.6.0+20556+9910889d | 3.8.13-1.module+el8.7.0+20792+22659047 |
| Oracle Linux | 8 | python38-devel | 3.8.12-1.module+el8.6.0+20556+9910889d | 3.8.13-1.module+el8.7.0+20792+22659047 |
| Oracle Linux | 8 | python38-idle | 3.8.12-1.module+el8.6.0+20556+9910889d | 3.8.13-1.module+el8.7.0+20792+22659047 |
| Oracle Linux | 8 | python38-idna | 2.8-6.module+el8.3.0+7824+e0098946 | 2.8-6.module+el8.4.0+20068+32a535e2 |
| Oracle Linux | 8 | python38-jinja2 | 2.10.3-5.module+el8.5.0+20371+4f24d723 | 2.11.3-1.module+el8.7.0+20792+22659047 |
| Oracle Linux | 8 | python38-libs | 3.8.12-1.module+el8.6.0+20556+9910889d | 3.8.13-1.module+el8.7.0+20792+22659047 |
| Oracle Linux | 8 | python38-lxml | 4.4.1-6.module+el8.5.0+20371+4f24d723 | 4.4.1-7.module+el8.6.0+20556+9910889d |
| Oracle Linux | 8 | python38-markupsafe | 1.1.1-6.module+el8.3.0+7824+e0098946 | 1.1.1-6.module+el8.4.0+20068+32a535e2 |
| Oracle Linux | 8 | python38-mod_wsgi | 4.6.8-3.module+el8.4.0+20068+32a535e2 | 4.6.8-4.module+el8.7.0+20869+e1465161 |
| Oracle Linux | 8 | python38-numpy | 1.17.3-5.module+el8.4.0+20068+32a535e2 | 1.17.3-6.module+el8.5.0+20371+4f24d723 |
| Oracle Linux | 8 | python38-numpy-doc | 1.17.3-5.module+el8.4.0+20068+32a535e2 | 1.17.3-6.module+el8.5.0+20371+4f24d723 |
| Oracle Linux | 8 | python38-numpy-f2py | 1.17.3-5.module+el8.4.0+20068+32a535e2 | 1.17.3-6.module+el8.5.0+20371+4f24d723 |
| Oracle Linux | 8 | python38-pip | 19.3.1-5.module+el8.6.0+20556+9910889d | 19.3.1-6.module+el8.7.0+20792+22659047 |
| Oracle Linux | 8 | python38-pip-wheel | 19.3.1-5.module+el8.6.0+20556+9910889d | 19.3.1-6.module+el8.7.0+20792+22659047 |
| Oracle Linux | 8 | python38-ply | 3.11-8.module+el8.3.0+7824+e0098946 | 3.11-10.module+el8.4.0+20068+32a535e2 |
| Oracle Linux | 8 | python38-psutil | 5.6.4-3.module+el8.4.0+20068+32a535e2 | 5.6.4-4.module+el8.5.0+20371+4f24d723 |
| Oracle Linux | 8 | python38-psycopg2 | 2.8.4-4.module+el8.3.0+7824+e0098946 | 2.8.4-4.module+el8.4.0+20068+32a535e2 |
| Oracle Linux | 8 | python38-psycopg2-doc | 2.8.4-4.module+el8.3.0+7824+e0098946 | 2.8.4-4.module+el8.4.0+20068+32a535e2 |
| Oracle Linux | 8 | python38-psycopg2-tests | 2.8.4-4.module+el8.3.0+7824+e0098946 | 2.8.4-4.module+el8.4.0+20068+32a535e2 |
| Oracle Linux | 8 | python38-pycparser | 2.19-3.module+el8.3.0+7824+e0098946 | 2.19-3.module+el8.4.0+20068+32a535e2 |
| Oracle Linux | 8 | python38-PyMySQL | 0.9.3-3.module+el8.3.0+7824+e0098946 | 0.10.1-1.module+el8.4.0+20068+32a535e2 |
| Oracle Linux | 8 | python38-pysocks | 1.7.1-4.module+el8.3.0+7824+e0098946 | 1.7.1-4.module+el8.4.0+20068+32a535e2 |
| Oracle Linux | 8 | python38-pytz | 2019.3-3.module+el8.3.0+7824+e0098946 | 2019.3-3.module+el8.4.0+20068+32a535e2 |

_Showing 100 of 171 total affected builds._
